6.0medium
Potential URI resolution path traversal in the AWS SDK for PHP
- Severity
- 6.0medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.38% (higher than 33% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-557v-xcg6-rm5mGHSA-73jg-4qh6-3f4gGO-2026-4390
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
| Product or package | Versions | Reported by |
|---|---|---|
| aws aws-sdk-php | >= 3.0.0, < 3.288.1 | CVE List |
| aws/aws-sdk-php (Packagist) | before 3.288.1 | GitHub Advisory Database |
| github.com/beam-cloud/beta9 (Go) | up to 0.0.0-20260116162221-c1cd75e813cf, all versions | GitHub Advisory Database, Go Vulnerability Database |
| amazon aws_software_development_kit | before 3.288.1 | NVD |
All scores
| GitHub_M | 6.0medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N |
| GitHub | 6.0medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N |
| NVD | 3.3low CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
Impact
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 thebuildEndpoint 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.
Versions of the AWS SDK for PHP v3 before 3.288.1 are affected by this issue.
Patches
Upgrade to the AWS SDK for PHP >= 3.288.1, if you are on version < 3.288.1.
References
RFC 3986 - https://datatracker.ietf.org/doc/html/rfc3986
For more information
If you have any questions or comments about this advisory, please contact AWS's Security team.
GitHub Advisory Database
Directory Traversal vulnerability in Beam beta9 v.0.1.552 allows a remote attacker to obtain sensitive information via the joinCleanPath function
Go Vulnerability Database
Beam Exposes sensitive information via joinCleanPath function in github.com/beam-cloud/beta9
NVD (es)
AWS SDK para PHP es el kit de desarrollo de software de Amazon Web Services para PHP. Dentro del alcance de las solicitudes a claves de objeto S3 y/o prefijos que contienen un doble punto Unix, es posible un path traversal URI. El problema existe en el método `buildEndpoint` en el componente RestSerializer del AWS SDK para PHP v3 anterior a 3.288.1. El método `buildEndpoint` se basa en la utilidad Guzzle Psr7 UriResolver, que elimina segmentos de puntos de la ruta de solicitud de acuerdo con RFC 3986. Bajo ciertas condiciones, esto podría conducir a que se acceda a un objeto arbitrario. Este problema se solucionó en la versión 3.288.1.
References
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-51651 changed 2024-08-02 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-557v-xcg6-rm5m changed 2026-02-04 | CC-BY-4.0 |
| GitHub Advisory Database | GHSA-73jg-4qh6-3f4g changed 2026-02-04 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2026-4390 changed 2026-02-04 | CC-BY-4.0 |
| NVD | CVE-2023-51651 changed 2026-06-17 | Public domain |