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

Published Nov 24, 2026
·
Updated

Summary

ExAws.S3.Utils.buildlifecyclerule/1 in exawss3 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.putbucketlifecycle/2 flows directly into this builder.

This issue affects exawss3: from 2.3.0 before 2.6.0.

Details

1. Unescaped interpolation. buildlifecyclerule/1 in lib/exaws/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 newernoncurrentversions. None is XML-escaped or validated before IO.iodatatobinary/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.putbucketlifecycle/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.putbucketlifecycle("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. buildlifecyclerule/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 exawss3 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.

Other sources

ExAws.S3.Utils.buildlifecyclerule/1 in exawss3 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.putbucketlifecycle/2 flows directly into this builder.

This issue affects exawss3: from 2.3.0 before 2.6.0.

— MITRE

Affected Software

2 affected componentsFixes available
hex/ex_aws_s3>=2.3.0<2.6.0
erlang/ex_aws_s3>=2.3.0<2.6.0
2.6.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade erlang/ex_aws_s3 to a version that resolves this vulnerability.

    Fixed in 2.6.0
  2. Compensating control

    Escape or strictly validate untrusted values for lifecycle rule IDs, filter prefixes, tag keys and values, storage classes, and noncurrent-version counts before inserting them into lifecycle rules, so XML metacharacters cannot alter the request structure.

Event History

Nov 24, 2026
CVE Published
via MITRE·02:14 PM
Data Sourced
via MITRE·02:14 PM
DescriptionWeakness
Data Sourced
via OSV·02:14 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

Which applications are exposed to this issue?

Applications using ex_aws_s3 versions 2.3.0 through before 2.6.0 are exposed if they pass untrusted data into lifecycle rule fields used with ExAws.S3.put_bucket_lifecycle/2. Relevant fields include the rule ID, filter prefix, tag key and value, storage class, and noncurrent-version count.

2

What does an attacker need to exploit it?

An attacker needs influence over one of the lifecycle rule fields that the application supplies to the library. XML metacharacters in that input can break out of the intended XML element and inject additional lifecycle configuration.

3

What is the likely impact of successful exploitation?

An attacker can inject arbitrary XML into the PutBucketLifecycleConfiguration request. This can include a new lifecycle action, such as expiration after one day, that could delete objects in the bucket.

4

What can be done if upgrading is not immediately possible?

Do not populate lifecycle rule fields from untrusted input. Where such input is required, ensure XML metacharacters are escaped before values reach ExAws.S3.put_bucket_lifecycle/2.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203