CVE-2022-2582
Medium · 4.3CVSS
4.3
EPSS
0.5%
Published
Dec 27, 2022
CISA due date
—
Cloudanix analysis
A flaw in how some encryption tools handle data can let attackers guess the original information from extra details that should have stayed hidden.
- Exploitation
- Remote Authenticated
- Attacker needs
- Low Privilege
- Complexity
- Moderate
- Impact
- Data Exposure
- Component
- Library
- Class
- Cryptographic Weakness
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The cryptographic weakness sends an unencrypted hash of plaintext data alongside ciphertext in metadata, enabling brute-force recovery of the original plaintext when the hash is accessible to an attacker.
Why it matters to the business
Older versions of affected software can leak sensitive encrypted data contents through accessible metadata, increasing risk of unauthorized disclosure and potential compliance violations across dependent systems.
How an attack unfolds
An attacker with access to stored ciphertext and associated metadata extracts the plaintext hash and performs offline brute-force attempts to recover the original data; the flaw persists in unpatched versions despite upstream blocking of the metadata field.
How to fix it
Upgrade affected packages to the listed fixed versions: qemu on Debian 12 and 13 to 1:7.2+dfsg-1, and qemu-project/qemu GIT to commit d307040b18 or later.
How to confirm the fix worked
Verify package versions match or exceed the fixed releases, confirm absence of the plaintext hash in metadata fields during encryption operations, and review cryptographic library changelogs for the metadata field removal.
Typical attack path
- Obtain access to ciphertext and metadata containing the unencrypted hash
- Extract the hash value from the metadata field
- Perform brute-force or dictionary attacks against the hash to recover plaintext
How to detect it
Review application logs and stored object metadata for unexpected hash fields alongside ciphertext; monitor for brute-force patterns against hash values in forensic analysis of encrypted archives.
What your security team should do
- Prioritize upgrades on all instances using affected qemu packages within the next 30 days given exploit availability
- Audit encrypted data stores for legacy metadata containing plaintext hashes
- Implement runtime checks to block or alert on unencrypted hash metadata in cryptographic operations
The record
The AWS S3 Crypto SDK sends an unencrypted hash of the plaintext alongside the ciphertext as a metadata field. This hash can be used to brute force the plaintext, if the hash is readable to the attacker. AWS now blocks this metadata field, but older SDK versions still send it.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Go | github.com/aws/aws-sdk-go | 0 | 1.34.0 |
| Chainguard | k3d | 0 | 5.6.0-r11 |
| Chainguard | k3d-proxy | 0 | 5.6.0-r11 |
| Chainguard | k3d-tools | 0 | 5.6.0-r11 |
| Chainguard | kubevirt-cdi-uploadserver-1.5 | 0 | 0 |
| Chainguard | kubevirt-cdi-uploadserver-1.59 | 0 | 0 |
| Chainguard | kubevirt-cdi-uploadserver-fips-1.5 | 0 | 0 |
| Chainguard | kubevirt-cdi-uploadserver-fips-1.59 | 0 | 0 |
| Debian:11 | golang-github-aws-aws-sdk-go | 0 | 1.34.22-1 |
| Debian:12 | golang-github-aws-aws-sdk-go | 0 | 1.34.22-1 |
| Debian:13 | golang-github-aws-aws-sdk-go | 0 | 1.34.22-1 |
| Ubuntu:18.04:LTS | golang-github-aws-aws-sdk-go | 0 | No fix |
| Ubuntu:20.04:LTS | golang-github-aws-aws-sdk-go | 0 | No fix |
| Ubuntu:22.04:LTS | golang-github-aws-aws-sdk-go | 0 | 1.41.14-1ubuntu1 |
| Ubuntu:Pro:18.04:LTS | golang-github-aws-aws-sdk-go | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | golang-github-aws-aws-sdk-go | 0 | No fix |
| Wolfi | k3d | 0 | 5.6.0-r11 |
| Wolfi | k3d-proxy | 0 | 5.6.0-r11 |
| Wolfi | k3d-tools | 0 | 5.6.0-r11 |
Related vulnerabilities
- CVE-2020-8912 A vulnerability in the in-band key negotiation exists in the AWS S3 Crypto SDK for GoLang… Also affects github.com/aws/aws-sdk-go
- CVE-2020-8911 A padding oracle vulnerability exists in the AWS S3 Crypto SDK for GoLang versions prior… Also affects github.com/aws/aws-sdk-go
- CVE-2025-15558 Docker CLI for Windows searches for plugin binaries in C:\ProgramData\Docker\cli-plugins… Also affects k3d
- CVE-2024-2660 Vault and Vault Enterprise TLS certificates auth method did not correctly validate OCSP… Also affects k3d
- CVE-2024-2048 Vault and Vault Enterprise (“Vault”) TLS certificate auth method did not correctly… Also affects k3d
- CVE-2024-21626 runc is a CLI tool for spawning and running containers on Linux according to the OCI… Also affects k3d
- CVE-2021-43565 The x/crypto/ssh package before 0.0.0-20211202192323-5770296d904e of golang.org/x/crypto… Also affects k3d
- CVE-2022-27191 The golang.org/x/crypto/ssh package before 0.0.0-20220314234659-1baeb1ce4c0b for Go… Also affects k3d