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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/beam-cloud/beta9 | no fix listed | GHSA-73jg-4qh6-3f4g |
| Go | github.com/beam-cloud/beta9 | no fix listed | GO-2026-4390 |
| Packagist | aws/aws-sdk-php | 3.288.1 | GHSA-557v-xcg6-rm5m |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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
- https://github.com/aws/aws-sdk-php/security/advisories/GHSA-557v-xcg6-rm5m x_refsource_CONFIRM
- https://github.com/aws/aws-sdk-php/commit/aebc9f801438746ac4ade327551576cb75f635f2 x_refsource_MISC
- https://github.com/aws/aws-sdk-php/releases/tag/3.288.1 x_refsource_MISC