{"id":"CVE-2021-46822","aliases":["CVE-2021-46822"],"related":[],"kind":"vulnerability","state":"published","title":"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 a…","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"El lector PPM en libjpeg-turbo versiones hasta 2.0.90, maneja inapropiadamente el uso de tjLoadImage para cargar un archivo PPM binario de 16 bits en un búfer de escala de grises y cargar un archivo PGM binario de 16 bits en un búfer RGB. Esto está relacionado con un desbordamiento del búfer en la región heap de la memoria en la función get_word_rgb_row en rdppm.c","source":"nvd"}],"published":"2022-06-18T15:27:44.000Z","modified":"2026-06-17T04:15:37.047Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:N/I:N/A:P","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-787"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"status":"affected","introduced":">1.5.3","lastAffected":"2.0.90"}],"vendor":"libjpeg-turbo","product":"libjpeg-turbo","cpe":"cpe:2.3:a:libjpeg-turbo:libjpeg-turbo:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/libjpeg-turbo/libjpeg-turbo/commit/f35fd27ec641c42d6b115bfa595e483ec58188d2","tags":["patch","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/221567","tags":["third-party-advisory","vdb-entry","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-46822","url":"https://www.cve.org/CVERecord?id=CVE-2021-46822","licence":"CVE Terms of Use","modified":"2024-08-04T05:17:42.633Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-46822","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-46822","licence":"Public domain","modified":"2026-06-17T04:15:37.047Z"}],"updatedAt":"2026-11-25T22:58:07.668Z","epss":{"score":0.01076,"percentile":0.65944,"date":"2026-12-01T12:00:22.000Z"}}