CVE-2026-59697
IMDSv2 metadata token request follows HTTP redirects in ex_aws
Check your servers for CVE-2026-59697
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-59697 affects ex_aws, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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 (CVSS)
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
- Attack vector
- adjacent: the attacker has to be on the same local network or link
- Attack complexity
- high: an attack depends on conditions outside the control of the attacker, such as a race
- Attack requirements
- present: an attack works only when the target is in a certain state or configuration
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Impact on the vulnerable system
- confidentiality high, integrity high, availability none: what an attacker can read, change or stop in the vulnerable component
- Impact on other systems
- confidentiality none, integrity none, availability none: what an attacker can read, change or stop beyond it
Exploitation
EPSS 0.31%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 16.5% of all scored CVEs. Scores of 29 Nov 2026.
Weakness
- CWE-918 Server-Side Request Forgery
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
ex_aws
package
ex_aws |
affected from 2.3.0, before 2.8.0
Other versions: unaffected
|
|
ex_aws
package
ex-aws/ex_aws |
affected from 4d7923c16f613cc2bade2ed325d444bba0bc7234, before 9fcc3605c7a0ecf8e205a72c50de3ced72befed0
Other versions: unaffected
|
Is my server affected?
Find the installed version of ex_aws and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i ex_aws
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-59697 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-59697RHEL, Rocky, Alma, Fedora
rpm -q ex_aws
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-59697Alpine
apk list --installed | grep -i ex_awsWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-59697
trivy image --scanners vuln IMAGE | grep CVE-2026-59697
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- https://github.com/ex-aws/ex_aws/security/advisories/GHSA-mww9-g5mj-j664 github.com · vendor advisory, related
Patches and release notes
- Fix commit 9fcc360 in ex-aws/ex_aws github.com · patch
Other references
- EEF CNA record for CVE-2026-59697 cna.erlef.org · related
- OSV record EEF-CVE-2026-59697 osv.dev · related
- Introducing commit 4d7923c in ex-aws/ex_aws github.com · related
Source: the record CVE-2026-59697 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse