SEVERITY NOT PROVIDED · CVSS 4.0 EPSS 0.3% · 10th percentile CWE-116

CVE-2026-63585: ExAws.S3 ACL grantee injection via unescaped grant headers in format_grant_header/1

Published 2026-11-24 · Updated 2026-11-26 · Also known as EEF-CVE-2026-63585, GHSA-6fg2-v8g4-vfg2

Summary

ExAws.S3 improperly escapes grantee identifiers in ACL grant headers, allowing user-supplied input to inject arbitrary grantees. Engineering teams using affected versions with untrusted grantee input must upgrade.

Who is affected

Applications using ExAws.S3 versions 2.0.0 through 2.5.x are vulnerable when they pass attacker-influenced grantee values into ACL grant options like grant_read or grant_full_control. An attacker can supply a specially crafted email or ID containing double quotes and commas to close the quoted token, inject their own canonical ID or public group URI, and gain unauthorized access to S3 objects or buckets.

Exploitability

The CVSS 4.0 vector (AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:H/SI:L/SA:N) indicates local attack vector conditions with low attack complexity, requiring low privileges and no user interaction, alongside a high scope confidentiality impact. The EPSS score is 0.003 (percentile 0.102) and CISA KEV status is no.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-26. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
Hex ex_aws_s3 >= 2.0.0, < 2.6.0 2.6.0 mix deps.update ex_aws_s3

CVSS 4.0 vector

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

Attack vectorLocal
Attack complexityLow
Attack requirementsPresent
Privileges requiredNone
User interactionNone
Confidentiality (vulnerable system)None
Integrity (vulnerable system)Low
Availability (vulnerable system)None
Confidentiality (subsequent systems)High
Integrity (subsequent systems)Low
Availability (subsequent systems)None

Base score is not computed for CVSS 4.0 vectors; severity is taken from the advisory.

FAQ

What causes the vulnerability in ExAws.S3?

The flaw exists in format_grant_header/1 within lib/ex_aws/s3/utils.ex, which interpolates grantee identifiers into quoted comma-separated lists without neutralizing double-quote, comma, or CR/LF characters.

Which versions of ex_aws_s3 are affected?

The vulnerability affects ex_aws_s3 versions from 2.0.0 up to, but not including, 2.6.0.

Are applications passing only trusted grantee identifiers vulnerable?

No, applications that only pass trusted, validated grantee identifiers into the ACL grant options are not affected.

Original advisory description
## Summary `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. This issue affects ex_aws_s3: from 2.0.0 before 2.6.0. ## Details **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"]...`. **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. **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`. ## Proof of concept 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. 2. The attacker submits the email `[email protected]", id="ATTACKER_CANONICAL_ID_deadbeef`. 3. `format_grant_header/1` interpolates it into `emailAddress="..."`, closing the quote after `[email protected]` and opening a second tuple. 4. The `x-amz-grant-read` header carries `emailAddress="[email protected]", id="ATTACKER_CANONICAL_ID_deadbeef"`, granting the attacker's principal read access. ## Impact 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. ## Workarounds 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. ## Configurations 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.

References

Source records: EEF-CVE-2026-63585 (OSV.dev) · EPSS by FIRST, 2026-11-26.