SecurityContext

CVE-2021-45385: ffjpeg - Null Pointer Dereference

  • Cve: CVE-2021-45385
  • Name: ffjpeg - Null Pointer Dereference
  • 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.
  • Impact: Attackers can cause application crashes or denial of service by exploiting this null pointer dereference.
  • Remediation: Apply the complete patch addressing CVE-2020-13438 or update to the latest version of ffjpeg.
  • Vulnerability type: null_pointer_dereference
  • Vulnerability impact: denial_of_service
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 6.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
  • Epss score: 0.00893
  • Epss percentile: 0.60359
  • Assignee: [email protected]
  • Published at: 2022-02-11T16:15:08Z
  • Age in days: 1747
  • Modified at: 2026-06-17T04:13:19Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-45385
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-476NULL Pointer Dereference

Public exploits

UrlSourceAdded date
https://github.com/rockcarry/ffjpeg/issues/47nvd2022-02-11

References

UrlSourceTags
https://github.com/rockcarry/ffjpeg/pull/48nvdIssue Tracking, Patch, Third Party Advisory
https://github.com/rockcarry/ffjpeg/issues/47nvdExploit, Issue Tracking, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
rockcarry:ffjpeg= 2021-12-06nonvd/v1/products/rockcarry/ffjpeg

Projects

RepositoryLink kindsIndexedUrl
rockcarry/ffjpegissues, pullyes/v1/repositories/rockcarry/ffjpeg

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2022-02-11
  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts