# CVE-2021-45385: A Null Pointer Dereference vulnerability exits in ffjpeg d5cfd49 (2021-12-06) in bmpload().

- Severity: Medium 6.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.89%, higher than 60% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-02-11T15:18:09.000Z
- Modified: 2026-06-17T04:13:19.277Z
- Weaknesses: CWE-476
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- rockcarry ffjpeg: 2021-12-06

## Every score

- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:N/A:P`

## References

- <https://github.com/rockcarry/ffjpeg/issues/47> (exploit, issue-tracking, third-party-advisory)
- <https://github.com/rockcarry/ffjpeg/pull/48> (issue-tracking, patch, third-party-advisory)

## Sources

- CVE List: [CVE-2021-45385](https://www.cve.org/CVERecord?id=CVE-2021-45385), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2021-45385](https://nvd.nist.gov/vuln/detail/CVE-2021-45385), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-45385 · Whole record: https://cve.day/CVE-2021-45385.json · Rebuilt by cve.day 2026-11-25T22:58:06.937Z
