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

Published Nov 24, 2026
·
Updated

Summary

ExAws.S3 constructs S3 ACL grant headers (such as x-amz-grant-read and x-amz-grant-full-control) in formatgrantheader/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 (grantread, grantwrite, grantreadacp, grantwriteacp, or grantfullcontrol) 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 exawss3: 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. formatgrantheader/1 in lib/exaws/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="ATTACKERCANONICALID closes the quoted token and opens a second tuple, producing id="x", id="ATTACKERCANONICALID". 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.putobjectacl("victim-bucket", "secret.txt", grantread: [email: email]) with a user-supplied email. 2. The attacker submits the email victim@example.com", id="ATTACKERCANONICALIDdeadbeef. 3. formatgrantheader/1 interpolates it into emailAddress="...", closing the quote after victim@example.com and opening a second tuple. 4. The x-amz-grant-read header carries emailAddress="victim@example.com", id="ATTACKERCANONICALIDdeadbeef", 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 (grantread, grantwrite, grantreadacp, grantwriteacp, grantfullcontrol) 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 (grantread, grantwrite, grantreadacp, grantwriteacp, or grantfullcontrol). Applications that only pass trusted, validated grantee identifiers into these options are not affected.

Other sources

ExAws.S3 constructs S3 ACL grant headers (such as x-amz-grant-read and x-amz-grant-full-control) in formatgrantheader/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 (grantread, grantwrite, grantreadacp, grantwriteacp, or grantfullcontrol) 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 exawss3: from 2.0.0 before 2.6.0.

— MITRE

Affected Software

2 affected componentsFixes available
hex/ex_aws_s3>=2.0.0<2.6.0
erlang/ex_aws_s3>=2.0.0<2.6.0
2.6.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade erlang/ex_aws_s3 to a version that resolves this vulnerability.

    Fixed in 2.6.0
  2. Upgrade

    Upgrade ex_aws_s3 to a version that resolves this vulnerability.

    Fixed in 2.6.0
  3. Compensating control

    Before passing grantee identifiers to ExAws.S3 ACL grant options, reject values containing double quotes, commas, or CR/LF characters, or restrict them to trusted canonical IDs and email addresses matching the expected S3 grantee grammar.

Event History

Nov 24, 2026
CVE Published
via MITRE·02:13 PM
Data Sourced
via MITRE·02:13 PM
DescriptionWeakness
Data Sourced
via OSV·02:13 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

Which applications are exposed to this issue?

Applications using ex_aws_s3 versions from 2.0.0 before 2.6.0 are exposed if they pass attacker-influenced email or canonical ID values into an ACL grant option. Relevant options include grant_read, grant_write, grant_read_acp, grant_write_acp, and grant_full_control.

2

What does an attacker need to exploit it?

The attacker needs influence over a grantee value used to build an S3 ACL grant header, such as an email address supplied through an object-sharing feature. They can use unescaped double quotes, commas, or CR/LF characters to terminate the intended grantee entry and add another principal.

3

What is the practical impact of successful exploitation?

An injected principal receives the permission associated with the affected grant header. Depending on the option used, this can grant access up to full control or make an object accessible to the predefined AllUsers group.

4

How can teams identify potentially affected code paths?

Review uses of the listed ACL grant options and determine whether grantee email or ID values can originate from users or other untrusted input. Values containing double quotes, commas, or CR/LF characters are especially relevant indicators of attempted or possible injection.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203