aws/aws-sdk-php is vulnerable to Path Traversal
55
CVE Score
Medium
Path Traversal
The legacy Aws\S3\Transfer download guard in resolvesOutsideTargetDirectory() tokenized sink and object-key paths only on forward slashes. On Windows, PHP treats backslashes as directory separators in fopen, mkdir, and dirname, so an S3 object key such as inbox/..\shell.php under a synced prefix can resolve outside the intended destination directory even though the guard accepts it. A remote peer that can place crafted keys in the synced bucket can therefore write files outside the target folder during Transfer downloads on Windows hosts. Version 3.388.12 aligns this guard with S3Transfer\DirectoryDownloader by splitting on both / and \.
Upgrade aws/aws-sdk-php library to the patch version.
You are affected if you are using a version that falls within the vulnerable range, run on Windows, and use Aws\S3\Transfer to download or sync objects from S3 buckets whose keys an attacker can influence.
3.27.0 - 3.388.11
Fixed in 3.388.12aws/aws-sdk-php is vulnerable to Path Traversal in versions 3.27.0 - 3.388.11.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.