Server-Side Request Forgery in ex_aws by ExAws
CVE-2026-59697
What is CVE-2026-59697?
The ex_aws library has a vulnerability that allows an attacker to manipulate server-side requests due to improper handling of token requests to the instance metadata service. The vulnerability occurs when ex_aws sends a request to an internal metadata endpoint (http://169.254.169.254/latest/api/token) that follows HTTP redirects without restricting them. This could allow an attacker who is on the same network segment to redirect the request to an arbitrary host and seize control over sensitive metadata tokens. The token, which is meant solely for use within AWS infrastructure, could be exploited leading to unauthorized access and significant security breaches. This affects ex_aws from versions 2.3.0 up to, but not including, 2.8.0.
Affected Version(s)
ex_aws 2.3.0 < 2.8.0
ex_aws 4d7923c16f613cc2bade2ed325d444bba0bc7234 < 9fcc3605c7a0ecf8e205a72c50de3ced72befed0
References
CVSS V4
Timeline
Vulnerability published
Vulnerability Reserved
