CVE-2026-63582: S3 bucket name controls the host of presigned URLs in ex_aws_s3
Published 2026-11-24 · Updated 2026-11-26 · Also known as EEF-CVE-2026-63582, GHSA-p62r-cgcg-9fm7
Summary
The ex_aws_s3 package fails to sanitize user-provided bucket names when generating presigned URLs or POST forms with virtual-host addressing enabled. This allows attackers to redirect traffic to arbitrary hosts and disclose AWS access key IDs.
Who is affected
Applications using ex_aws_s3 versions 2.0.0 through 2.5.x are vulnerable if they enable virtual_host, s3_accelerate, or bucket_as_host and accept user-supplied bucket names. Attackers can perform man-in-the-middle operations by intercepting file uploads or serving malicious content, while also capturing access key IDs.
Exploitability
The vulnerability requires low attack complexity and user interaction to execute, as indicated by the CVSS 4.0 vector. The EPSS score of 0.002 indicates a very low likelihood of widespread exploit attempts, and the issue is not listed in the CISA Known Exploited Vulnerabilities catalog.
Remediation
- Upgrade ex_aws_s3 to version 2.6.0 or later.
- If using bucket_as_host: true with dynamic bucket names, implement the bucket_as_host_allowlist option to restrict trusted hostnames.
How to check your project
- Inspect mix.lock file for ex_aws_s3 versions between 2.0.0 and 2.5.x.
- Audit application code for calls to ExAws.S3.presigned_url/5 or ExAws.S3.presigned_post/4 where the bucket parameter is influenced by external user input.
Automated analysis of the published advisory data, generated 2026-11-26. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| Hex | ex_aws_s3 |
>= 2.0.0, < 2.6.0 | 2.6.0 | mix deps.update ex_aws_s3 |
CVSS 4.0 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
| Attack vector | Local |
|---|---|
| Attack complexity | Low |
| Attack requirements | Present |
| Privileges required | None |
| User interaction | Passive |
| Confidentiality (vulnerable system) | High |
| Integrity (vulnerable system) | Low |
| Availability (vulnerable system) | None |
| Confidentiality (subsequent systems) | None |
| Integrity (subsequent systems) | None |
| Availability (subsequent systems) | None |
Base score is not computed for CVSS 4.0 vectors; severity is taken from the advisory.
FAQ
Are default path-style presigned URLs affected?
No, path-style presigning places the bucket in the URL path rather than the host, rendering it unaffected by this specific vulnerability.
Is the AWS secret key disclosed by this vulnerability?
No, only the access key ID is disclosed in the generated URL or form. The secret key is not exposed, and signatures cannot be replayed against legitimate AWS services.
What happens if I use bucket_as_host: true after upgrading?
Upgrading enforces stricter bucket name validation. If you do not fully control the bucket names, you must also provide a bucket_as_host_allowlist to explicitly permit trusted hostnames.
Original advisory description
References
- ADVISORY https://github.com/ex-aws/ex_aws_s3/security/advisories/GHSA-p62r-cgcg-9fm7
- WEB https://cna.erlef.org/cves/CVE-2026-63582.html
- WEB https://github.com/ex-aws/ex_aws_s3/commit/4ce4d72219c0cb8de9356278203d8ea780311b75
- FIX https://github.com/ex-aws/ex_aws_s3/commit/ea26e8b43785f3ff1f14d6b22d8069fc06a58e55
- PACKAGE https://hex.pm/packages/ex_aws_s3
Source records: EEF-CVE-2026-63582 (OSV.dev) · EPSS by FIRST, 2026-11-26.