S3 bucket name controls the host of presigned URLs in ex_aws_s3
- State
- Published
- Severity
- 5.8 Medium
- Published
- Nov 24, 2026
- Updated
- Nov 24, 2026
- Reserved
- Jul 17, 2026
Description
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.
| Product | Versions |
|---|---|
| ex_aws_s3 ex-aws | 2.0.0 to before 2.6.0 Affected |
| ex_aws_s3 ex-aws | 4ce4d72219c0cb8de9356278203d8ea780311b75 to before ea26e8b43785f3ff1f14d6b22d8069fc06a58e55 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 5.8 Medium | EEF |
Weaknesses
- CWE-610 Externally Controlled Reference to a Resource in Another Sphere
References
- Virtual-host bucket name controls the host of presigned URLs in ExAws.S3.presigned_url/5 and presigned_post/4Vendor AdvisoryRelated
- EEF CNA record for CVE-2026-63582Related
- OSV record EEF-CVE-2026-63582Related
- Introducing commit 4ce4d72 in ex-aws/ex_aws_s3Related
- Fix commit ea26e8b in ex-aws/ex_aws_s3Patch
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.