GHSA-pjg7-j8p4-3c93Low

XML Injection vulnerability in ex-aws ex_aws_s3 allows an attacker who controls tag keys or...

Published
November 24, 2026
Last Modified
November 24, 2026

🔗 CVE IDs covered (1)

📋 Description

XML Injection vulnerability in ex-aws ex_aws_s3 allows an attacker who controls tag keys or values to inject forged tag entries into S3 object and bucket tagging requests.

ExAws.S3.put_object_tagging/4 and ExAws.S3.put_bucket_tagging/2 in lib/ex_aws/s3.ex build the request body by interpolating tag keys and values directly into and elements via to_string/1, without applying the module's existing escape_xml_string/1 helper (which delete_multiple_objects already uses for object keys). An application that forwards user-supplied data as a tag key or value lets an attacker close the intended element and inject attacker-chosen entries. For example, a tag value of blueowneradmin turns one intended tag into two tags on the wire. Because S3 honors tags in access-control conditions (aws:RequestTag, s3:ExistingObjectTag) and cost-allocation reporting, an injected tag can forge an authorization-relevant tag or corrupt the intended tag set.

This issue affects ex_aws_s3: from 2.0.2 before 2.6.0.

🔗 References (7)