# CVE-2026-63582: S3 bucket name controls the host of presigned URLs in ex_aws_s3

- Severity: Medium 5.8 (CVSS:4.0, scored by EEF) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 8% of CVEs (2026-11-30)
- Published: 2026-11-24T14:13:16.822Z
- Modified: 2026-11-26T17:23:07.793Z
- Also known as: EEF-CVE-2026-63582, GHSA-p62r-cgcg-9fm7
- Weaknesses: CWE-610
- Assigned by: EEF

## 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.

(As written by CVE List.)

## Affected

- ex_aws_s3: from 2.0.0 before 2.6.0
- ex-aws/ex_aws_s3: from 4ce4d72219c0cb8de9356278203d8ea780311b75 before ea26e8b43785f3ff1f14d6b22d8069fc06a58e55
- ex_aws_s3 (Hex): from 2.0.0 before 2.6.0
- https://github.com/ex-aws/ex_aws_s3: from 4ce4d72219c0cb8de9356278203d8ea780311b75 before ea26e8b43785f3ff1f14d6b22d8069fc06a58e55

## Every score

- EEF: CVSS:4.0 5.8 Medium `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`
- Erlang Ecosystem Foundation: CVSS:4.0 `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`

## References

- <https://github.com/ex-aws/ex_aws_s3/security/advisories/GHSA-p62r-cgcg-9fm7> (advisory, related, vendor-advisory)
- <https://cna.erlef.org/cves/CVE-2026-63582.html> (related, web)
- <https://osv.dev/vulnerability/EEF-CVE-2026-63582> (related)
- <https://github.com/ex-aws/ex_aws_s3/commit/4ce4d72219c0cb8de9356278203d8ea780311b75> (related, web)
- <https://github.com/ex-aws/ex_aws_s3/commit/ea26e8b43785f3ff1f14d6b22d8069fc06a58e55> (fix, patch)
- <https://hex.pm/packages/ex_aws_s3> (package)

## Sources

- CVE List: [CVE-2026-63582](https://www.cve.org/CVERecord?id=CVE-2026-63582), CVE Terms of Use, modified 2026-11-24
- Erlang Ecosystem Foundation: [EEF-CVE-2026-63582](https://osv.dev/vulnerability/EEF-CVE-2026-63582), CC-BY-4.0, modified 2026-11-26
- NVD: [CVE-2026-63582](https://nvd.nist.gov/vuln/detail/CVE-2026-63582), Public domain, modified 2026-11-24

---

Page: https://cve.day/CVE-2026-63582 · Whole record: https://cve.day/CVE-2026-63582.json · Rebuilt by cve.day 2026-11-26T17:37:05.554Z
