SEVERITY NOT PROVIDED · CVSS 4.0 EPSS 0.2% · 9th percentile CWE-91

CVE-2026-63583: XML injection in ExAws.S3.Utils.build_lifecycle_rule/1 in ex_aws_s3

Published 2026-11-24 · Updated 2026-11-26 · Also known as EEF-CVE-2026-63583, GHSA-pcgv-phrm-r85v

Summary

An XML injection vulnerability exists in ExAws.S3.Utils.build_lifecycle_rule/1 due to unescaped string interpolation of caller-supplied lifecycle rule fields. Engineering teams using ex_aws_s3 versions 2.3.0 to 2.5.9 should upgrade to version 2.6.0 immediately.

Who is affected

Applications utilizing ex_aws_s3 that populate lifecycle rule fields (such as rule IDs, filter prefixes, tag keys and values, storage classes, or noncurrent-version counts) from untrusted input are affected. An attacker who can control these fields can break out of XML elements and inject arbitrary lifecycle actions, such as premature object expiration that leads to data loss.

Exploitability

The vulnerability has a CVSS 4.0 base score of not computed with a vector of CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:H/SA:H, indicating local/low attack complexity with high integrity impact under specific attack preconditions. The EPSS score is 0.002 (94th percentile), and it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-26. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
Hex ex_aws_s3 >= 2.3.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:N/VC:N/VI:H/VA:N/SC:N/SI:H/SA:H

Attack vectorLocal
Attack complexityLow
Attack requirementsPresent
Privileges requiredNone
User interactionNone
Confidentiality (vulnerable system)None
Integrity (vulnerable system)High
Availability (vulnerable system)None
Confidentiality (subsequent systems)None
Integrity (subsequent systems)High
Availability (subsequent systems)High

Base score is not computed for CVSS 4.0 vectors; severity is taken from the advisory.

FAQ

Which versions of ex_aws_s3 are affected?

Versions from 2.3.0 up to, but not including, 2.6.0 are affected.

What causes the vulnerability?

The function ExAws.S3.Utils.build_lifecycle_rule/1 interpolates caller-supplied fields directly into the PutBucketLifecycleConfiguration XML body without XML-escaping or validation.

Is this vulnerability listed in the CISA KEV catalog?

No, this vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog.

Original advisory description
## Summary `ExAws.S3.Utils.build_lifecycle_rule/1` in ex_aws_s3 interpolates caller-supplied lifecycle rule fields (the rule id, filter prefix, tag key and value, storage class, and noncurrent-version count) directly into the `PutBucketLifecycleConfiguration` XML body without escaping XML metacharacters. An application that populates any of these fields from untrusted input (for example a tenant-supplied object tag) lets an attacker break out of the surrounding element and inject arbitrary XML into the request, including an entirely new lifecycle action such as a delete-after-one-day expiration that destroys the bucket's objects. The public entry point `ExAws.S3.put_bucket_lifecycle/2` flows directly into this builder. This issue affects ex_aws_s3: from 2.3.0 before 2.6.0. ## Details **1. Unescaped interpolation.** `build_lifecycle_rule/1` in `lib/ex_aws/s3/utils.ex` builds each text node of the `PutBucketLifecycleConfiguration` body by raw string interpolation: the rule `id`, the filter `prefix`, tag `key` and `value`, the `storage` class and `newer_noncurrent_versions`. None is XML-escaped or validated before `IO.iodata_to_binary/1` flattens the body. **2. Element break-out.** A value containing XML metacharacters is emitted verbatim. A tag value such as `frontend</Value></Tag></Filter><Expiration><Days>1</Days></Expiration><Filter><Tag><Key>team</Key><Value>frontend` closes the `<Value>`, injects an `<Expiration>` action and reopens a `<Filter>`, so the rest of the document stays well-formed. The same technique can close and reopen `<Rule>` to append a separate rule. **3. Delivery.** The public entry point `ExAws.S3.put_bucket_lifecycle/2` flows directly into this builder, so S3 receives and applies the injected lifecycle configuration as soon as the request is sent with `ExAws.request/2`. ## Proof of concept 1. A multi-tenant application mirrors tenant-supplied object tags into an S3 lifecycle rule: `ExAws.S3.put_bucket_lifecycle("tenant-bucket", [rule]) |> ExAws.request(config)` with `filter: %{tags: [{"team", value}]}`. 2. The tenant sets the tag value to `frontend</Value></Tag></Filter><Expiration><Days>1</Days></Expiration><Filter><Tag><Key>team</Key><Value>frontend`. 3. `build_lifecycle_rule/1` interpolates it unescaped into the request body. 4. The body S3 receives contains `//Rule/Expiration/Days` equal to `1`: an injected action that expires the bucket's objects after one day. ## Impact This is an XML/document injection vulnerability in the construction of the `PutBucketLifecycleConfiguration` request. Any application that uses `ex_aws_s3` and populates a lifecycle rule's id, prefix, tag key/value, storage class, or noncurrent-version count from data it does not fully control is affected. An attacker who controls one of those fields can inject arbitrary lifecycle actions or rules into the request, most damagingly an expiration that deletes the bucket's objects, leading to data loss or unintended retention/transition policies. Multi-tenant services that map tenant-supplied tags or identifiers into bucket lifecycle configuration are the most exposed. ## Workarounds Applications can escape or strictly validate any untrusted value before passing it into a lifecycle rule field (the rule id, filter prefix, tag key or value, storage class, or noncurrent-version count) so that XML metacharacters cannot alter the request structure.

References

Source records: EEF-CVE-2026-63583 (OSV.dev) · EPSS by FIRST, 2026-11-26.