CVEvulnerability

CVE-2021-46822

5.5 MEDIUM Published 2022-06-18 Modified 2026-06-17 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