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.

PackageEcosystemFixed in
libjpeg-turboconan.io2.0.90
libjpeg-turboAmazon Linux2.0.90-2.amzn2.0.2
libjpeg-turbo-utilsAmazon Linux2.0.90-2.amzn2.0.2
libjpeg-turbolibjpeg-turbo2.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

VendorProductVersions
n/an/an/a
ConanCenterlibjpeg-turbo1.5.3
amazon:2libjpeg-turbo0
amazon:2libjpeg-turbo-utils0
n/an/a*
amazon:2libjpeg-turbo-devel0
amazon:2turbojpeg-devel0
amazon:2turbojpeg0

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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›