Potential URI resolution path traversal in the AWS SDK for PHP
aws-sdk-php
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| aws/aws-sdk-php Packagist |
|
|
| github.com/beam-cloud/beta9 Go |
| No fix yet |
aws-sdk-php
| Product | Affected | Fixed in |
|---|---|---|
| aws/aws-sdk-php Packagist |
|
|
| github.com/beam-cloud/beta9 Go |
| No fix yet |
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.
From the CVE record · GitHub_M
The RestSerializer `buildEndpoint` method in AWS SDK for PHP can allow URI path traversal when an S3 object key or prefix contains a Unix double-dot segment. During such requests, path normalization can cause an arbitrary object to be accessed. The input does not specify attacker authentication requirements or user interaction.
Check deployments using Packagist aws/aws-sdk-php before 3.288.1 or the listed Go github.com/beam-cloud/beta9 package, for which no fixed version is listed.