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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.0
- **CVSS:** 6.0 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: High; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.42% (percentile 28, 2026-11-26)
- **CWE:** CWE-22
- **Aliases:** CVE-2025-69820, GHSA-557v-xcg6-rm5m, GHSA-73jg-4qh6-3f4g, GO-2026-4390
- **Published:** 2023-12-21T23:16:13.000Z
- **Modified:** 2026-06-17T06:41:24.260Z

## Who should check

- Projects that depend on Packagist package aws/aws-sdk-php (\< 3.288.1)
- Projects that depend on Go package github.com/beam-cloud/beta9 (\<= 0.0.0-20260116162221-c1cd75e813cf)
- Anyone running aws-sdk-php \>= 3.0.0, \< 3.288.1

## 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 and fixed versions

- Packagist `aws/aws-sdk-php`: affected \< 3.288.1; fixed 3.288.1 (osv)
- Go `github.com/beam-cloud/beta9`: affected \<= 0.0.0-20260116162221-c1cd75e813cf; fixed no fix listed yet (osv)
- aws-sdk-php: \>= 3.0.0, \< 3.288.1 (cvelist)

## Mitigation

- Upgrade aws/aws-sdk-php to 3.288.1 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-51651. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-51651.md
Affected: aws/aws-sdk-php < 3.288.1; github.com/beam-cloud/beta9 <= 0.0.0-20260116162221-c1cd75e813cf
Fixed in: 3.288.1

Steps:
1. Search this machine and project for aws/aws-sdk-php (Packagist), github.com/beam-cloud/beta9 (Go), aws-sdk-php: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-51651 being exploited?

There is no confirmed exploitation: CVE-2023-51651 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.42% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-51651?

Medium: CVSS 6.0 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2023-51651?

aws/aws-sdk-php \< 3.288.1; github.com/beam-cloud/beta9 \<= 0.0.0-20260116162221-c1cd75e813cf.

### Is there a fix for CVE-2023-51651?

Yes. Fixed in 3.288.1. Upgrade aws/aws-sdk-php to 3.288.1 or later.

### How do I check if I'm affected by CVE-2023-51651?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/aws/aws-sdk-php/security/advisories/GHSA-557v-xcg6-rm5m>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2023-51651>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2025-69820>
- vendor: <https://github.com/advisories/GHSA-73jg-4qh6-3f4g>
- patch: <https://github.com/aws/aws-sdk-php/commit/aebc9f801438746ac4ade327551576cb75f635f2>
- other: <https://github.com/aws/aws-sdk-php/releases/tag/3.288.1>
- other: <https://github.com/FriendsOfPHP/security-advisories/blob/master/aws/aws-sdk-php/CVE-2023-51651.yaml>
- other: <https://github.com/aws/aws-sdk-php>
- other: <https://github.com/beam-cloud/beta9>
- other: <https://github.com/beam-cloud/beta9/blob/c1cd75e813cf7d53e916157d920099e89ef45caa/pkg/abstractions/volume/multipart.go#L45>
- other: <https://github.com/ryotaromatsui/CVEs/tree/main/CVE-2025-69820>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-51651>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-557v-xcg6-rm5m> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-73jg-4qh6-3f4g> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2026-4390> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2023-51651> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-51651>
