CVE-2026-63583 PUBLISHED

XML injection in ExAws.S3.Utils.build_lifecycle_rule/1 in ex_aws_s3

Assigner: EEF
Reserved: 17.07.2026 Published: 24.11.2026 Updated: 24.11.2026

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.

Metrics

CVSS 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
CVSS Score: 7

Product Status

Vendor ex-aws
Product ex_aws_s3
Versions Default: unaffected
  • affected from 2.3.0 to 2.6.0 (excl.)
Vendor ex-aws
Product ex_aws_s3
Versions Default: unaffected
  • affected from 34a3f1b264bd9a28d68fa98173af7085da72a15b to eda0b9b9c63707f7db8d8f18c331df7fda57c397 (excl.)

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.

Credits

  • Peter Ullrich finder
  • Peter Ullrich reporter
  • Jonatan Männchen / EEF analyst
  • Peter Ullrich coordinator
  • Bernard Duggan remediation developer

References

Problem Types

  • CWE-91 XML Injection CWE

Impacts

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