{"id":"CVE-2021-45385","aliases":["CVE-2021-45385"],"related":[],"kind":"vulnerability","state":"published","title":"A Null Pointer Dereference vulnerability exits in ffjpeg d5cfd49 (2021-12-06) in bmpload().","summary":"A Null Pointer Dereference vulnerability exits in ffjpeg d5cfd49 (2021-12-06) in bmp_load(). When the size information in metadata of the bmp is out of range, it returns without assign memory buffer to `pb->pdata` and did not exit the program. So the program crashes when it tries to access the pb->data, in jfif_encode() at jfif.c:763. This is due to the incomplete patch for CVE-2020-13438.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"A Null Pointer Dereference vulnerability exits in ffjpeg d5cfd49 (2021-12-06) in bmp_load(). When the size information in metadata of the bmp is out of range, it returns without assign memory buffer to `pb->pdata` and did not exit the program. So the program crashes when it tries to access the pb->data, in jfif_encode() at jfif.c:763. This is due to the incomplete patch for CVE-2020-13438.","source":"cvelist"},{"lang":"es","text":"Se presenta una vulnerabilidad de desreferencia de puntero Null en ffjpeg versión d5cfd49 (06-12-2021) en la función bmp_load(). Cuando la información del tamaño en los metadatos del bmp está fuera de rango, devuelve sin asignar memoria intermedia a \"pb-)pdata\" y no sale del programa. Así que el programa es bloqueado cuando intenta acceder a pb-)data, en jfif_encode() en jfif.c:763. Esto es debido al parche incompleto para CVE-2020-13438","source":"nvd"}],"published":"2022-02-11T15:18:09.000Z","modified":"2026-06-17T04:13:19.277Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":6.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-476"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"status":"affected","version":"2021-12-06"}],"vendor":"rockcarry","product":"ffjpeg","cpe":"cpe:2.3:a:rockcarry:ffjpeg:2021-12-06:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/rockcarry/ffjpeg/issues/47","tags":["exploit","issue-tracking","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/rockcarry/ffjpeg/pull/48","tags":["issue-tracking","patch","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-45385","url":"https://www.cve.org/CVERecord?id=CVE-2021-45385","licence":"CVE Terms of Use","modified":"2024-08-04T04:39:20.567Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-45385","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-45385","licence":"Public domain","modified":"2026-06-17T04:13:19.277Z"}],"updatedAt":"2026-11-25T22:58:06.937Z","epss":{"score":0.00893,"percentile":0.60514,"date":"2026-12-01T12:00:22.000Z"}}