Advisory Database
  • Advisories
  • Dependency Scanning
  1. conan
  2. ›
  3. libjpeg-turbo
  4. ›
  5. CVE-2021-46822

CVE-2021-46822: Out-of-bounds Write

June 18, 2022 (updated August 15, 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.

References

  • exchange.xforce.ibmcloud.com/vulnerabilities/221567
  • github.com/libjpeg-turbo/libjpeg-turbo/commit/f35fd27ec641c42d6b115bfa595e483ec58188d2
  • nvd.nist.gov/vuln/detail/CVE-2021-46822

Code Behaviors & Features

Detect and mitigate CVE-2021-46822 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions after 1.5.3 up to 2.0.90

Fixed versions

  • 2.1.0

Solution

Upgrade to version 2.1.0 or above.

Impact 5.5 MEDIUM

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-787: Out-of-bounds Write

Source file

conan/libjpeg-turbo/CVE-2021-46822.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:45 +0000.