CVE-2021-46822Libjpeg-turbo
Medium 5.5
Follow: this CVE · Libjpeg-turbo · Libjpeg-turbo We alert you by email or Slack (account required).
- Priority
- 33
- CVSS 3.1
- 5.5
- EPSS
- 1.1% probability of exploitation in 30 days · percentile 65
- Auth required
- Yes
- Published
- Jun 18, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-787
- Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
What happens
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.
What to do
- Apply the vendor's security update for Libjpeg-turbo.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| libjpeg-turbo | libjpeg-turbo | > 1.5.3 ≤ 2.0.90 |
Official sources
References
Links published by the sources. Open them with care.
- exchange.xforce.ibmcloud.com Third Party Advisory VDB Entry
- github.com Patch Third Party Advisory