Heap-based buffer overflow in libpng - CVE-2021-4214
Published: April 26, 2023 / Updated: November 26, 2025
Vulnerability identifier: #VU75516
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2021-4214
CWE-ID: CWE-122
Exploitation vector: Remote access
Exploit availability:
No public exploit available
Vendor: libpng
Affected software:
libpng
libpng
Detailed vulnerability description
The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.
The vulnerability exists due to a boundary error within pngimage.c. A remote attacker can pass specially crafted data to the application, trigger a heap-based buffer overflow and perform a denial of service (DoS) attack.
How to mitigate CVE-2021-4214
Install update from vendor's website.