Read the docs
TI-2022-13202 Aliases CVE-2022-31159GHSA-c28r-hw5m-5gv3

Partial Path Traversal in com.amazonaws:aws-java-sdk-s3

Priority HIGH 70CWE-22Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
Required
Attack complexity
High
Impact type
—
Confidentiality · integrity · availability
High · High · Low
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.

Summary

The AWS SDK for Java enables Java developers to work with Amazon Web Services. A partial-path traversal issue exists within the `downloadDirectory` method in the AWS S3 TransferManager component of the AWS SDK for Java v1 prior to version 1.12.261. Applications using the SDK control the `destinationDirectory` argument, but S3 object keys are determined by the application that uploaded the objects. The `downloadDirectory` method allows the caller to pass a filesystem object in the object key but contained an issue in the validation logic for the key name. A knowledgeable actor could bypass the validation logic by including a UNIX double-dot in the bucket key. Under certain conditions, this could permit them to retrieve a directory from their S3 bucket that is one level up in the filesystem from their working directory. This issue’s scope is limited to directories whose name prefix matches the destinationDirectory. E.g. for destination directory`/tmp/foo`, the actor can cause a download to `/tmp/foo-bar`, but not `/tmp/bar`. If `com.amazonaws.services.s3.transfer.TransferManager::downloadDirectory` is used to download an untrusted buckets contents, the contents of that bucket can be written outside of the intended destination directory. Version 1.12.261 contains a patch for this issue. As a workaround, when calling `com.amazonaws.services.s3.transfer.TransferManager::downloadDirectory`, pass a `KeyFilter` that forbids `S3ObjectSummary` objects that `getKey` method return a string containing the substring `..` .

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.01616 76th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed com.amazonaws:aws-java-sdk-s3 (Maven): 1.12.261

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
AWSaws-sdk-javaup to 1.12.260—No fix listedCNA
—com.amazonaws:aws-java-sdk-s3 (Maven)before 1.12.2611.12.261Patch availableGHSA-c28r-hw5m-5gv3
  • aws-sdk-java VendorAWS Affected up to 1.12.260 Fixed in — No fix listed CNA
  • com.amazonaws:aws-java-sdk-s3 (Maven) Vendor— Affected before 1.12.261 Fixed in 1.12.261 Patch available GHSA-c28r-hw5m-5gv3

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:amazon:aws-sdk-java:*:*:*:*:*:*:*:*up to 1.12.260VulnerableAWS
  • cpe:2.3:a:amazon:aws-sdk-java:*:*:*:*:*:*:*:* Versions up to 1.12.260 Vulnerable ·AWS

Remediation

  • Fix · GHSA-c28r-hw5m-5gv3 com.amazonaws:aws-java-sdk-s3 (Maven) Fixed in 1.12.261 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2022-31159
  2. 2026-10-03 Alias added: GHSA-c28r-hw5m-5gv3

References

Sources