GHSA-w736-hf9p-qqh3

Suggest an improvement
Source
https://github.com/advisories/GHSA-w736-hf9p-qqh3
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/02/GHSA-w736-hf9p-qqh3/GHSA-w736-hf9p-qqh3.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-w736-hf9p-qqh3
Published
2021-02-08T17:43:36Z
Modified
2024-12-02T05:43:51.387516Z
Summary
Key Caching behavior in the DynamoDB Encryption Client.
Details

Impact

This advisory concerns users of MostRecentProvider in the DynamoDB Encryption Client with a key provider like AWS Key Management Service that allows for permissions on keys to be modified.

When key usage permissions were changed at the key provider, time-based key reauthorization logic in MostRecentProvider did not reauthorize the use of the key. This created the potential for keys to be used in the DynamoDB Encryption Client after permissions to do so were revoked at the key provider.

Patches

Fixed as of 1.15.0. We recommend users to modify their code and adopt CachingMostRecentProvider.

Workarounds

Users who cannot upgrade to use the CachingMostRecentProvider can call clear() on the cache to manually flush all of its contents. Next use of the key will force a re-validation to occur with the key provider.

Database specific
{
    "nvd_published_at": null,
    "cwe_ids": [
        "CWE-862"
    ],
    "severity": "LOW",
    "github_reviewed": true,
    "github_reviewed_at": "2021-02-05T21:21:40Z"
}
References

Affected packages

Maven / com.amazonaws:aws-dynamodb-encryption-java

Package

Name
com.amazonaws:aws-dynamodb-encryption-java
View open source insights on deps.dev
Purl
pkg:maven/com.amazonaws/aws-dynamodb-encryption-java

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.15.0

Affected versions

1.*

1.11.0
1.11.1
1.11.2
1.12.0
1.13.0
1.14.0
1.14.1