# CVE-2026-63581: ex\_aws\_s3 XML injection in bucket-configuration builders

- **Severity:** MEDIUM 6.9
- **CVSS:** 6.9 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Attack requirements: None; Privileges required: None; User interaction: None; Confidentiality impact: None; Integrity impact: High; Availability impact: None; Confidentiality impact on other systems: Low; Integrity impact on other systems: Low; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.45% (percentile 31, 2026-11-28)
- **CWE:** CWE-91
- **Published:** 2026-11-24T14:15:21.465Z
- **Modified:** 2026-11-25T20:18:47.597Z

## Who should check

- Anyone running ex-aws ex\_aws\_s3 \>= 2.5.9, \< 2.6.0
- Anyone running ex-aws ex\_aws\_s3 \>= 7d6f5cde90aaea36f9a059de874d1420da20eef2, \< eda0b9b9c63707f7db8d8f18c331df7fda57c397

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

## Affected and fixed versions

- ex-aws ex\_aws\_s3: \>= 2.5.9, \< 2.6.0 (cvelist)
- ex-aws ex\_aws\_s3: \>= 7d6f5cde90aaea36f9a059de874d1420da20eef2, \< eda0b9b9c63707f7db8d8f18c331df7fda57c397 (cvelist)

## Mitigation

- Upgrade ex\_aws\_s3 to 2.6.0 or later.
- Vendor workaround: Validate or sanitize caller-supplied values before passing them to the affected bucket-configuration builders, rejecting or escaping any value that contains XML metacharacters (\<, \>, &, ', ").

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-63581. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-63581.md
Affected: ex-aws ex_aws_s3 >= 2.5.9, < 2.6.0; ex-aws ex_aws_s3 >= 7d6f5cde90aaea36f9a059de874d1420da20eef2, < eda0b9b9c63707f7db8d8f18c331df7fda57c397
Fixed in: ex-aws ex_aws_s3 2.6.0

Steps:
1. Search this machine and project for ex-aws ex_aws_s3: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-63581 being exploited?

There is no confirmed exploitation: CVE-2026-63581 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 0.45% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-63581?

Medium: CVSS 6.9 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-63581?

ex-aws ex\_aws\_s3 \>= 2.5.9, \< 2.6.0; ex-aws ex\_aws\_s3 \>= 7d6f5cde90aaea36f9a059de874d1420da20eef2, \< eda0b9b9c63707f7db8d8f18c331df7fda57c397.

### Is there a fix for CVE-2026-63581?

Yes. Fixed in ex-aws ex\_aws\_s3 2.6.0. Upgrade ex\_aws\_s3 to 2.6.0 or later. Vendor workaround: Validate or sanitize caller-supplied values before passing them to the affected bucket-configuration builders, rejecting or escaping any value that contains XML metacharacters (\<, \>, &, ', ").

### How do I check if I'm affected by CVE-2026-63581?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/ex-aws/ex_aws_s3/security/advisories/GHSA-cf93-7gwh-6w98>
- patch: <https://github.com/ex-aws/ex_aws_s3/commit/7d6f5cde90aaea36f9a059de874d1420da20eef2>
- patch: <https://github.com/ex-aws/ex_aws_s3/commit/eda0b9b9c63707f7db8d8f18c331df7fda57c397>
- exploit: <https://osv.dev/vulnerability/EEF-CVE-2026-63581>
- other: <https://cna.erlef.org/cves/CVE-2026-63581.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-63581>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-63581> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-63581>
