Skip to content

← Public intelligence

Maven package

com.amazonaws:aws-java-sdk-s3

Open actionable advisories and recorded vendor fixes. This public package view has no inventory attached and cannot establish whether your deployment is affected. A vendor fix never resolves your finding; verify your installed version and the source guidance.

Open advisories

1 actionable advisory, newest first. Withdrawn advisories and news are excluded. Coverage is partial.

  1. High, CVSS 7.9MavenPublished

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

    CVE-2022-31159 · GHSA-c28r-hw5m-5gv3

    Affected
    • Maven com.amazonaws:aws-java-sdk-s3 < 1.12.261
    Fixed in
    1.12.261· Vendor fix available
    Issue
    A partial-path traversal issue exists within the downloadDirectory method in the AWS S3 TransferManager component of the AWS SDK for Java v1. 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. Versions of the AWS Java SDK for S3 v1 before and including…

    Recommended action: Upgrade to 1.12.261 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →