CVE-2026-131902 PUBLISHED

XML injection via unescaped VersionId in ExAws.S3.delete_multiple_objects/3

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

XML Injection vulnerability in ex-aws ex_aws_s3 allows an attacker who controls an object version id passed to ExAws.S3.delete_multiple_objects/3 to add objects to the batch delete.

delete_multiple_objects/3 in lib/ex_aws/s3.ex builds the <Delete> request body by placing each object's version between <VersionId> tags without XML escaping. A version such as v1</VersionId></Object><Object><Key>important-file</Key></Object><Object><Key>x</Key><VersionId>v2 closes the caller's object and opens new ones, so S3 deletes objects the application never listed, including other users' objects in the same bucket.

This issue affects ex_aws_s3: from 2.0.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:H/SC:N/SI:N/SA:N
CVSS Score: 5.9

Product Status

Vendor ex-aws
Product ex_aws_s3
Versions Default: unaffected
  • affected from 2.0.0 to 2.6.0 (excl.)
Vendor ex-aws
Product ex_aws_s3
Versions Default: unaffected
  • affected from 4ce4d72219c0cb8de9356278203d8ea780311b75 to eda0b9b9c63707f7db8d8f18c331df7fda57c397 (excl.)

Affected Configurations

Reachable only when the application passes a version id derived, even partially, from untrusted input to ExAws.S3.delete_multiple_objects/3, for example a service that lets users delete a specific object version by id.

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

  • An attacker who controls a version id passed to delete_multiple_objects/3 can make the batched delete request remove arbitrary additional objects in the same bucket, including objects belonging to other users or critical to the application. Services that let users delete a specific object version by id are affected.