{"containers":{"cna":{"affected":[{"collectionURL":"https://repo.hex.pm","cpes":["cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*"],"defaultStatus":"unaffected","modules":["'Elixir.ExAws.S3'"],"packageName":"ex_aws_s3","packageURL":"pkg:hex/ex_aws_s3","product":"ex_aws_s3","programFiles":["lib/ex_aws/s3.ex"],"programRoutines":[{"name":"'Elixir.ExAws.S3':put_object_tagging/4"},{"name":"'Elixir.ExAws.S3':put_bucket_tagging/2"}],"repo":"https://github.com/ex-aws/ex_aws_s3","vendor":"ex-aws","versions":[{"lessThan":"2.6.0","status":"affected","version":"2.0.2","versionType":"semver"}]},{"collectionURL":"https://github.com","cpes":["cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*"],"defaultStatus":"unaffected","modules":["'Elixir.ExAws.S3'"],"packageName":"ex-aws/ex_aws_s3","packageURL":"pkg:github/ex-aws/ex_aws_s3","product":"ex_aws_s3","programFiles":["lib/ex_aws/s3.ex"],"programRoutines":[{"name":"'Elixir.ExAws.S3':put_object_tagging/4"},{"name":"'Elixir.ExAws.S3':put_bucket_tagging/2"}],"repo":"https://github.com/ex-aws/ex_aws_s3","vendor":"ex-aws","versions":[{"lessThan":"eda0b9b9c63707f7db8d8f18c331df7fda57c397","status":"affected","version":"c6331b84c80f09d24d4a25cf05d8604541ce162e","versionType":"git"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*","versionEndExcluding":"2.6.0","versionStartIncluding":"2.0.2","vulnerable":true}],"negate":false,"operator":"OR"}],"operator":"AND"}],"credits":[{"lang":"en","type":"finder","value":"Peter Ullrich"},{"lang":"en","type":"reporter","value":"Peter Ullrich"},{"lang":"en","type":"analyst","value":"Jonatan Männchen / EEF"},{"lang":"en","type":"coordinator","value":"Peter Ullrich"},{"lang":"en","type":"remediation developer","value":"Bernard Duggan"}],"datePublic":"2026-11-24T14:15:58.000Z","descriptions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>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.</p>\n<p><code>ExAws.S3.put_object_tagging/4</code> and <code>ExAws.S3.put_bucket_tagging/2</code> in <code>lib/ex_aws/s3.ex</code> build the <code>&lt;TagSet&gt;</code> request body by interpolating tag keys and values directly into <code>&lt;Key&gt;</code> and <code>&lt;Value&gt;</code> elements via <code>to_string/1</code>, without applying the module's existing <code>escape_xml_string/1</code> helper (which <code>delete_multiple_objects</code> 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 <code>&lt;Tag&gt;</code> entries. For example, a tag value of <code>blue&lt;/Value&gt;&lt;/Tag&gt;&lt;Tag&gt;&lt;Key&gt;owner&lt;/Key&gt;&lt;Value&gt;admin</code> turns one intended tag into two tags on the wire. Because S3 honors tags in access-control conditions (<code>aws:RequestTag</code>, <code>s3:ExistingObjectTag</code>) and cost-allocation reporting, an injected tag can forge an authorization-relevant tag or corrupt the intended tag set.</p>\n<p>This issue affects ex_aws_s3: from 2.0.2 before 2.6.0.</p>"},{"base64":false,"type":"text/markdown","value":"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.\n\n`ExAws.S3.put_object_tagging/4` and `ExAws.S3.put_bucket_tagging/2` in `lib/ex_aws/s3.ex` build the `<TagSet>` request body by interpolating tag keys and values directly into `<Key>` and `<Value>` 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 `<Tag>` entries. For example, a tag value of `blue</Value></Tag><Tag><Key>owner</Key><Value>admin` 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.\n\nThis issue affects ex_aws_s3: from 2.0.2 before 2.6.0."}],"value":"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.\n\nExAws.S3.put_object_tagging/4 and ExAws.S3.put_bucket_tagging/2 in lib/ex_aws/s3.ex build the <TagSet> request body by interpolating tag keys and values directly into <Key> and <Value> 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 <Tag> entries. For example, a tag value of blue</Value></Tag><Tag><Key>owner</Key><Value>admin 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.\n\nThis issue affects ex_aws_s3: from 2.0.2 before 2.6.0."}],"impacts":[{"capecId":"CAPEC-250","descriptions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>This is an XML injection vulnerability. It affects any application that uses <code>ex_aws_s3</code> and passes user-influenced data as tag keys or values to <code>put_object_tagging/4</code> or <code>put_bucket_tagging/2</code>. An attacker who controls part of a tag key or value can inject additional <code>&lt;Tag&gt;</code> elements into the request S3 receives, forging tags used for tag-based access control and cost allocation, or corrupting the intended tag set. The only precondition is that user-controlled input reaches the tag key/value of one of these calls.</p>"},{"base64":false,"type":"text/markdown","value":"This is an XML injection vulnerability. It affects any application that uses `ex_aws_s3` and passes user-influenced data as tag keys or values to `put_object_tagging/4` or `put_bucket_tagging/2`. An attacker who controls part of a tag key or value can inject additional `<Tag>` elements into the request S3 receives, forging tags used for tag-based access control and cost allocation, or corrupting the intended tag set. The only precondition is that user-controlled input reaches the tag key/value of one of these calls."}],"value":"This is an XML injection vulnerability. It affects any application that uses ex_aws_s3 and passes user-influenced data as tag keys or values to put_object_tagging/4 or put_bucket_tagging/2. An attacker who controls part of a tag key or value can inject additional <Tag> elements into the request S3 receives, forging tags used for tag-based access control and cost allocation, or corrupting the intended tag set. The only precondition is that user-controlled input reaches the tag key/value of one of these calls."}]}],"metrics":[{"cvssV4_0":{"Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","Safety":"NOT_DEFINED","attackComplexity":"LOW","attackRequirements":"PRESENT","attackVector":"LOCAL","baseScore":2.1,"baseSeverity":"LOW","privilegesRequired":"NONE","providerUrgency":"NOT_DEFINED","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"LOW","userInteraction":"NONE","valueDensity":"NOT_DEFINED","vectorString":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N","version":"4.0","vulnAvailabilityImpact":"NONE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"LOW","vulnerabilityResponseEffort":"NOT_DEFINED"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-91","description":"CWE-91 XML Injection","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-11-24T14:15:59.569Z","orgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","shortName":"EEF"},"references":[{"tags":["vendor-advisory","related"],"url":"https://github.com/ex-aws/ex_aws_s3/security/advisories/GHSA-979q-5hj9-vvvv"},{"name":"EEF CNA record for CVE-2026-62273","tags":["related"],"url":"https://cna.erlef.org/cves/CVE-2026-62273.html"},{"name":"OSV record EEF-CVE-2026-62273","tags":["related"],"url":"https://osv.dev/vulnerability/EEF-CVE-2026-62273"},{"name":"Introducing commit c6331b8 in ex-aws/ex_aws_s3","tags":["related"],"url":"https://github.com/ex-aws/ex_aws_s3/commit/c6331b84c80f09d24d4a25cf05d8604541ce162e"},{"name":"Fix commit eda0b9b in ex-aws/ex_aws_s3","tags":["patch"],"url":"https://github.com/ex-aws/ex_aws_s3/commit/eda0b9b9c63707f7db8d8f18c331df7fda57c397"}],"source":{"discovery":"EXTERNAL"},"title":"XML injection via unescaped tag keys and values in ex_aws_s3 object and bucket tagging","workarounds":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>Before passing user-influenced data to <code>put_object_tagging/4</code> or <code>put_bucket_tagging/2</code>, validate and reject any tag key or value containing XML metacharacters (<code>&lt;</code>, <code>&gt;</code>, <code>&amp;</code>, <code>\"</code>, <code>'</code>), or restrict tag keys and values to an allowlisted character set.</p>"},{"base64":false,"type":"text/markdown","value":"Before passing user-influenced data to `put_object_tagging/4` or `put_bucket_tagging/2`, validate and reject any tag key or value containing XML metacharacters (`<`, `>`, `&`, `\"`, `'`), or restrict tag keys and values to an allowlisted character set."}],"value":"Before passing user-influenced data to put_object_tagging/4 or put_bucket_tagging/2, validate and reject any tag key or value containing XML metacharacters (<, >, &, \", '), or restrict tag keys and values to an allowlisted character set."}],"x_proofOfConcept":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<ol>\n<li>An application forwards a user-supplied tag value: <code>ExAws.S3.put_object_tagging(\"victim-bucket\", \"user/object.txt\", [{\"customer\", value}]) |&gt; ExAws.request()</code>.</li>\n<li>The attacker supplies the value <code>blue&lt;/Value&gt;&lt;/Tag&gt;&lt;Tag&gt;&lt;Key&gt;owner&lt;/Key&gt;&lt;Value&gt;admin</code>.</li>\n<li><code>put_object_tagging/4</code> interpolates it into the <code>&lt;TagSet&gt;</code> body without escaping.</li>\n<li>The request body S3 receives contains two <code>&lt;Tag&gt;</code> elements: <code>customer=blue</code> and the forged <code>owner=admin</code>.</li>\n</ol>"},{"base64":false,"type":"text/markdown","value":"1. An application forwards a user-supplied tag value: `ExAws.S3.put_object_tagging(\"victim-bucket\", \"user/object.txt\", [{\"customer\", value}]) |> ExAws.request()`.\n2. The attacker supplies the value `blue</Value></Tag><Tag><Key>owner</Key><Value>admin`.\n3. `put_object_tagging/4` interpolates it into the `<TagSet>` body without escaping.\n4. The request body S3 receives contains two `<Tag>` elements: `customer=blue` and the forged `owner=admin`."}],"value":"* An application forwards a user-supplied tag value: ExAws.S3.put_object_tagging(\"victim-bucket\", \"user/object.txt\", [{\"customer\", value}]) |> ExAws.request().\n* The attacker supplies the value blue</Value></Tag><Tag><Key>owner</Key><Value>admin.\n* put_object_tagging/4 interpolates it into the <TagSet> body without escaping.\n* The request body S3 receives contains two <Tag> elements: customer=blue and the forged owner=admin."}],"x_technicalAnalysis":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p><strong>1. Unescaped interpolation.</strong> <code>ExAws.S3.put_bucket_tagging/2</code> and <code>ExAws.S3.put_object_tagging/4</code> in <code>lib/ex_aws/s3.ex</code> build each <code>&lt;Tag&gt;</code> element by placing <code>to_string(key)</code> and <code>to_string(value)</code> directly inside <code>&lt;Key&gt;</code> and <code>&lt;Value&gt;</code>. The module's <code>escape_xml_string/1</code> helper, which <code>delete_multiple_objects</code> already applies to object keys, is not used.</p>\n<p><strong>2. Element break-out.</strong> XML metacharacters in a key or value are emitted verbatim. A value such as <code>blue&lt;/Value&gt;&lt;/Tag&gt;&lt;Tag&gt;&lt;Key&gt;owner&lt;/Key&gt;&lt;Value&gt;admin</code> closes the intended <code>&lt;Value&gt;</code> and <code>&lt;Tag&gt;</code> and opens a new <code>&lt;Tag&gt;</code> of the attacker's choosing, so S3 parses two tags where the application intended one.</p>\n<p><strong>3. Effect in S3.</strong> S3 honors tags in access-control conditions (<code>aws:RequestTag</code>, <code>s3:ExistingObjectTag/&lt;key&gt;</code>) and in cost-allocation reporting, so the injected tag can set an authorization-relevant key the application never meant to assign, or override and corrupt the legitimate tag set.</p>"},{"base64":false,"type":"text/markdown","value":"**1. Unescaped interpolation.** `ExAws.S3.put_bucket_tagging/2` and `ExAws.S3.put_object_tagging/4` in `lib/ex_aws/s3.ex` build each `<Tag>` element by placing `to_string(key)` and `to_string(value)` directly inside `<Key>` and `<Value>`. The module's `escape_xml_string/1` helper, which `delete_multiple_objects` already applies to object keys, is not used.\n\n**2. Element break-out.** XML metacharacters in a key or value are emitted verbatim. A value such as `blue</Value></Tag><Tag><Key>owner</Key><Value>admin` closes the intended `<Value>` and `<Tag>` and opens a new `<Tag>` of the attacker's choosing, so S3 parses two tags where the application intended one.\n\n**3. Effect in S3.** S3 honors tags in access-control conditions (`aws:RequestTag`, `s3:ExistingObjectTag/<key>`) and in cost-allocation reporting, so the injected tag can set an authorization-relevant key the application never meant to assign, or override and corrupt the legitimate tag set."}],"value":"1. Unescaped interpolation. ExAws.S3.put_bucket_tagging/2 and ExAws.S3.put_object_tagging/4 in lib/ex_aws/s3.ex build each <Tag> element by placing to_string(key) and to_string(value) directly inside <Key> and <Value>. The module's escape_xml_string/1 helper, which delete_multiple_objects already applies to object keys, is not used.\n\n2. Element break-out. XML metacharacters in a key or value are emitted verbatim. A value such as blue</Value></Tag><Tag><Key>owner</Key><Value>admin closes the intended <Value> and <Tag> and opens a new <Tag> of the attacker's choosing, so S3 parses two tags where the application intended one.\n\n3. Effect in S3. S3 honors tags in access-control conditions (aws:RequestTag, s3:ExistingObjectTag/<key>) and in cost-allocation reporting, so the injected tag can set an authorization-relevant key the application never meant to assign, or override and corrupt the legitimate tag set."}]}},"cveMetadata":{"assignerOrgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","assignerShortName":"EEF","cveId":"CVE-2026-62273","datePublished":"2026-11-24T14:15:59.569Z","dateReserved":"2026-07-13T18:06:12.918Z","dateUpdated":"2026-11-24T14:15:59.569Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"}