CVE-2021-4214: Medium severity libpng LIBPNG vulnerability

Published Jan 21, 2022
·
Updated

A heap overflow flaw was found in libpngs' pngimage.c program. This flaw allows an attacker with local network access to pass a specially crafted PNG file to the pngimage utility, causing an application to crash, leading to a denial of service.

Other sources

A vulnerability was reported in Libpng where the input buffer might not have the same length as the pre-defined value hardcoded in the pngimage so that the index is out of bound in the later loop.

References: https://github.com/glennrp/libpng/issues/302

Red Hat

Affected Software

5 affected components
libpng LIBPNG=1.6.0
Debian Debian Linux=10.0
Debian Debian Linux=11.0
NetApp ONTAP Select Deploy administration utility
debian/libpng1.6<=1.6.37-3, <=1.6.37-3+deb11u2, <=1.6.39-2+deb12u1, <=1.6.39-2+deb12u3, <=1.6.48-1+deb13u1, <=1.6.48-1+deb13u3, <=1.6.55-1

Event History

Jan 21, 2022
Data Sourced
via Red Hat·07:24 AM
DescriptionSeverityAffected Software
Aug 24, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionWeakness
Feb 24, 2026
Data Sourced
via Debian·10:51 PM
DescriptionAffected Software

Frequently Asked Questions

1

What is CVE-2021-4214?

CVE-2021-4214 is a heap overflow vulnerability found in libpng's pngimage.c program.

2

What is the severity of CVE-2021-4214?

The severity of CVE-2021-4214 is medium.

3

How does CVE-2021-4214 affect the affected software?

CVE-2021-4214 affects libpng version 1.6.0 and Debian Linux versions 10.0 and 11.0, as well as the NetApp ONTAP Select Deploy administration utility.

4

How can an attacker exploit CVE-2021-4214?

An attacker with local network access can exploit CVE-2021-4214 by passing a specially crafted PNG file to the pngimage utility, causing an application to crash and leading to a denial of service.

5

How can I fix the CVE-2021-4214 vulnerability?

To fix the CVE-2021-4214 vulnerability, update libpng to versions 1.6.36-6, 1.6.37-3, 1.6.39-2, or 1.6.40-2, or follow the recommended updates for the affected software.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203