# CVE-2026-63581: ex_aws_s3 XML injection in bucket-configuration builders

- Severity: Medium 6.9 (CVSS:4.0, scored by EEF) `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:L/SI:L/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.45%, higher than 41% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-11-24T14:15:21.465Z
- Modified: 2026-11-25T20:18:47.597Z
- Also known as: EEF-CVE-2026-63581, GHSA-cf93-7gwh-6w98
- Weaknesses: CWE-91
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: EEF

## Description

XML Injection vulnerability in ex-aws ex_aws_s3 (ExAws.S3 module) allows an attacker to inject arbitrary XML configuration elements into S3 bucket-configuration request bodies via unescaped, caller-supplied values.

This vulnerability is associated with program files lib/ex_aws/s3.ex and program routines ExAws.S3.put_bucket_logging/2, ExAws.S3.put_bucket_notification/2, ExAws.S3.put_bucket_replication/2, ExAws.S3.put_bucket_website/2.

The bucket-configuration body builders construct their XML by interpolating caller-supplied values directly into the request body without escaping, and never route them through the module's own escape_xml_string/1 helper. A value containing XML metacharacters (<, >, &, quotes) can close the intended element early and open attacker-chosen elements, which the builder's trailing closing tag then closes, keeping the document single-rooted and well-formed. In a multi-tenant application where tenants configure their own bucket settings, an attacker who can influence one of the interpolated field values (for example the logging target, a notification ARN, a replication destination or Account, or a website redirect HostName) can inject arbitrary configuration nodes into a request the application signs and sends to AWS. The affected builders are reached through the public functions put_bucket_logging/2, put_bucket_notification/2, put_bucket_replication/2, and put_bucket_website/2.

This issue affects ex_aws_s3: from 2.5.9 before 2.6.0.

(As written by CVE List.)

## Affected

- ex_aws_s3: from 2.5.9 before 2.6.0
- ex-aws/ex_aws_s3: from 7d6f5cde90aaea36f9a059de874d1420da20eef2 before eda0b9b9c63707f7db8d8f18c331df7fda57c397
- ex_aws_s3 (Hex): from 2.5.9 before 2.6.0
- https://github.com/ex-aws/ex_aws_s3: from 7d6f5cde90aaea36f9a059de874d1420da20eef2 before eda0b9b9c63707f7db8d8f18c331df7fda57c397

## Every score

- EEF: CVSS:4.0 6.9 Medium `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:L/SI:L/SA:N`
- Erlang Ecosystem Foundation: CVSS:4.0 `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:L/SI:L/SA:N`

## References

- <https://osv.dev/vulnerability/EEF-CVE-2026-63581> (exploit, related)
- <https://github.com/ex-aws/ex_aws_s3/security/advisories/GHSA-cf93-7gwh-6w98> (advisory, related, vendor-advisory)
- <https://cna.erlef.org/cves/CVE-2026-63581.html> (related, web)
- <https://github.com/ex-aws/ex_aws_s3/commit/7d6f5cde90aaea36f9a059de874d1420da20eef2> (related, web)
- <https://github.com/ex-aws/ex_aws_s3/commit/eda0b9b9c63707f7db8d8f18c331df7fda57c397> (fix, patch)
- <https://hex.pm/packages/ex_aws_s3> (package)

## Sources

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

---

Page: https://cve.day/CVE-2026-63581 · Whole record: https://cve.day/CVE-2026-63581.json · Rebuilt by cve.day 2026-11-25T23:18:48.122Z
