CVE-2023-51651
JSON

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 packageVersionsReported by
aws aws-sdk-php>= 3.0.0, < 3.288.1CVE List
aws/aws-sdk-php (Packagist)before 3.288.1GitHub Advisory Database
github.com/beam-cloud/beta9 (Go)up to 0.0.0-20260116162221-c1cd75e813cf, all versionsGitHub Advisory Database, Go Vulnerability Database
amazon aws_software_development_kitbefore 3.288.1NVD

All scores

GitHub_M6.0medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N
GitHub6.0medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N
NVD3.3low CVSS:3.1CVSS: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

https://github.com/aws/aws-sdk-php/security/advisories/GHSA-557v-xcg6-rm5mthird-party-advisory, web
https://github.com/aws/aws-sdk-php/commit/aebc9f801438746ac4ade327551576cb75f635f2patch, web
https://github.com/aws/aws-sdk-php/releases/tag/3.288.1release-notes, web
https://nvd.nist.gov/vuln/detail/CVE-2023-51651advisory
https://github.com/FriendsOfPHP/security-advisories/blob/master/aws/aws-sdk-php/CVE-2023-51651.yamlweb
https://github.com/aws/aws-sdk-phppackage
https://nvd.nist.gov/vuln/detail/CVE-2025-69820advisory
https://github.com/beam-cloud/beta9package
https://github.com/beam-cloud/beta9/blob/c1cd75e813cf7d53e916157d920099e89ef45caa/pkg/abstractions/volume/multipart.go#L45web
https://github.com/ryotaromatsui/CVEs/tree/main/CVE-2025-69820web
https://github.com/advisories/GHSA-73jg-4qh6-3f4gadvisory

Related

Sources

SourceRecordLicence
CVE ListCVE-2023-51651 changed 2024-08-02CVE Terms of Use
GitHub Advisory DatabaseGHSA-557v-xcg6-rm5m changed 2026-02-04CC-BY-4.0
GitHub Advisory DatabaseGHSA-73jg-4qh6-3f4g changed 2026-02-04CC-BY-4.0
Go Vulnerability DatabaseGO-2026-4390 changed 2026-02-04CC-BY-4.0
NVDCVE-2023-51651 changed 2026-06-17Public domain