Vulnerability · Published Dec 22, 2023 · Assigned by GitHub_M

CVE-2023-51651Potential URI resolution path traversal in the AWS SDK for PHP

Medium 6.0

In plain English

A medium-severity path traversal in aws-sdk-php from aws. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 32% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.0Medium
Exploit odds (30 days)0.4%top 68.2% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Gogithub.com/beam-cloud/beta9no fix listedGHSA-73jg-4qh6-3f4g
Gogithub.com/beam-cloud/beta9no fix listedGO-2026-4390
Packagistaws/aws-sdk-php3.288.1GHSA-557v-xcg6-rm5m

Affected products (as reported)

VendorProductVersions
aws aws-sdk-php >= 3.0.0, < 3.288.1

Weakness: CWE-22 · Vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N

References