{"id":"CVE-2023-51651","published":"2023-12-22T21:03:00Z","modified":"2024-08-02T22:40:34Z","title":"Potential URI resolution path traversal in the AWS SDK for PHP","vendor":"aws","product":"aws-sdk-php","tier":"tail","description":{"text":"AWS SDK for PHP is the Amazon Web Services software development kit for PHP. Within the scope of requests to S3 object keys and/or prefixes containing a Unix double-dot, a URI path traversal is possible. The issue exists in the `buildEndpoint` method in the RestSerializer component of the AWS SDK for PHP v3 prior to 3.288.1. The `buildEndpoint` method relies on the Guzzle Psr7 UriResolver utility, which strips dot segments from the request path in accordance with RFC 3986. Under certain conditions, this could lead to an arbitrary object being accessed. This issue has been patched in version 3.288.1.","provenance":"source","from":"CVE.org"},"cvss":{"score":6,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00423,"percentile":0.28281,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/aws/aws-sdk-php/security/advisories/GHSA-557v-xcg6-rm5m","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/aws/aws-sdk-php/commit/aebc9f801438746ac4ade327551576cb75f635f2","tags":["x_refsource_MISC"]},{"url":"https://github.com/aws/aws-sdk-php/releases/tag/3.288.1","tags":["x_refsource_MISC"]}],"priority":{"score":9.9,"factors":[{"name":"EPSS percentile","points":5.66},{"name":"CVSS severity","points":4.2}]},"vendorSlug":"aws","affectedVersions":[{"vendor":"aws","product":"aws-sdk-php","versions":[">= 3.0.0, < 3.288.1"]}],"affected":[{"ecosystem":"Packagist","package":"aws/aws-sdk-php","vulnerableRanges":["<3.288.1"],"patched":["3.288.1"],"from":["GHSA-557v-xcg6-rm5m"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/beam-cloud/beta9","vulnerableRanges":["all versions"],"patched":[],"from":["GO-2026-4390"],"provenance":"source"}],"summary":{"text":"The aws-sdk-php library's RestSerializer component, specifically its buildEndpoint method in v3 releases prior to 3.288.1, mishandles S3 object keys and prefixes containing Unix double-dot sequences because it relies on Guzzle's Psr7 UriResolver, which strips dot segments per RFC 3986, enabling path traversal. An attacker who can supply such keys or prefixes to requests may, under certain conditions and with local access and high privileges, cause an arbitrary object to be accessed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:00:50Z"},"euvd":{"id":"EUVD-2023-3109","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-aws-sdk-php-cve-2023-51651","children":[{"from":"CVE-2023-51651","to":"CVE-2025-69820","relation":"related","confidence":"high","kind":"lineage","evidence":[{"kind":"osv-related","provenance":"source","id":"GHSA-557v-xcg6-rm5m","via":"reference","url":"https://github.com/aws/aws-sdk-php/security/advisories/GHSA-557v-xcg6-rm5m"}]}],"packageHistory":[{"cve":"CVE-2015-5723","published":"2016-06-07","fixed":"3.2.1","kev":false},{"cve":"CVE-2023-51651","published":"2023-12-22","fixed":"3.288.1","kev":false},{"cve":"CVE-2025-14761","published":"2025-12-17","fixed":"3.368.0","kev":false,"link":{"from":"CVE-2023-51651","to":"CVE-2025-14761","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:aws/aws-sdk-php","fromFixed":"3.288.1","toFixed":"3.368.0","daysApart":726}]}}],"package":"Packagist:aws/aws-sdk-php"}}