CVE-2026-63585 PUBLISHED

ExAws.S3 ACL grantee injection via unescaped grant headers in format_grant_header/1

Assigner: EEF
Reserved: 17.07.2026 Published: 24.11.2026 Updated: 24.11.2026

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.

Metrics

CVSS 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
CVSS Score: 4.8

Product Status

Vendor ex-aws
Product ex_aws_s3
Versions Default: unaffected
  • affected from 2.0.0 to 2.6.0 (excl.)
Vendor ex-aws
Product ex_aws_s3
Versions Default: unaffected
  • affected from 4ce4d72219c0cb8de9356278203d8ea780311b75 to dd422637a46203d01cc47fd832836758f8090556 (excl.)

Affected 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.

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.

Credits

  • Peter Ullrich finder
  • Peter Ullrich reporter
  • Jonatan Männchen / EEF analyst
  • Peter Ullrich coordinator
  • Bernard Duggan remediation developer

References

Problem Types

  • CWE-116 Improper Encoding or Escaping of Output CWE

Impacts

  • 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.