Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-59697— IMDSv2 metadata token request follows HTTP redirects in ex_aws

Quick assessment

Affected
ex-aws ex_aws
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

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 a

CVSS 7.6 · High
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-59697

Vulnerability Information

Shenlong is analyzing...


Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
IMDSv2 metadata token request follows HTTP redirects in ex_aws
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
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
Source: CVE Program / CVE List V5
Vulnerability Type
服务端请求伪造(SSRF)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
ex-aws ex_aws 2.3.0 ~ 2.8.0 cpe:2.3:a:ex-aws:ex_aws:*:*:*:*:*:*:*:*
ex-aws ex_aws 4d7923c16f613cc2bade2ed325d444bba0bc7234 ~ 9fcc3605c7a0ecf8e205a72c50de3ced72befed0 cpe:2.3:a:ex-aws:ex_aws:*:*:*:*:*:*:*:*

II. Public POCs for CVE-2026-59697

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-59697

请登录查看更多情报信息。

Other References for CVE-2026-59697 (5)

Same Patch Batch · ex-aws · 2026-11-24 · 15 CVEs total

CVE-2026-59698 7.4 HIGH ex_aws normalizes .. in S3 object keys client-side, allowing bucket or key-prefix escape
CVE-2026-63583 7.0 HIGH XML injection in ExAws.S3.Utils.build_lifecycle_rule/1 in ex_aws_s3
CVE-2026-63581 6.9 MEDIUM ex_aws_s3 XML injection in bucket-configuration builders
CVE-2026-65622 5.9 MEDIUM ex_aws_ses missing URI-encoding of list_name allows path injection into SES V2 request URL
CVE-2026-120720 5.9 MEDIUM S3 bucket name controls the request host in ex_aws virtual-host requests
CVE-2026-62270 5.9 MEDIUM Type confusion via structural idempotency guard in ExAws.Dynamo.Encoder.encode/2
CVE-2026-131902 5.9 MEDIUM XML injection via unescaped VersionId in ExAws.S3.delete_multiple_objects/3
CVE-2026-63582 5.8 MEDIUM S3 bucket name controls the host of presigned URLs in ex_aws_s3
CVE-2026-62269 5.1 MEDIUM S3 object key query-string injection and truncation via unencoded reserved characters in e
CVE-2026-63585 4.8 MEDIUM ExAws.S3 ACL grantee injection via unescaped grant headers in format_grant_header/1
CVE-2026-65621 2.1 LOW Unvalidated object metadata in ex_aws_s3 enables HTTP header (CRLF) injection into S3 requ
CVE-2026-63584 2.1 LOW Copy-source header injection in ExAws.S3.upload_part_copy/8 via unencoded source key
CVE-2026-62271 2.1 LOW ex_aws_kms defaults RSA key-material wrapping to PKCS#1 v1.5 in get_parameters_for_import/
CVE-2026-62273 2.1 LOW XML injection via unescaped tag keys and values in ex_aws_s3 object and bucket tagging

IV. Related Vulnerabilities