Bug 2255747 (CVE-2023-51651)

Summary: CVE-2023-51651 aws-sdk-php: URI path traversal
Product: [Other] Security Response Reporter: ybuenos
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedKeywords: Security
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2255835, 2255836, 2255837, 2255838, 2255839, 2255840, 2255841    
Bug Blocks:    

Description ybuenos 2023-12-24 14:24:32 UTC
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.

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

Comment 1 ybuenos 2023-12-25 17:22:10 UTC
Created nextcloud tracking bugs for this issue:

Affects: fedora-all [bug 2255835]


Created nextcloud:23/nextcloud tracking bugs for this issue:

Affects: epel-all [bug 2255836]
Affects: fedora-all [bug 2255839]


Created nextcloud:24/nextcloud tracking bugs for this issue:

Affects: epel-all [bug 2255837]
Affects: fedora-all [bug 2255840]


Created nextcloud:nextcloud-22/nextcloud tracking bugs for this issue:

Affects: epel-all [bug 2255838]


Created nextcloud:nextcloud-stable/nextcloud tracking bugs for this issue:

Affects: fedora-all [bug 2255841]