CVE-2026-63582 PUBLISHED

S3 bucket name controls the host of presigned URLs in ex_aws_s3

Assigner: EEF
Reserved: 17.07.2026 Published: 24.11.2026 Updated: 24.11.2026

Externally Controlled Reference to a Resource in Another Sphere vulnerability in ex-aws ex_aws_s3 allows an attacker who controls an S3 bucket name to make presigned URLs and presigned POST forms point at a host of their choice.

With virtual_host: true, s3_accelerate: true or bucket_as_host: true, ExAws.S3.presigned_url/5 and ExAws.S3.presigned_post/4 build the URL from the bucket name without checking it. A bucket such as attacker.example/x? turns the URL into https://attacker.example/x?.s3.amazonaws.com..., and the signature is computed for that host. Clients given the URL upload their files to, or download content from, the attacker's host, and every such URL discloses the access key id. With bucket_as_host: true any valid hostname works as the bucket name.

This issue affects ex_aws_s3: from 2.0.0 before 2.6.0.

Metrics

CVSS Vector: CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:P/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N
CVSS Score: 5.8

Product Status

Vendor ex-aws
Product ex_aws_s3
Versions Default: unaffected
  • affected from 2.0.0 to 2.6.0 (excl.)
Vendor ex-aws
Product ex_aws_s3
Versions Default: unaffected
  • affected from 4ce4d72219c0cb8de9356278203d8ea780311b75 to ea26e8b43785f3ff1f14d6b22d8069fc06a58e55 (excl.)

Affected Configurations

Reachable only when presigned URLs or POST forms are generated with virtual_host: true, s3_accelerate: true or bucket_as_host: true and the application passes a bucket name an attacker can influence, for example per-tenant or user-supplied buckets. Path-style presigning, the default, places the bucket in the path and is not affected.

Solutions

Upgrading rejects bucket names containing characters that can change the host of a presigned URL. With bucket_as_host: true, a syntactically valid hostname is still used as the host after upgrading: applications that presign with bucket_as_host: true and bucket names they do not fully control must also pass the bucket_as_host_allowlist option, or set it in the S3 config, with the list of trusted hostnames.

Credits

  • Peter Ullrich finder
  • Peter Ullrich reporter
  • Jonatan Männchen / EEF analyst
  • Peter Ullrich coordinator
  • Bernard Duggan remediation developer

References

Problem Types

  • CWE-610 Externally Controlled Reference to a Resource in Another Sphere CWE

Impacts

  • An attacker who can choose the bucket name makes the application hand out presigned URLs and POST forms that point at the attacker's host. Files other users upload through those forms go to the attacker, presigned downloads serve attacker-controlled content under the application's name, and every such URL discloses the access key id. Applications that presign for per-tenant or user-supplied buckets with virtual-host addressing are affected.