CVE-2021-45385: A Null Pointer Dereference vulnerability exits in ffjpeg d5cfd49 (2021-12-06) in bmp_load()
CVE-2021-45385 is a medium-severity flaw (CVSS 6.5) affecting ffjpeg. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- Public exploit reference
No fix is published yet: follow the downgrade or mitigation steps.
Risk facts
| CVSS score | 6.5 (Medium) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | Required |
| EPSS exploit chance | 0.9% (top 41%) |
| CISA exploited list | No |
| Weakness | CWE-476 |
| Published | 2022-02-11 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2021-45385?
ffjpeg: downgrade or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2021-45385 being exploited?
CVE-2021-45385 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2021-45385 affect?
CVE-2021-45385 affects ffjpeg. Severity is medium (CVSS 6.5). 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 progr
How urgent is CVE-2021-45385?
Priority 43/100. Public exploit reference
Related CVEs
- CVE-2022-35433 MEDIUM 6.5 UPGRADE ffjpeg commit caade60a69633d74100bd3c2528bddee0b6a1291 was discovered to contain a memory leak via /src/jfif.c
- CVE-2022-28471 MEDIUM 6.5 DOWNGRADE In ffjpeg (commit hash: caade60), the function bmp_load() in bmp.c contains an integer overflow vulnerability,
- CVE-2021-44957 MEDIUM 6.5 UPGRADE Global buffer overflow vulnerability exist in ffjpeg through 01.01.2021
- CVE-2021-44956 MEDIUM 6.5 UPGRADE Two Heap based buffer overflow vulnerabilities exist in ffjpeg through 01.01.2021
- CVE-2021-34122 MEDIUM 5.5 UPGRADE The function bitstr_tell at bitstr.c in ffjpeg commit 4ab404e has a NULL pointer dereference.