{"id":"CVE-2026-59697","sourceIdentifier":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","published":"2026-11-24T12:17:24.370","lastModified":"2026-12-01T17:17:39.463","vulnStatus":"Awaiting Analysis","cveTags":[],"descriptions":[{"lang":"en","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'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.\n\nThis issue affects ex_aws: from 2.3.0 before 2.8.0."}],"affected":[{"source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","affectedData":[{"vendor":"ex-aws","product":"ex_aws","defaultStatus":"unaffected","collectionURL":"https://repo.hex.pm","packageName":"ex_aws","cpes":["cpe:2.3:a:ex-aws:ex_aws:*:*:*:*:*:*:*:*"],"modules":["'Elixir.ExAws.InstanceMetaTokenProvider'"],"programFiles":["lib/ex_aws/instance_meta_token_provider.ex"],"programRoutines":[{"name":"'Elixir.ExAws.InstanceMetaTokenProvider':request_token/1"},{"name":"'Elixir.ExAws.InstanceMetaTokenProvider':get/1"}],"repo":"https://github.com/ex-aws/ex_aws","packageURL":"pkg:hex/ex_aws","versions":[{"version":"2.3.0","lessThan":"2.8.0","versionType":"semver","status":"affected"}]},{"vendor":"ex-aws","product":"ex_aws","defaultStatus":"unaffected","collectionURL":"https://github.com","packageName":"ex-aws/ex_aws","cpes":["cpe:2.3:a:ex-aws:ex_aws:*:*:*:*:*:*:*:*"],"modules":["'Elixir.ExAws.InstanceMetaTokenProvider'"],"programFiles":["lib/ex_aws/instance_meta_token_provider.ex"],"programRoutines":[{"name":"'Elixir.ExAws.InstanceMetaTokenProvider':request_token/1"},{"name":"'Elixir.ExAws.InstanceMetaTokenProvider':get/1"}],"repo":"https://github.com/ex-aws/ex_aws","packageURL":"pkg:github/ex-aws/ex_aws","versions":[{"version":"4d7923c16f613cc2bade2ed325d444bba0bc7234","lessThan":"9fcc3605c7a0ecf8e205a72c50de3ced72befed0","versionType":"git","status":"affected"}]}]}],"metrics":{"cvssMetricV40":[{"source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","type":"Secondary","cvssData":{"version":"4.0","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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","baseScore":7.6,"baseSeverity":"HIGH","attackVector":"ADJACENT","attackComplexity":"HIGH","attackRequirements":"PRESENT","privilegesRequired":"NONE","userInteraction":"NONE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH","vulnAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","exploitMaturity":"NOT_DEFINED","confidentialityRequirement":"NOT_DEFINED","integrityRequirement":"NOT_DEFINED","availabilityRequirement":"NOT_DEFINED","modifiedAttackVector":"NOT_DEFINED","modifiedAttackComplexity":"NOT_DEFINED","modifiedAttackRequirements":"NOT_DEFINED","modifiedPrivilegesRequired":"NOT_DEFINED","modifiedUserInteraction":"NOT_DEFINED","modifiedVulnConfidentialityImpact":"NOT_DEFINED","modifiedVulnIntegrityImpact":"NOT_DEFINED","modifiedVulnAvailabilityImpact":"NOT_DEFINED","modifiedSubConfidentialityImpact":"NOT_DEFINED","modifiedSubIntegrityImpact":"NOT_DEFINED","modifiedSubAvailabilityImpact":"NOT_DEFINED","Safety":"NOT_DEFINED","Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","valueDensity":"NOT_DEFINED","vulnerabilityResponseEffort":"NOT_DEFINED","providerUrgency":"NOT_DEFINED"}}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2026-12-01T16:31:24.102551Z","id":"CVE-2026-59697","options":[{"exploitation":"none"},{"automatable":"no"},{"technicalImpact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"weaknesses":[{"source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","type":"Secondary","description":[{"lang":"en","value":"CWE-918"}]}],"references":[{"url":"https://cna.erlef.org/cves/CVE-2026-59697.html","source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db"},{"url":"https://github.com/ex-aws/ex_aws/commit/4d7923c16f613cc2bade2ed325d444bba0bc7234","source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db"},{"url":"https://github.com/ex-aws/ex_aws/commit/9fcc3605c7a0ecf8e205a72c50de3ced72befed0","source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db"},{"url":"https://github.com/ex-aws/ex_aws/security/advisories/GHSA-mww9-g5mj-j664","source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db"},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-59697","source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db"}]}