VDB
CVE-2021-46822
CVE-2021-46822
PUBLISHED
CVSS 5.5 MEDIUM
Reported by mitre · Published June 18, 2022
The PPM reader in libjpeg-turbo through 2.0.90 mishandles use of tjLoadImage for loading a 16-bit binary PPM file into a grayscale buffer and loading a 16-bit binary PGM file into an RGB buffer. This is related to a heap-based buffer overflow in the get_word_rgb_row function in rdppm.c.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| libjpeg-turbo | conan.io | 2.0.90 |
| libjpeg-turbo | Amazon Linux | 2.0.90-2.amzn2.0.2 |
| libjpeg-turbo-utils | Amazon Linux | 2.0.90-2.amzn2.0.2 |
| libjpeg-turbo | libjpeg-turbo | 2.0.90 |
Risk scores
CVSS 3.1
5.5
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| ConanCenter | libjpeg-turbo | 1.5.3 |
| amazon:2 | libjpeg-turbo | 0 |
| amazon:2 | libjpeg-turbo-utils | 0 |
| n/a | n/a | * |
| amazon:2 | libjpeg-turbo-devel | 0 |
| amazon:2 | turbojpeg-devel | 0 |
| amazon:2 | turbojpeg | 0 |
Timeline
- Jun 18, 2022 CVE Published
- Jun 19, 2022 EPSS Score (30 in total, the first dated here)
- Mar 17, 2026 Security Advisory (2 in total, the first dated here)
- Mar 26, 2026 Distribution Patch
- Jul 14, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-46822
vulnetix vdb fixes CVE-2021-46822
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-46822/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2021-46822 advisory