CVE-2026-120720

Source
https://cve.org/CVERecord?id=CVE-2026-120720
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-120720.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-120720
Aliases
Published
2026-11-24T12:17:35Z
Modified
2026-11-24T14:00:08Z
Severity
  • 5.9 (Medium) CVSS_V4 - CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N CVSS Calculator
Summary
S3 bucket name controls the request host in ex_aws virtual-host requests
Details

Server-Side Request Forgery (SSRF) vulnerability in ex-aws ex_aws allows an attacker who controls an S3 bucket name to send the application's signed S3 requests to a host of their choice.

With virtual_host: true, ExAws.Operation.S3.add_bucket_to_path/2 in lib/ex_aws/operation/s3.ex builds the request hostname from the bucket name and the configured host without checking the bucket name. A bucket such as attacker.example/x? turns the request URL into https://attacker.example/x?.s3.amazonaws.com/key, so the request is signed for and sent to attacker.example. The attacker receives upload bodies, the access key id and request signature, and any STS session token, and controls the response the application parses. With bucket_as_host: true the bucket is the whole hostname, so any valid hostname redirects the request.

This issue affects ex_aws: from 2.1.7 before 2.8.0.

Database specific
{
    "cna_assigner":  "EEF",
    "cwe_ids":  [
        "CWE-918"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/120xxx/CVE-2026-120720.json"
}
References

Affected packages

Git / github.com/ex-aws/ex_aws

Affected ranges

Type
GIT
Repo
https://github.com/ex-aws/ex_aws
Events
Database specific
Show details
{
    "extracted_events":  [
        {
            "range":  [
                {
                    "introduced":  "557d3438a7e739a25c1ccc1876a5b636793f20ba"
                },
                {
                    "fixed":  "a878943be6def16ffbee6bb9e11d90db1dc904f8"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StandardRange"
        },
        {
            "range":  [
                {
                    "introduced":  "2.1.7"
                },
                {
                    "fixed":  "2.8.0"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StandardRange"
        },
        {
            "range":  [
                {
                    "fixed":  "557d3438a7e739a25c1ccc1876a5b636793f20ba"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        },
        {
            "range":  [
                {
                    "fixed":  "a878943be6def16ffbee6bb9e11d90db1dc904f8"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        }
    ]
}

Affected versions

v2.*
v2.1.7
v2.2.0
v2.2.1
v2.2.10
v2.2.2
v2.2.3
v2.2.4
v2.2.5
v2.2.6
v2.2.7
v2.2.8
v2.2.9
v2.3.0
v2.3.1
v2.3.2
v2.3.3
v2.3.4
v2.4.0
v2.4.1
v2.4.2
v2.4.3
v2.4.4
v2.5.0
v2.5.1
v2.5.10
v2.5.2
v2.5.3
v2.5.4
v2.5.5
v2.5.6
v2.5.7
v2.5.8
v2.5.9
v2.6.0
v2.6.1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-120720.json"