{"containers":{"cna":{"affected":[{"collectionURL":"https://repo.hex.pm","cpes":["cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*"],"defaultStatus":"unaffected","modules":["'Elixir.ExAws.S3.Utils'","'Elixir.ExAws.S3'"],"packageName":"ex_aws_s3","packageURL":"pkg:hex/ex_aws_s3","product":"ex_aws_s3","programFiles":["lib/ex_aws/s3/utils.ex","lib/ex_aws/s3.ex"],"programRoutines":[{"name":"'Elixir.ExAws.S3.Utils':format_grant_header/1"},{"name":"'Elixir.ExAws.S3':put_object_acl/3"},{"name":"'Elixir.ExAws.S3':put_bucket_acl/3"}],"repo":"https://github.com/ex-aws/ex_aws_s3","vendor":"ex-aws","versions":[{"lessThan":"2.6.0","status":"affected","version":"2.0.0","versionType":"semver"}]},{"collectionURL":"https://github.com","cpes":["cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*"],"defaultStatus":"unaffected","modules":["'Elixir.ExAws.S3.Utils'","'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/utils.ex","lib/ex_aws/s3.ex"],"programRoutines":[{"name":"'Elixir.ExAws.S3.Utils':format_grant_header/1"},{"name":"'Elixir.ExAws.S3':put_object_acl/3"},{"name":"'Elixir.ExAws.S3':put_bucket_acl/3"}],"repo":"https://github.com/ex-aws/ex_aws_s3","vendor":"ex-aws","versions":[{"lessThan":"dd422637a46203d01cc47fd832836758f8090556","status":"affected","version":"4ce4d72219c0cb8de9356278203d8ea780311b75","versionType":"git"}]}],"configurations":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>The vulnerability requires the host application to pass untrusted input into an <code>ExAws.S3</code> ACL grant option (<code>grant_read</code>, <code>grant_write</code>, <code>grant_read_acp</code>, <code>grant_write_acp</code>, or <code>grant_full_control</code>). Applications that only pass trusted, validated grantee identifiers into these options are not affected.</p>"},{"base64":false,"type":"text/markdown","value":"The vulnerability requires the host application to pass untrusted input into an `ExAws.S3` ACL grant option (`grant_read`, `grant_write`, `grant_read_acp`, `grant_write_acp`, or `grant_full_control`). Applications that only pass trusted, validated grantee identifiers into these options are not affected."}],"value":"The vulnerability requires the host application to pass untrusted input into an ExAws.S3 ACL grant option (grant_read, grant_write, grant_read_acp, grant_write_acp, or grant_full_control). Applications that only pass trusted, validated grantee identifiers into these options are not affected."}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*","versionEndExcluding":"2.6.0","versionStartIncluding":"2.0.0","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:13:11.000Z","descriptions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p><code>ExAws.S3</code> constructs S3 ACL grant headers (such as <code>x-amz-grant-read</code> and <code>x-amz-grant-full-control</code>) in <code>format_grant_header/1</code> by interpolating grantee identifiers into a quoted, comma-separated list without escaping. Grantee email and id values are wrapped in double quotes and joined with a comma, but double-quote, comma, and CR/LF characters in the value are not neutralized. An application that passes an attacker-influenced grantee value (for example an email address taken from a \"share this object\" feature) into an ACL grant option (<code>grant_read</code>, <code>grant_write</code>, <code>grant_read_acp</code>, <code>grant_write_acp</code>, or <code>grant_full_control</code>) lets the attacker close the quoted token and inject an additional grantee, such as the attacker's own canonical id or the predefined AllUsers group URI, into the header. S3 then applies the injected grantee, granting an arbitrary principal the same permission (up to full control or public access) in an unintended ACL grantee-injection and privilege-escalation issue.</p>\n<p>This issue affects ex_aws_s3: from 2.0.0 before 2.6.0.</p>"},{"base64":false,"type":"text/markdown","value":"`ExAws.S3` constructs S3 ACL grant headers (such as `x-amz-grant-read` and `x-amz-grant-full-control`) in `format_grant_header/1` by interpolating grantee identifiers into a quoted, comma-separated list without escaping. Grantee email and id values are wrapped in double quotes and joined with a comma, but double-quote, comma, and CR/LF characters in the value are not neutralized. An application that passes an attacker-influenced grantee value (for example an email address taken from a \"share this object\" feature) into an ACL grant option (`grant_read`, `grant_write`, `grant_read_acp`, `grant_write_acp`, or `grant_full_control`) lets the attacker close the quoted token and inject an additional grantee, such as the attacker's own canonical id or the predefined AllUsers group URI, into the header. S3 then applies the injected grantee, granting an arbitrary principal the same permission (up to full control or public access) in an unintended ACL grantee-injection and privilege-escalation issue.\n\nThis issue affects ex_aws_s3: from 2.0.0 before 2.6.0."}],"value":"ExAws.S3 constructs S3 ACL grant headers (such as x-amz-grant-read and x-amz-grant-full-control) in format_grant_header/1 by interpolating grantee identifiers into a quoted, comma-separated list without escaping. Grantee email and id values are wrapped in double quotes and joined with a comma, but double-quote, comma, and CR/LF characters in the value are not neutralized. An application that passes an attacker-influenced grantee value (for example an email address taken from a \"share this object\" feature) into an ACL grant option (grant_read, grant_write, grant_read_acp, grant_write_acp, or grant_full_control) lets the attacker close the quoted token and inject an additional grantee, such as the attacker's own canonical id or the predefined AllUsers group URI, into the header. S3 then applies the injected grantee, granting an arbitrary principal the same permission (up to full control or public access) in an unintended ACL grantee-injection and privilege-escalation issue.\n\nThis issue affects ex_aws_s3: from 2.0.0 before 2.6.0."}],"impacts":[{"capecId":"CAPEC-137","descriptions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>This is an ACL grantee-injection vulnerability leading to unintended permission grants and potential privilege escalation. It affects any application using <code>ExAws.S3</code> ACL grant options (<code>grant_read</code>, <code>grant_write</code>, <code>grant_read_acp</code>, <code>grant_write_acp</code>, <code>grant_full_control</code>) where the grantee email or id is derived from untrusted input. An attacker who can influence a grantee value can grant their own AWS principal access to objects or buckets, up to full control, by injecting an extra grantee into the comma-separated grant header.</p>"},{"base64":false,"type":"text/markdown","value":"This is an ACL grantee-injection vulnerability leading to unintended permission grants and potential privilege escalation. It affects any application using `ExAws.S3` ACL grant options (`grant_read`, `grant_write`, `grant_read_acp`, `grant_write_acp`, `grant_full_control`) where the grantee email or id is derived from untrusted input. An attacker who can influence a grantee value can grant their own AWS principal access to objects or buckets, up to full control, by injecting an extra grantee into the comma-separated grant header."}],"value":"This is an ACL grantee-injection vulnerability leading to unintended permission grants and potential privilege escalation. It affects any application using ExAws.S3 ACL grant options (grant_read, grant_write, grant_read_acp, grant_write_acp, grant_full_control) where the grantee email or id is derived from untrusted input. An attacker who can influence a grantee value can grant their own AWS principal access to objects or buckets, up to full control, by injecting an extra grantee into the comma-separated grant header."}]}],"metrics":[{"cvssV4_0":{"Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","Safety":"NOT_DEFINED","attackComplexity":"LOW","attackRequirements":"PRESENT","attackVector":"LOCAL","baseScore":4.8,"baseSeverity":"MEDIUM","privilegesRequired":"NONE","providerUrgency":"NOT_DEFINED","subAvailabilityImpact":"NONE","subConfidentialityImpact":"HIGH","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:H/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-116","description":"CWE-116 Improper Encoding or Escaping of Output","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-11-24T14:13:11.918Z","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-6fg2-v8g4-vfg2"},{"name":"EEF CNA record for CVE-2026-63585","tags":["related"],"url":"https://cna.erlef.org/cves/CVE-2026-63585.html"},{"name":"OSV record EEF-CVE-2026-63585","tags":["related"],"url":"https://osv.dev/vulnerability/EEF-CVE-2026-63585"},{"name":"Introducing commit 4ce4d72 in ex-aws/ex_aws_s3","tags":["related"],"url":"https://github.com/ex-aws/ex_aws_s3/commit/4ce4d72219c0cb8de9356278203d8ea780311b75"},{"name":"Fix commit dd42263 in ex-aws/ex_aws_s3","tags":["patch"],"url":"https://github.com/ex-aws/ex_aws_s3/commit/dd422637a46203d01cc47fd832836758f8090556"}],"source":{"discovery":"EXTERNAL"},"title":"ExAws.S3 ACL grantee injection via unescaped grant headers in format_grant_header/1","workarounds":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>Validate grantee identifiers before passing them to <code>ExAws.S3</code> ACL grant options and reject any value containing a double quote, comma, or CR/LF character, or restrict grantee input to trusted canonical ids and email addresses that match the expected S3 grantee grammar.</p>"},{"base64":false,"type":"text/markdown","value":"Validate grantee identifiers before passing them to `ExAws.S3` ACL grant options and reject any value containing a double quote, comma, or CR/LF character, or restrict grantee input to trusted canonical ids and email addresses that match the expected S3 grantee grammar."}],"value":"Validate grantee identifiers before passing them to ExAws.S3 ACL grant options and reject any value containing a double quote, comma, or CR/LF character, or restrict grantee input to trusted canonical ids and email addresses that match the expected S3 grantee grammar."}],"x_proofOfConcept":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<ol>\n<li>An application offers \"share this object\" and calls <code>ExAws.S3.put_object_acl(\"victim-bucket\", \"secret.txt\", grant_read: [email: email])</code> with a user-supplied email.</li>\n<li>The attacker submits the email <code>victim@example.com\", id=\"ATTACKER_CANONICAL_ID_deadbeef</code>.</li>\n<li><code>format_grant_header/1</code> interpolates it into <code>emailAddress=\"...\"</code>, closing the quote after <code>victim@example.com</code> and opening a second tuple.</li>\n<li>The <code>x-amz-grant-read</code> header carries <code>emailAddress=\"victim@example.com\", id=\"ATTACKER_CANONICAL_ID_deadbeef\"</code>, granting the attacker's principal read access.</li>\n</ol>"},{"base64":false,"type":"text/markdown","value":"1. An application offers \"share this object\" and calls `ExAws.S3.put_object_acl(\"victim-bucket\", \"secret.txt\", grant_read: [email: email])` with a user-supplied email.\n2. The attacker submits the email `victim@example.com\", id=\"ATTACKER_CANONICAL_ID_deadbeef`.\n3. `format_grant_header/1` interpolates it into `emailAddress=\"...\"`, closing the quote after `victim@example.com` and opening a second tuple.\n4. The `x-amz-grant-read` header carries `emailAddress=\"victim@example.com\", id=\"ATTACKER_CANONICAL_ID_deadbeef\"`, granting the attacker's principal read access."}],"value":"* An application offers \"share this object\" and calls ExAws.S3.put_object_acl(\"victim-bucket\", \"secret.txt\", grant_read: [email: email]) with a user-supplied email.\n* The attacker submits the email victim@example.com\", id=\"ATTACKER_CANONICAL_ID_deadbeef.\n* format_grant_header/1 interpolates it into emailAddress=\"...\", closing the quote after victim@example.com and opening a second tuple.\n* The x-amz-grant-read header carries emailAddress=\"victim@example.com\", id=\"ATTACKER_CANONICAL_ID_deadbeef\", granting the attacker's principal read access."}],"x_technicalAnalysis":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p><strong>1. Header grammar.</strong> S3 grant headers such as <code>x-amz-grant-read</code> and <code>x-amz-grant-full-control</code> are a comma-separated list of quoted grantee tuples, <code>type=\"id\"[, type=\"id\"]...</code>.</p>\n<p><strong>2. Unescaped interpolation.</strong> <code>format_grant_header/1</code> in <code>lib/ex_aws/s3/utils.ex</code> builds each tuple as <code>emailAddress=\"#{email}\"</code> or <code>#{key}=\"#{value}\"</code> and joins them with <code>, </code>. It does not check identifiers against the id or email grammar and does not reject or escape <code>\"</code>, <code>,</code> or CR/LF.</p>\n<p><strong>3. Grantee injection.</strong> A grantee value such as <code>x\", id=\"ATTACKER_CANONICAL_ID</code> closes the quoted token and opens a second tuple, producing <code>id=\"x\", id=\"ATTACKER_CANONICAL_ID\"</code>. S3 parses two grantees and gives the injected principal the permission the header conveys, up to full control for <code>x-amz-grant-full-control</code>.</p>"},{"base64":false,"type":"text/markdown","value":"**1. Header grammar.** S3 grant headers such as `x-amz-grant-read` and `x-amz-grant-full-control` are a comma-separated list of quoted grantee tuples, `type=\"id\"[, type=\"id\"]...`.\n\n**2. Unescaped interpolation.** `format_grant_header/1` in `lib/ex_aws/s3/utils.ex` builds each tuple as `emailAddress=\"#{email}\"` or `#{key}=\"#{value}\"` and joins them with `, `. It does not check identifiers against the id or email grammar and does not reject or escape `\"`, `,` or CR/LF.\n\n**3. Grantee injection.** A grantee value such as `x\", id=\"ATTACKER_CANONICAL_ID` closes the quoted token and opens a second tuple, producing `id=\"x\", id=\"ATTACKER_CANONICAL_ID\"`. S3 parses two grantees and gives the injected principal the permission the header conveys, up to full control for `x-amz-grant-full-control`."}],"value":"1. Header grammar. S3 grant headers such as x-amz-grant-read and x-amz-grant-full-control are a comma-separated list of quoted grantee tuples, type=\"id\"[, type=\"id\"]....\n\n2. Unescaped interpolation. format_grant_header/1 in lib/ex_aws/s3/utils.ex builds each tuple as emailAddress=\"#{email}\" or #{key}=\"#{value}\" and joins them with , . It does not check identifiers against the id or email grammar and does not reject or escape \", , or CR/LF.\n\n3. Grantee injection. A grantee value such as x\", id=\"ATTACKER_CANONICAL_ID closes the quoted token and opens a second tuple, producing id=\"x\", id=\"ATTACKER_CANONICAL_ID\". S3 parses two grantees and gives the injected principal the permission the header conveys, up to full control for x-amz-grant-full-control."}]}},"cveMetadata":{"assignerOrgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","assignerShortName":"EEF","cveId":"CVE-2026-63585","datePublished":"2026-11-24T14:13:11.918Z","dateReserved":"2026-07-17T04:14:44.351Z","dateUpdated":"2026-11-24T14:13:11.918Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"}