ExAws.S3 ACL grantee injection via unescaped grant headers in format_grant_header/1
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 2.6.0 and dd422637a46203d01cc47fd832836758f8090556.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| ex-aws | >=2.0.0 <2.6.0, >=4ce4d72219c0cb8de9356278203d8ea780311b75 <dd422637a46203d01cc47fd832836758f8090556 | 2.6.0, dd422637a46203d01cc47fd832836758f8090556 |
Timeline
Every event on this vulnerability
Embed
A live severity badge for an advisory, README or ticket