{"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_bucket_logging/2"},{"name":"'Elixir.ExAws.S3':put_bucket_notification/2"},{"name":"'Elixir.ExAws.S3':put_bucket_replication/2"},{"name":"'Elixir.ExAws.S3':put_bucket_website/2"}],"repo":"https://github.com/ex-aws/ex_aws_s3","vendor":"ex-aws","versions":[{"lessThan":"2.6.0","status":"affected","version":"2.5.9","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_bucket_logging/2"},{"name":"'Elixir.ExAws.S3':put_bucket_notification/2"},{"name":"'Elixir.ExAws.S3':put_bucket_replication/2"},{"name":"'Elixir.ExAws.S3':put_bucket_website/2"}],"repo":"https://github.com/ex-aws/ex_aws_s3","vendor":"ex-aws","versions":[{"lessThan":"eda0b9b9c63707f7db8d8f18c331df7fda57c397","status":"affected","version":"7d6f5cde90aaea36f9a059de874d1420da20eef2","versionType":"git"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*","versionEndExcluding":"2.6.0","versionStartIncluding":"2.5.9","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:20.000Z","descriptions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>XML Injection vulnerability in ex-aws ex_aws_s3 (<code>ExAws.S3</code> module) allows an attacker to inject arbitrary XML configuration elements into S3 bucket-configuration request bodies via unescaped, caller-supplied values.</p>\n<p>This vulnerability is associated with program files <code>lib/ex_aws/s3.ex</code> and program routines <code>ExAws.S3.put_bucket_logging/2</code>, <code>ExAws.S3.put_bucket_notification/2</code>, <code>ExAws.S3.put_bucket_replication/2</code>, <code>ExAws.S3.put_bucket_website/2</code>.</p>\n<p>The bucket-configuration body builders construct their XML by interpolating caller-supplied values directly into the request body without escaping, and never route them through the module's own <code>escape_xml_string/1</code> helper. A value containing XML metacharacters (<code>&lt;</code>, <code>&gt;</code>, <code>&amp;</code>, quotes) can close the intended element early and open attacker-chosen elements, which the builder's trailing closing tag then closes, keeping the document single-rooted and well-formed. In a multi-tenant application where tenants configure their own bucket settings, an attacker who can influence one of the interpolated field values (for example the logging target, a notification ARN, a replication destination or Account, or a website redirect HostName) can inject arbitrary configuration nodes into a request the application signs and sends to AWS. The affected builders are reached through the public functions <code>put_bucket_logging/2</code>, <code>put_bucket_notification/2</code>, <code>put_bucket_replication/2</code>, and <code>put_bucket_website/2</code>.</p>\n<p>This issue affects ex_aws_s3: from 2.5.9 before 2.6.0.</p>"},{"base64":false,"type":"text/markdown","value":"XML Injection vulnerability in ex-aws ex_aws_s3 (`ExAws.S3` module) allows an attacker to inject arbitrary XML configuration elements into S3 bucket-configuration request bodies via unescaped, caller-supplied values.\n\nThis vulnerability is associated with program files `lib/ex_aws/s3.ex` and program routines `ExAws.S3.put_bucket_logging/2`, `ExAws.S3.put_bucket_notification/2`, `ExAws.S3.put_bucket_replication/2`, `ExAws.S3.put_bucket_website/2`.\n\nThe bucket-configuration body builders construct their XML by interpolating caller-supplied values directly into the request body without escaping, and never route them through the module's own `escape_xml_string/1` helper. A value containing XML metacharacters (`<`, `>`, `&`, quotes) can close the intended element early and open attacker-chosen elements, which the builder's trailing closing tag then closes, keeping the document single-rooted and well-formed. In a multi-tenant application where tenants configure their own bucket settings, an attacker who can influence one of the interpolated field values (for example the logging target, a notification ARN, a replication destination or Account, or a website redirect HostName) can inject arbitrary configuration nodes into a request the application signs and sends to AWS. The affected builders are reached through the public functions `put_bucket_logging/2`, `put_bucket_notification/2`, `put_bucket_replication/2`, and `put_bucket_website/2`.\n\nThis issue affects ex_aws_s3: from 2.5.9 before 2.6.0."}],"value":"XML Injection vulnerability in ex-aws ex_aws_s3 (ExAws.S3 module) allows an attacker to inject arbitrary XML configuration elements into S3 bucket-configuration request bodies via unescaped, caller-supplied values.\n\nThis vulnerability is associated with program files lib/ex_aws/s3.ex and program routines ExAws.S3.put_bucket_logging/2, ExAws.S3.put_bucket_notification/2, ExAws.S3.put_bucket_replication/2, ExAws.S3.put_bucket_website/2.\n\nThe bucket-configuration body builders construct their XML by interpolating caller-supplied values directly into the request body without escaping, and never route them through the module's own escape_xml_string/1 helper. A value containing XML metacharacters (<, >, &, quotes) can close the intended element early and open attacker-chosen elements, which the builder's trailing closing tag then closes, keeping the document single-rooted and well-formed. In a multi-tenant application where tenants configure their own bucket settings, an attacker who can influence one of the interpolated field values (for example the logging target, a notification ARN, a replication destination or Account, or a website redirect HostName) can inject arbitrary configuration nodes into a request the application signs and sends to AWS. The affected builders are reached through the public functions put_bucket_logging/2, put_bucket_notification/2, put_bucket_replication/2, and put_bucket_website/2.\n\nThis issue affects ex_aws_s3: from 2.5.9 before 2.6.0."}],"impacts":[{"capecId":"CAPEC-250","descriptions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>This is an XML/structure injection vulnerability in the bucket-configuration body builders of <code>ex_aws_s3</code>. It affects any application that passes untrusted or user-supplied values into these builders, most relevantly multi-tenant services that let tenants configure their own bucket logging, notifications, replication, or website settings. The only precondition is that an attacker can influence one of the interpolated field values; they can then inject arbitrary configuration elements (e.g. an attacker-owned replication destination/<code>Account</code>, logging target, or website redirect <code>HostName</code>) into a request the application signs and sends to AWS.</p>"},{"base64":false,"type":"text/markdown","value":"This is an XML/structure injection vulnerability in the bucket-configuration body builders of `ex_aws_s3`. It affects any application that passes untrusted or user-supplied values into these builders, most relevantly multi-tenant services that let tenants configure their own bucket logging, notifications, replication, or website settings. The only precondition is that an attacker can influence one of the interpolated field values; they can then inject arbitrary configuration elements (e.g. an attacker-owned replication destination/`Account`, logging target, or website redirect `HostName`) into a request the application signs and sends to AWS."}],"value":"This is an XML/structure injection vulnerability in the bucket-configuration body builders of ex_aws_s3. It affects any application that passes untrusted or user-supplied values into these builders, most relevantly multi-tenant services that let tenants configure their own bucket logging, notifications, replication, or website settings. The only precondition is that an attacker can influence one of the interpolated field values; they can then inject arbitrary configuration elements (e.g. an attacker-owned replication destination/Account, logging target, or website redirect HostName) into a request the application signs and sends to AWS."}]}],"metrics":[{"cvssV4_0":{"Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","Safety":"NOT_DEFINED","attackComplexity":"LOW","attackRequirements":"NONE","attackVector":"LOCAL","baseScore":6.9,"baseSeverity":"MEDIUM","privilegesRequired":"NONE","providerUrgency":"NOT_DEFINED","subAvailabilityImpact":"NONE","subConfidentialityImpact":"LOW","subIntegrityImpact":"LOW","userInteraction":"NONE","valueDensity":"NOT_DEFINED","vectorString":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:L/SI:L/SA:N","version":"4.0","vulnAvailabilityImpact":"NONE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"HIGH","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:21.465Z","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-cf93-7gwh-6w98"},{"name":"EEF CNA record for CVE-2026-63581","tags":["related"],"url":"https://cna.erlef.org/cves/CVE-2026-63581.html"},{"name":"OSV record EEF-CVE-2026-63581","tags":["related"],"url":"https://osv.dev/vulnerability/EEF-CVE-2026-63581"},{"name":"Introducing commit 7d6f5cd in ex-aws/ex_aws_s3","tags":["related"],"url":"https://github.com/ex-aws/ex_aws_s3/commit/7d6f5cde90aaea36f9a059de874d1420da20eef2"},{"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":"ex_aws_s3 XML injection in bucket-configuration builders","workarounds":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>Validate or sanitize caller-supplied values before passing them to the affected bucket-configuration builders, rejecting or escaping any value that contains XML metacharacters (<code>&lt;</code>, <code>&gt;</code>, <code>&amp;</code>, <code>'</code>, <code>\"</code>).</p>"},{"base64":false,"type":"text/markdown","value":"Validate or sanitize caller-supplied values before passing them to the affected bucket-configuration builders, rejecting or escaping any value that contains XML metacharacters (`<`, `>`, `&`, `'`, `\"`)."}],"value":"Validate or sanitize caller-supplied values before passing them to the affected bucket-configuration builders, rejecting or escaping any value that contains XML metacharacters (<, >, &, ', \")."}],"x_proofOfConcept":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<ol>\n<li>A multi-tenant application exposes <code>POST /configure-logging</code> and forwards the tenant's form values to <code>ExAws.S3.put_bucket_logging(bucket, target_bucket: target_bucket)</code>.</li>\n<li>The attacker submits <code>target_bucket</code> as <code>tenant-logs&lt;/TargetBucket&gt;&lt;TargetBucket&gt;attacker-exfil-bucket</code>.</li>\n<li>The builder interpolates it unescaped, and its own trailing <code>&lt;/TargetBucket&gt;</code> closes the injected element, so the body stays well-formed.</li>\n<li>Parsing the body yields two <code>TargetBucket</code> nodes, <code>tenant-logs</code> and <code>attacker-exfil-bucket</code>, in the configuration the application signs and sends to AWS.</li>\n</ol>"},{"base64":false,"type":"text/markdown","value":"1. A multi-tenant application exposes `POST /configure-logging` and forwards the tenant's form values to `ExAws.S3.put_bucket_logging(bucket, target_bucket: target_bucket)`.\n2. The attacker submits `target_bucket` as `tenant-logs</TargetBucket><TargetBucket>attacker-exfil-bucket`.\n3. The builder interpolates it unescaped, and its own trailing `</TargetBucket>` closes the injected element, so the body stays well-formed.\n4. Parsing the body yields two `TargetBucket` nodes, `tenant-logs` and `attacker-exfil-bucket`, in the configuration the application signs and sends to AWS."}],"value":"* A multi-tenant application exposes POST /configure-logging and forwards the tenant's form values to ExAws.S3.put_bucket_logging(bucket, target_bucket: target_bucket).\n* The attacker submits target_bucket as tenant-logs</TargetBucket><TargetBucket>attacker-exfil-bucket.\n* The builder interpolates it unescaped, and its own trailing </TargetBucket> closes the injected element, so the body stays well-formed.\n* Parsing the body yields two TargetBucket nodes, tenant-logs and attacker-exfil-bucket, in the configuration the application signs and sends to AWS."}],"x_technicalAnalysis":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p><strong>1. Unescaped interpolation.</strong> The bucket-configuration body builders in <code>lib/ex_aws/s3.ex</code> interpolate caller-supplied values into XML with plain string interpolation and never apply the module's <code>escape_xml_string/1</code> helper. This covers <code>put_bucket_logging</code> (<code>target_bucket</code>, <code>target_prefix</code>), the notification builders (topic, Lambda and queue ARNs, <code>id</code>, events, filter rule names and values), the replication builders (<code>role</code>, rule <code>id</code> and <code>status</code>, filter prefix, tag keys and values, destination <code>bucket</code>, <code>storage_class</code>, <code>account</code>, <code>owner</code>) and the website builders (<code>host_name</code>, <code>protocol</code>, <code>index_doc</code>, <code>error_doc</code> and every routing-rule field).</p>\n<p><strong>2. Element break-out.</strong> In <code>put_bucket_logging</code>, for example, the body contains <code>&lt;TargetBucket&gt;#{target_bucket}&lt;/TargetBucket&gt;</code>. A value containing <code>&lt;/TargetBucket&gt;&lt;TargetBucket&gt;...</code> closes the legitimate element early and opens a second one inside the same <code>&lt;LoggingEnabled&gt;</code> block.</p>\n<p><strong>3. Well-formed result.</strong> The builder's own trailing closing tag closes the injected node, so the document stays single-rooted and well-formed, parses cleanly and would be accepted by AWS. The application signs and sends the attacker-shaped configuration as its own.</p>"},{"base64":false,"type":"text/markdown","value":"**1. Unescaped interpolation.** The bucket-configuration body builders in `lib/ex_aws/s3.ex` interpolate caller-supplied values into XML with plain string interpolation and never apply the module's `escape_xml_string/1` helper. This covers `put_bucket_logging` (`target_bucket`, `target_prefix`), the notification builders (topic, Lambda and queue ARNs, `id`, events, filter rule names and values), the replication builders (`role`, rule `id` and `status`, filter prefix, tag keys and values, destination `bucket`, `storage_class`, `account`, `owner`) and the website builders (`host_name`, `protocol`, `index_doc`, `error_doc` and every routing-rule field).\n\n**2. Element break-out.** In `put_bucket_logging`, for example, the body contains `<TargetBucket>#{target_bucket}</TargetBucket>`. A value containing `</TargetBucket><TargetBucket>...` closes the legitimate element early and opens a second one inside the same `<LoggingEnabled>` block.\n\n**3. Well-formed result.** The builder's own trailing closing tag closes the injected node, so the document stays single-rooted and well-formed, parses cleanly and would be accepted by AWS. The application signs and sends the attacker-shaped configuration as its own."}],"value":"1. Unescaped interpolation. The bucket-configuration body builders in lib/ex_aws/s3.ex interpolate caller-supplied values into XML with plain string interpolation and never apply the module's escape_xml_string/1 helper. This covers put_bucket_logging (target_bucket, target_prefix), the notification builders (topic, Lambda and queue ARNs, id, events, filter rule names and values), the replication builders (role, rule id and status, filter prefix, tag keys and values, destination bucket, storage_class, account, owner) and the website builders (host_name, protocol, index_doc, error_doc and every routing-rule field).\n\n2. Element break-out. In put_bucket_logging, for example, the body contains <TargetBucket>#{target_bucket}</TargetBucket>. A value containing </TargetBucket><TargetBucket>... closes the legitimate element early and opens a second one inside the same <LoggingEnabled> block.\n\n3. Well-formed result. The builder's own trailing closing tag closes the injected node, so the document stays single-rooted and well-formed, parses cleanly and would be accepted by AWS. The application signs and sends the attacker-shaped configuration as its own."}]}},"cveMetadata":{"assignerOrgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","assignerShortName":"EEF","cveId":"CVE-2026-63581","datePublished":"2026-11-24T14:15:21.465Z","dateReserved":"2026-07-17T04:14:44.351Z","dateUpdated":"2026-11-24T14:15:21.465Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"}