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

CVE-2026-65622: ex_aws_ses missing URI-encoding of list_name allows path injection into SES V2 request URLs

Published 2026-11-24 · Updated 2026-11-25 · Also known as EEF-CVE-2026-65622, GHSA-m65r-v8mq-xj8v

Summary

An improper escaping vulnerability in the ex_aws_ses package allows path injection into Amazon SES V2 request URLs via unvalidated list names. Engineering teams using ex_aws_ses versions 2.3.0 through 2.4.x with untrusted input should upgrade immediately.

Who is affected

Deployments using ex_aws_ses versions 2.3.0 up to 2.5.0 where untrusted input (such as an HTTP parameter or tenant record) is passed as the list_name argument are affected. This allows an attacker to inject path traversal characters like '/' or '..' to escape the intended path segment, enabling cross-resource request forgery inside the caller's own AWS account.

Exploitability

The vulnerability is locally exploitable with low attack complexity requiring low privileges and no user interaction, resulting in low confidentiality and high integrity impact (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). EPSS is 0.003 (percentile 0.102) and CISA KEV status is no.

Remediation

How to check your project

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

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
Hex ex_aws_ses >= 2.3.0, < 2.5.0 2.5.0 mix deps.update ex_aws_ses

CVSS 4.0 vector

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

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

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

FAQ

Which versions of ex_aws_ses are vulnerable?

Versions introduced 2.3.0 up to before 2.5.0 are vulnerable.

What is the exact mechanism of the attack?

Attackers can inject characters like '/', '..', or '?' into the caller-supplied list_name argument, escaping the intended contact-lists/<name> path segment and redirecting the signed SES request to a different resource in the AWS account.

Are applications with hardcoded list names affected?

No, applications that only use hardcoded or strictly validated list names are not affected.

Original advisory description
## 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. ## Details **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 <> "/#{resource}"`. **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. **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's suppression list. Appending `/contacts/<addr>` turns a list-level operation into a contact operation, and a `?` can inject query parameters. The request is signed with the application's credentials and sent to the configured SES host, so the effect is cross-resource request forgery inside the caller's own AWS account. ## Proof of concept 1. An application takes a contact-list name from untrusted input and calls `ExAws.SES.delete_contact_list(list_name) |> ExAws.request()`. 2. The attacker supplies `x/../suppression/addresses/[email protected]` (with the `@` percent-encoded) as the list name. 3. `delete_contact_list/1` interpolates it unencoded, so the signed request is `DELETE /v2/email/contact-lists/x/../suppression/addresses/victim%40example.com`. 4. Once the `..` is normalized, the request deletes the victim address from the account-wide suppression list instead of deleting a contact list. ## Impact 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. ## Workarounds Restrict `list_name` to Amazon SES's permitted contact-list character set, or run it through `ExAws.Request.Url.uri_encode/1`, before passing it to the affected functions. ## Configurations 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.

References

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