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

State
Published
Severity
5.9 Medium
Published
Nov 24, 2026
Updated
Nov 25, 2026
Reserved
Nov 24, 2026

Read the record on cve.org

Description

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.

ProductVersions
ex_aws_s3 ex-aws2.0.0 to before 2.6.0 Affected
ex_aws_s3 ex-aws4ce4d72219c0cb8de9356278203d8ea780311b75 to before eda0b9b9c63707f7db8d8f18c331df7fda57c397 Affected

Weaknesses

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.