CVEvulnerability
CVE-2021-46822
5.5 MEDIUM
Official page ↗
- Status
- Modified
- Published
- 2022-06-18
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 5.5 MEDIUM — CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- CVSS 2.0 ([email protected])
- 4.3 MEDIUM — AV:N/AC:M/Au:N/C:N/I:N/A:P
- Weaknesses
- CWE-787
Description
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.
Affected configurations
• libjpeg-turbo libjpeg-turbo (> 1.5.3 <= 2.0.90)
Related
Weakness · CWE (1)
- CWE-787 Out-of-bounds Write weakness
References
- https://exchange.xforce.ibmcloud.com/vulnerabilities/221567 Third Party Advisory, VDB Entry
- https://github.com/libjpeg-turbo/libjpeg-turbo/commit/f35fd27ec641c42d6b115bfa595e483ec58188d2 Patch, Third Party Advisory
- https://exchange.xforce.ibmcloud.com/vulnerabilities/221567 Third Party Advisory, VDB Entry
- https://github.com/libjpeg-turbo/libjpeg-turbo/commit/f35fd27ec641c42d6b115bfa595e483ec58188d2 Patch, Third Party Advisory