{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-51651 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2023-51651 is a medium-severity path traversal vulnerability in aws-sdk-php, published on 22 Dec 2023. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-51651 and fix it if it is affected.\n\nWhat it is: CVE-2023-51651 is a medium-severity path traversal vulnerability in aws-sdk-php, published on 22 Dec 2023. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2023-51651 in the wild and no public exploit code.\n\nAffected product: aws-sdk-php. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-51651/ (Markdown: https://insights.sbomify.com/CVE-2023-51651/index.md)","id":"CVE-2023-51651","markdown":"https://insights.sbomify.com/CVE-2023-51651/index.md","name":"CVE-2023-51651","record":{"aliases":["CLSA-2026-1769993567","UBUNTU-CVE-2023-51651"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"AWS SDK for PHP","requires_auth":"high_privilege","summary":"Attackers can access arbitrary S3 objects via path traversal in AWS SDK for PHP when handling specific object keys.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"aws_software_development_kit","vendor":"amazon"}],"cvss":{"score":6,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Potential URI resolution path traversal in the AWS SDK for PHP","id":"CVE-2023-51651","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"path_traversal","year":"2023"},"n_packages":0,"n_references":3,"next":{"headline":"OWASP.AntiSamy mXSS when preserving comments","id":"CVE-2023-51652"},"packages":[],"prev":{"headline":"Unauthorized access vulnerability on three interfaces","id":"CVE-2023-51650"},"products":["aws-sdk-php"],"published":"2023-12-22","related":[{"cvss_score":7.2,"headline":"Information disclosure in n/a","id":"CVE-2018-19981","kev_date_added":null,"published":"2019-04-04"},{"cvss_score":6,"headline":"Out-of-bounds write in the Base64 decoder in Amazon aws-sdk-cpp","id":"CVE-2026-19642","kev_date_added":null,"published":"2026-08-12"},{"cvss_score":6,"headline":"Out-of-bounds read in the Base64 decoder in Amazon aws-sdk-cpp on signed-char platforms","id":"CVE-2026-19643","kev_date_added":null,"published":"2026-08-12"},{"cvss_score":5.5,"headline":"AWS SDK XML Parser XpathUtils.java XpathUtils server-side request forgery","id":"CVE-2022-4725","kev_date_added":null,"published":"2022-12-24"},{"cvss_score":4.3,"headline":"Exposure of unencrypted plaintext hash in github.com/aws/aws-sdk-go","id":"CVE-2022-2582","kev_date_added":null,"published":"2022-12-27"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-02","vendors":["aws"]},"summary":"Attackers can access arbitrary S3 objects via path traversal in AWS SDK for PHP when handling specific object keys.","url":"https://insights.sbomify.com/CVE-2023-51651/"}