CVE-2026-59698 (GCVE-0-2026-59698)

Vulnerability from cvelistv5 – Published: 2026-11-24 11:45 – Updated: 2026-11-24 11:45
VLAI
Title
ex_aws normalizes .. in S3 object keys client-side, allowing bucket or key-prefix escape
Summary
Relative path traversal in ex_aws allows an attacker who controls an S3 object key to escape the intended bucket or key prefix. When ex_aws builds a path-style S3 request, ExAws.Operation.S3.add_bucket_to_path/2 in lib/ex_aws/operation/s3.ex joins the bucket name and the object key into a single path string and then normalizes it, collapsing . and .. segments the way a filesystem path would. Because the bucket is the first segment of the combined string, a leading ../ in the object key pops the bucket off the path. With bucket mybucket and a key of ../victim/secret.txt, the combined /mybucket/../victim/secret.txt normalizes to /victim/secret.txt, so the request (signed with the application's own credentials) is sent to bucket victim. The same mechanism collapses ../ within a key, defeating any isolation an application enforces by prepending a trusted prefix. Only the default path-style configuration is affected; requests built with virtual_host: true do not run this normalization. Because S3 treats object keys as opaque and does not resolve .. itself, the client-side normalization introduces a traversal that would not otherwise exist. Any application that derives an S3 object key from untrusted input and relies on the bucket, or a key prefix, as a tenant or trust boundary is exposed to cross-bucket or cross-prefix read and write, depending on the operation and the credentials' permissions. This issue affects ex_aws: from 2.1.7 before 2.8.0.
CWE
  • CWE-23 - Relative Path Traversal
Impacted products
Vendor Product Version
ex-aws ex_aws Affected: 2.1.7 , < 2.8.0 (semver)
    cpe:2.3:a:ex-aws:ex_aws:*:*:*:*:*:*:*:*
Create a notification for this product.
ex-aws ex_aws Affected: 557d3438a7e739a25c1ccc1876a5b636793f20ba , < b1116f9f92a8ec1f7f2f3f692bd1c5cacaddf6fd (git)
    cpe:2.3:a:ex-aws:ex_aws:*:*:*:*:*:*:*:*
Create a notification for this product.
Date Public
2026-11-24 11:45
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "collectionURL": "https://repo.hex.pm",
          "cpes": [
            "cpe:2.3:a:ex-aws:ex_aws:*:*:*:*:*:*:*:*"
          ],
          "defaultStatus": "unaffected",
          "modules": [
            "\u0027Elixir.ExAws.Operation.S3\u0027"
          ],
          "packageName": "ex_aws",
          "packageURL": "pkg:hex/ex_aws",
          "product": "ex_aws",
          "programFiles": [
            "lib/ex_aws/operation/s3.ex"
          ],
          "programRoutines": [
            {
              "name": "\u0027Elixir.ExAws.Operation.S3\u0027:add_bucket_to_path/2"
            }
          ],
          "repo": "https://github.com/ex-aws/ex_aws",
          "vendor": "ex-aws",
          "versions": [
            {
              "lessThan": "2.8.0",
              "status": "affected",
              "version": "2.1.7",
              "versionType": "semver"
            }
          ]
        },
        {
          "collectionURL": "https://github.com",
          "cpes": [
            "cpe:2.3:a:ex-aws:ex_aws:*:*:*:*:*:*:*:*"
          ],
          "defaultStatus": "unaffected",
          "modules": [
            "\u0027Elixir.ExAws.Operation.S3\u0027"
          ],
          "packageName": "ex-aws/ex_aws",
          "packageURL": "pkg:github/ex-aws/ex_aws",
          "product": "ex_aws",
          "programFiles": [
            "lib/ex_aws/operation/s3.ex"
          ],
          "programRoutines": [
            {
              "name": "\u0027Elixir.ExAws.Operation.S3\u0027:add_bucket_to_path/2"
            }
          ],
          "repo": "https://github.com/ex-aws/ex_aws",
          "vendor": "ex-aws",
          "versions": [
            {
              "lessThan": "b1116f9f92a8ec1f7f2f3f692bd1c5cacaddf6fd",
              "status": "affected",
              "version": "557d3438a7e739a25c1ccc1876a5b636793f20ba",
              "versionType": "git"
            }
          ]
        }
      ],
      "configurations": [
        {
          "lang": "en",
          "supportingMedia": [
            {
              "base64": false,
              "type": "text/html",
              "value": "\u003cp\u003eThe vulnerability is only exposed in the default path-style S3 configuration, where ex_aws normalizes the combined bucket and key path. Applications that configure the S3 client with \u003ccode\u003evirtual_host: true\u003c/code\u003e build the request without this client-side normalization and are not affected.\u003c/p\u003e"
            },
            {
              "base64": false,
              "type": "text/markdown",
              "value": "The vulnerability is only exposed in the default path-style S3 configuration, where ex_aws normalizes the combined bucket and key path. Applications that configure the S3 client with `virtual_host: true` build the request without this client-side normalization and are not affected."
            }
          ],
          "value": "The vulnerability is only exposed in the default path-style S3 configuration, where ex_aws normalizes the combined bucket and key path. Applications that configure the S3 client with virtual_host: true build the request without this client-side normalization and are not affected."
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:a:ex-aws:ex_aws:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "2.8.0",
                  "versionStartIncluding": "2.1.7",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ],
          "operator": "AND"
        }
      ],
      "credits": [
        {
          "lang": "en",
          "type": "finder",
          "value": "Peter Ullrich"
        },
        {
          "lang": "en",
          "type": "reporter",
          "value": "Peter Ullrich"
        },
        {
          "lang": "en",
          "type": "analyst",
          "value": "Jonatan M\u00e4nnchen / EEF"
        },
        {
          "lang": "en",
          "type": "coordinator",
          "value": "Peter Ullrich"
        },
        {
          "lang": "en",
          "type": "remediation developer",
          "value": "Bernard Duggan"
        }
      ],
      "datePublic": "2026-11-24T11:45:29.000Z",
      "descriptions": [
        {
          "lang": "en",
          "supportingMedia": [
            {
              "base64": false,
              "type": "text/html",
              "value": "\u003cp\u003eRelative path traversal in ex_aws allows an attacker who controls an S3 object key to escape the intended bucket or key prefix.\u003c/p\u003e\n\u003cp\u003eWhen ex_aws builds a path-style S3 request, \u003ccode\u003eExAws.Operation.S3.add_bucket_to_path/2\u003c/code\u003e in \u003ccode\u003elib/ex_aws/operation/s3.ex\u003c/code\u003e joins the bucket name and the object key into a single path string and then normalizes it, collapsing \u003ccode\u003e.\u003c/code\u003e and \u003ccode\u003e..\u003c/code\u003e segments the way a filesystem path would. Because the bucket is the first segment of the combined string, a leading \u003ccode\u003e../\u003c/code\u003e in the object key pops the bucket off the path. With bucket \u003ccode\u003emybucket\u003c/code\u003e and a key of \u003ccode\u003e../victim/secret.txt\u003c/code\u003e, the combined \u003ccode\u003e/mybucket/../victim/secret.txt\u003c/code\u003e normalizes to \u003ccode\u003e/victim/secret.txt\u003c/code\u003e, so the request (signed with the application\u0027s own credentials) is sent to bucket \u003ccode\u003evictim\u003c/code\u003e. The same mechanism collapses \u003ccode\u003e../\u003c/code\u003e within a key, defeating any isolation an application enforces by prepending a trusted prefix.\u003c/p\u003e\n\u003cp\u003eOnly the default path-style configuration is affected; requests built with \u003ccode\u003evirtual_host: true\u003c/code\u003e do not run this normalization. Because S3 treats object keys as opaque and does not resolve \u003ccode\u003e..\u003c/code\u003e itself, the client-side normalization introduces a traversal that would not otherwise exist. Any application that derives an S3 object key from untrusted input and relies on the bucket, or a key prefix, as a tenant or trust boundary is exposed to cross-bucket or cross-prefix read and write, depending on the operation and the credentials\u0027 permissions.\u003c/p\u003e\n\u003cp\u003eThis issue affects ex_aws: from 2.1.7 before 2.8.0.\u003c/p\u003e"
            },
            {
              "base64": false,
              "type": "text/markdown",
              "value": "Relative path traversal in ex_aws allows an attacker who controls an S3 object key to escape the intended bucket or key prefix.\n\nWhen ex_aws builds a path-style S3 request, `ExAws.Operation.S3.add_bucket_to_path/2` in `lib/ex_aws/operation/s3.ex` joins the bucket name and the object key into a single path string and then normalizes it, collapsing `.` and `..` segments the way a filesystem path would. Because the bucket is the first segment of the combined string, a leading `../` in the object key pops the bucket off the path. With bucket `mybucket` and a key of `../victim/secret.txt`, the combined `/mybucket/../victim/secret.txt` normalizes to `/victim/secret.txt`, so the request (signed with the application\u0027s own credentials) is sent to bucket `victim`. The same mechanism collapses `../` within a key, defeating any isolation an application enforces by prepending a trusted prefix.\n\nOnly the default path-style configuration is affected; requests built with `virtual_host: true` do not run this normalization. Because S3 treats object keys as opaque and does not resolve `..` itself, the client-side normalization introduces a traversal that would not otherwise exist. Any application that derives an S3 object key from untrusted input and relies on the bucket, or a key prefix, as a tenant or trust boundary is exposed to cross-bucket or cross-prefix read and write, depending on the operation and the credentials\u0027 permissions.\n\nThis issue affects ex_aws: from 2.1.7 before 2.8.0."
            }
          ],
          "value": "Relative path traversal in ex_aws allows an attacker who controls an S3 object key to escape the intended bucket or key prefix.\n\nWhen ex_aws builds a path-style S3 request, ExAws.Operation.S3.add_bucket_to_path/2 in lib/ex_aws/operation/s3.ex joins the bucket name and the object key into a single path string and then normalizes it, collapsing . and .. segments the way a filesystem path would. Because the bucket is the first segment of the combined string, a leading ../ in the object key pops the bucket off the path. With bucket mybucket and a key of ../victim/secret.txt, the combined /mybucket/../victim/secret.txt normalizes to /victim/secret.txt, so the request (signed with the application\u0027s own credentials) is sent to bucket victim. The same mechanism collapses ../ within a key, defeating any isolation an application enforces by prepending a trusted prefix.\n\nOnly the default path-style configuration is affected; requests built with virtual_host: true do not run this normalization. Because S3 treats object keys as opaque and does not resolve .. itself, the client-side normalization introduces a traversal that would not otherwise exist. Any application that derives an S3 object key from untrusted input and relies on the bucket, or a key prefix, as a tenant or trust boundary is exposed to cross-bucket or cross-prefix read and write, depending on the operation and the credentials\u0027 permissions.\n\nThis issue affects ex_aws: from 2.1.7 before 2.8.0."
        }
      ],
      "impacts": [
        {
          "capecId": "CAPEC-139",
          "descriptions": [
            {
              "lang": "en",
              "value": "CAPEC-139 Relative Path Traversal"
            }
          ]
        }
      ],
      "metrics": [
        {
          "cvssV4_0": {
            "Automatable": "NOT_DEFINED",
            "Recovery": "NOT_DEFINED",
            "Safety": "NOT_DEFINED",
            "attackComplexity": "LOW",
            "attackRequirements": "PRESENT",
            "attackVector": "LOCAL",
            "baseScore": 7.4,
            "baseSeverity": "HIGH",
            "privilegesRequired": "NONE",
            "providerUrgency": "NOT_DEFINED",
            "subAvailabilityImpact": "NONE",
            "subConfidentialityImpact": "NONE",
            "subIntegrityImpact": "NONE",
            "userInteraction": "NONE",
            "valueDensity": "NOT_DEFINED",
            "vectorString": "CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N",
            "version": "4.0",
            "vulnAvailabilityImpact": "NONE",
            "vulnConfidentialityImpact": "HIGH",
            "vulnIntegrityImpact": "HIGH",
            "vulnerabilityResponseEffort": "NOT_DEFINED"
          },
          "format": "CVSS",
          "scenarios": [
            {
              "lang": "en",
              "value": "GENERAL"
            }
          ]
        }
      ],
      "problemTypes": [
        {
          "descriptions": [
            {
              "cweId": "CWE-23",
              "description": "CWE-23 Relative Path Traversal",
              "lang": "en",
              "type": "CWE"
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-11-24T11:45:30.199Z",
        "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "shortName": "EEF"
      },
      "references": [
        {
          "tags": [
            "vendor-advisory",
            "related"
          ],
          "url": "https://github.com/ex-aws/ex_aws/security/advisories/GHSA-hrw3-2h5r-fhxx"
        },
        {
          "name": "EEF CNA record for CVE-2026-59698",
          "tags": [
            "related"
          ],
          "url": "https://cna.erlef.org/cves/CVE-2026-59698.html"
        },
        {
          "name": "OSV record EEF-CVE-2026-59698",
          "tags": [
            "related"
          ],
          "url": "https://osv.dev/vulnerability/EEF-CVE-2026-59698"
        },
        {
          "name": "Introducing commit 557d343 in ex-aws/ex_aws",
          "tags": [
            "related"
          ],
          "url": "https://github.com/ex-aws/ex_aws/commit/557d3438a7e739a25c1ccc1876a5b636793f20ba"
        },
        {
          "name": "Fix commit b1116f9 in ex-aws/ex_aws",
          "tags": [
            "patch"
          ],
          "url": "https://github.com/ex-aws/ex_aws/commit/b1116f9f92a8ec1f7f2f3f692bd1c5cacaddf6fd"
        }
      ],
      "source": {
        "discovery": "EXTERNAL"
      },
      "title": "ex_aws normalizes .. in S3 object keys client-side, allowing bucket or key-prefix escape",
      "workarounds": [
        {
          "lang": "en",
          "supportingMedia": [
            {
              "base64": false,
              "type": "text/html",
              "value": "\u003cp\u003eConfigure the ex_aws S3 client with \u003ccode\u003evirtual_host: true\u003c/code\u003e, which builds the request without the client-side path normalization. Alternatively, reject or sanitize object keys that contain \u003ccode\u003e..\u003c/code\u003e segments before passing them to ex_aws.\u003c/p\u003e"
            },
            {
              "base64": false,
              "type": "text/markdown",
              "value": "Configure the ex_aws S3 client with `virtual_host: true`, which builds the request without the client-side path normalization. Alternatively, reject or sanitize object keys that contain `..` segments before passing them to ex_aws."
            }
          ],
          "value": "Configure the ex_aws S3 client with virtual_host: true, which builds the request without the client-side path normalization. Alternatively, reject or sanitize object keys that contain .. segments before passing them to ex_aws."
        }
      ],
      "x_proofOfConcept": [
        {
          "lang": "en",
          "supportingMedia": [
            {
              "base64": false,
              "type": "text/html",
              "value": "\u003col\u003e\n\u003cli\u003eAn application isolates data in its own bucket \u003ccode\u003emybucket\u003c/code\u003e and builds the object key from user input, using the default path-style S3 configuration.\u003c/li\u003e\n\u003cli\u003eIt issues the request through the public API: \u003ccode\u003eExAws.S3.get_object(\"mybucket\", key) |\u0026gt; ExAws.request(config)\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eThe attacker supplies the key \u003ccode\u003e../victim/secret.txt\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eex_aws joins and normalizes the path, so \u003ccode\u003e/mybucket/../victim/secret.txt\u003c/code\u003e becomes \u003ccode\u003e/victim/secret.txt\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eThe request is signed with the application\u0027s credentials and sent to \u003ccode\u003e/victim/secret.txt\u003c/code\u003e, addressing bucket \u003ccode\u003evictim\u003c/code\u003e instead of \u003ccode\u003emybucket\u003c/code\u003e.\u003c/li\u003e\n\u003c/ol\u003e"
            },
            {
              "base64": false,
              "type": "text/markdown",
              "value": "1. An application isolates data in its own bucket `mybucket` and builds the object key from user input, using the default path-style S3 configuration.\n2. It issues the request through the public API: `ExAws.S3.get_object(\"mybucket\", key) |\u003e ExAws.request(config)`.\n3. The attacker supplies the key `../victim/secret.txt`.\n4. ex_aws joins and normalizes the path, so `/mybucket/../victim/secret.txt` becomes `/victim/secret.txt`.\n5. The request is signed with the application\u0027s credentials and sent to `/victim/secret.txt`, addressing bucket `victim` instead of `mybucket`."
            }
          ],
          "value": "* An application isolates data in its own bucket mybucket and builds the object key from user input, using the default path-style S3 configuration.\n* It issues the request through the public API: ExAws.S3.get_object(\"mybucket\", key) |\u003e ExAws.request(config).\n* The attacker supplies the key ../victim/secret.txt.\n* ex_aws joins and normalizes the path, so /mybucket/../victim/secret.txt becomes /victim/secret.txt.\n* The request is signed with the application\u0027s credentials and sent to /victim/secret.txt, addressing bucket victim instead of mybucket."
        }
      ],
      "x_technicalAnalysis": [
        {
          "lang": "en",
          "supportingMedia": [
            {
              "base64": false,
              "type": "text/html",
              "value": "\u003cp\u003e\u003cstrong\u003e1. Path assembly.\u003c/strong\u003e In the default path-style clause of \u003ccode\u003eExAws.Operation.S3.add_bucket_to_path/2\u003c/code\u003e (taken whenever \u003ccode\u003evirtual_host: true\u003c/code\u003e is not set), the bucket and the operation path are concatenated and then normalized: \u003ccode\u003e\"/#{operation.bucket}#{ensure_absolute(operation.path)}\" |\u0026gt; expand_dot()\u003c/code\u003e.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Normalization across the bucket boundary.\u003c/strong\u003e \u003ccode\u003eexpand_dot/1\u003c/code\u003e and \u003ccode\u003edo_expand_dot/2\u003c/code\u003e resolve \u003ccode\u003e.\u003c/code\u003e and \u003ccode\u003e..\u003c/code\u003e segments the way a filesystem path would. The bucket is just the first segment of the combined string, so a \u003ccode\u003e..\u003c/code\u003e in the object key pops it: \u003ccode\u003e/mybucket/../victim/secret.txt\u003c/code\u003e becomes \u003ccode\u003e/victim/secret.txt\u003c/code\u003e. The only guard, the root clamp \u003ccode\u003edo_expand_dot([\"..\" | t], [])\u003c/code\u003e, stops \u003ccode\u003e..\u003c/code\u003e from climbing above \u003ccode\u003e/\u003c/code\u003e but does not protect the bucket segment. The same collapse lets \u003ccode\u003e../\u003c/code\u003e escape a trusted key prefix within a bucket.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Signed request.\u003c/strong\u003e The normalized path is signed with the application\u0027s credentials and sent, so the request is authorized against the bucket or prefix the attacker chose. S3 treats object keys as opaque and does not resolve \u003ccode\u003e..\u003c/code\u003e itself; the traversal exists only because the client normalizes the path. The \u003ccode\u003evirtual_host\u003c/code\u003e clauses do not normalize, so behavior differs between configurations.\u003c/p\u003e"
            },
            {
              "base64": false,
              "type": "text/markdown",
              "value": "**1. Path assembly.** In the default path-style clause of `ExAws.Operation.S3.add_bucket_to_path/2` (taken whenever `virtual_host: true` is not set), the bucket and the operation path are concatenated and then normalized: `\"/#{operation.bucket}#{ensure_absolute(operation.path)}\" |\u003e expand_dot()`.\n\n**2. Normalization across the bucket boundary.** `expand_dot/1` and `do_expand_dot/2` resolve `.` and `..` segments the way a filesystem path would. The bucket is just the first segment of the combined string, so a `..` in the object key pops it: `/mybucket/../victim/secret.txt` becomes `/victim/secret.txt`. The only guard, the root clamp `do_expand_dot([\"..\" | t], [])`, stops `..` from climbing above `/` but does not protect the bucket segment. The same collapse lets `../` escape a trusted key prefix within a bucket.\n\n**3. Signed request.** The normalized path is signed with the application\u0027s credentials and sent, so the request is authorized against the bucket or prefix the attacker chose. S3 treats object keys as opaque and does not resolve `..` itself; the traversal exists only because the client normalizes the path. The `virtual_host` clauses do not normalize, so behavior differs between configurations."
            }
          ],
          "value": "1. Path assembly. In the default path-style clause of ExAws.Operation.S3.add_bucket_to_path/2 (taken whenever virtual_host: true is not set), the bucket and the operation path are concatenated and then normalized: \"/#{operation.bucket}#{ensure_absolute(operation.path)}\" |\u003e expand_dot().\n\n2. Normalization across the bucket boundary. expand_dot/1 and do_expand_dot/2 resolve . and .. segments the way a filesystem path would. The bucket is just the first segment of the combined string, so a .. in the object key pops it: /mybucket/../victim/secret.txt becomes /victim/secret.txt. The only guard, the root clamp do_expand_dot([\"..\" | t], []), stops .. from climbing above / but does not protect the bucket segment. The same collapse lets ../ escape a trusted key prefix within a bucket.\n\n3. Signed request. The normalized path is signed with the application\u0027s credentials and sent, so the request is authorized against the bucket or prefix the attacker chose. S3 treats object keys as opaque and does not resolve .. itself; the traversal exists only because the client normalizes the path. The virtual_host clauses do not normalize, so behavior differs between configurations."
        }
      ]
    }
  },
  "cveMetadata": {
    "assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
    "assignerShortName": "EEF",
    "cveId": "CVE-2026-59698",
    "datePublished": "2026-11-24T11:45:30.199Z",
    "dateReserved": "2026-07-06T14:05:47.003Z",
    "dateUpdated": "2026-11-24T11:45:30.199Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "collectionURL": "https://repo.hex.pm",
                "cpes": [
                  "cpe:2.3:a:ex-aws:ex_aws:*:*:*:*:*:*:*:*"
                ],
                "defaultStatus": "unaffected",
                "modules": [
                  "\u0027Elixir.ExAws.Operation.S3\u0027"
                ],
                "packageName": "ex_aws",
                "packageURL": "pkg:hex/ex_aws",
                "product": "ex_aws",
                "programFiles": [
                  "lib/ex_aws/operation/s3.ex"
                ],
                "programRoutines": [
                  {
                    "name": "\u0027Elixir.ExAws.Operation.S3\u0027:add_bucket_to_path/2"
                  }
                ],
                "repo": "https://github.com/ex-aws/ex_aws",
                "vendor": "ex-aws",
                "versions": [
                  {
                    "lessThan": "2.8.0",
                    "status": "affected",
                    "version": "2.1.7",
                    "versionType": "semver"
                  }
                ]
              },
              {
                "collectionURL": "https://github.com",
                "cpes": [
                  "cpe:2.3:a:ex-aws:ex_aws:*:*:*:*:*:*:*:*"
                ],
                "defaultStatus": "unaffected",
                "modules": [
                  "\u0027Elixir.ExAws.Operation.S3\u0027"
                ],
                "packageName": "ex-aws/ex_aws",
                "packageURL": "pkg:github/ex-aws/ex_aws",
                "product": "ex_aws",
                "programFiles": [
                  "lib/ex_aws/operation/s3.ex"
                ],
                "programRoutines": [
                  {
                    "name": "\u0027Elixir.ExAws.Operation.S3\u0027:add_bucket_to_path/2"
                  }
                ],
                "repo": "https://github.com/ex-aws/ex_aws",
                "vendor": "ex-aws",
                "versions": [
                  {
                    "lessThan": "b1116f9f92a8ec1f7f2f3f692bd1c5cacaddf6fd",
                    "status": "affected",
                    "version": "557d3438a7e739a25c1ccc1876a5b636793f20ba",
                    "versionType": "git"
                  }
                ]
              }
            ],
            "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db"
          }
        ],
        "cveTags": [],
        "descriptions": [
          {
            "lang": "en",
            "value": "Relative path traversal in ex_aws allows an attacker who controls an S3 object key to escape the intended bucket or key prefix.\n\nWhen ex_aws builds a path-style S3 request, ExAws.Operation.S3.add_bucket_to_path/2 in lib/ex_aws/operation/s3.ex joins the bucket name and the object key into a single path string and then normalizes it, collapsing . and .. segments the way a filesystem path would. Because the bucket is the first segment of the combined string, a leading ../ in the object key pops the bucket off the path. With bucket mybucket and a key of ../victim/secret.txt, the combined /mybucket/../victim/secret.txt normalizes to /victim/secret.txt, so the request (signed with the application\u0027s own credentials) is sent to bucket victim. The same mechanism collapses ../ within a key, defeating any isolation an application enforces by prepending a trusted prefix.\n\nOnly the default path-style configuration is affected; requests built with virtual_host: true do not run this normalization. Because S3 treats object keys as opaque and does not resolve .. itself, the client-side normalization introduces a traversal that would not otherwise exist. Any application that derives an S3 object key from untrusted input and relies on the bucket, or a key prefix, as a tenant or trust boundary is exposed to cross-bucket or cross-prefix read and write, depending on the operation and the credentials\u0027 permissions.\n\nThis issue affects ex_aws: from 2.1.7 before 2.8.0."
          }
        ],
        "id": "CVE-2026-59698",
        "lastModified": "2026-11-24T19:12:16.707",
        "metrics": {
          "cvssMetricV40": [
            {
              "cvssData": {
                "Automatable": "NOT_DEFINED",
                "Recovery": "NOT_DEFINED",
                "Safety": "NOT_DEFINED",
                "attackComplexity": "LOW",
                "attackRequirements": "PRESENT",
                "attackVector": "LOCAL",
                "availabilityRequirement": "NOT_DEFINED",
                "baseScore": 7.4,
                "baseSeverity": "HIGH",
                "confidentialityRequirement": "NOT_DEFINED",
                "exploitMaturity": "NOT_DEFINED",
                "integrityRequirement": "NOT_DEFINED",
                "modifiedAttackComplexity": "NOT_DEFINED",
                "modifiedAttackRequirements": "NOT_DEFINED",
                "modifiedAttackVector": "NOT_DEFINED",
                "modifiedPrivilegesRequired": "NOT_DEFINED",
                "modifiedSubAvailabilityImpact": "NOT_DEFINED",
                "modifiedSubConfidentialityImpact": "NOT_DEFINED",
                "modifiedSubIntegrityImpact": "NOT_DEFINED",
                "modifiedUserInteraction": "NOT_DEFINED",
                "modifiedVulnAvailabilityImpact": "NOT_DEFINED",
                "modifiedVulnConfidentialityImpact": "NOT_DEFINED",
                "modifiedVulnIntegrityImpact": "NOT_DEFINED",
                "privilegesRequired": "NONE",
                "providerUrgency": "NOT_DEFINED",
                "subAvailabilityImpact": "NONE",
                "subConfidentialityImpact": "NONE",
                "subIntegrityImpact": "NONE",
                "userInteraction": "NONE",
                "valueDensity": "NOT_DEFINED",
                "vectorString": "CVSS:4.0/AV:L/AC:L/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",
                "version": "4.0",
                "vulnAvailabilityImpact": "NONE",
                "vulnConfidentialityImpact": "HIGH",
                "vulnIntegrityImpact": "HIGH",
                "vulnerabilityResponseEffort": "NOT_DEFINED"
              },
              "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
              "type": "Secondary"
            }
          ]
        },
        "published": "2026-11-24T12:17:24.607",
        "references": [
          {
            "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
            "url": "https://cna.erlef.org/cves/CVE-2026-59698.html"
          },
          {
            "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
            "url": "https://github.com/ex-aws/ex_aws/commit/557d3438a7e739a25c1ccc1876a5b636793f20ba"
          },
          {
            "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
            "url": "https://github.com/ex-aws/ex_aws/commit/b1116f9f92a8ec1f7f2f3f692bd1c5cacaddf6fd"
          },
          {
            "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
            "url": "https://github.com/ex-aws/ex_aws/security/advisories/GHSA-hrw3-2h5r-fhxx"
          },
          {
            "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
            "url": "https://osv.dev/vulnerability/EEF-CVE-2026-59698"
          }
        ],
        "sourceIdentifier": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "vulnStatus": "Awaiting Analysis",
        "weaknesses": [
          {
            "description": [
              {
                "lang": "en",
                "value": "CWE-23"
              }
            ],
            "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
            "type": "Secondary"
          }
        ]
      }
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…