CVE-2013-6954 Null dereference in n/a
Remote attackers can crash applications using libpng by sending crafted PNG images with zero-byte or NULL palettes, causing a denial of service.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2013-6954?
CVE-2013-6954 is a medium-severity vulnerability in Libpng Libpng, published on 12 Jan 2014. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
The png_do_expand_palette function in libpng before 1.6.8 allows remote attackers to cause a denial of service (NULL pointer dereference and application crash) via (1) a PLTE chunk of zero bytes or (2) a NULL palette, related to pngrtran.c and pngset.c.
Weakness: CWE-476
Which versions are affected by CVE-2013-6954?
It affects 1 product.
Products include Libpng Libpng.
How do I fix CVE-2013-6954?
Upgrade to a fixed version.
Is CVE-2013-6954 being exploited?
There is no known exploitation of CVE-2013-6954 in the wild and no public exploit code.
Other vulnerabilities in Libpng Libpng
- CVE-2017-12652 Denial of service in n/a
- CVE-2018-14550 Out-of-bounds write in libpng
- CVE-2026-25646 LIBPNG has a heap buffer overflow in png_set_quantize
- CVE-2026-33636 LIBPNG has ARM NEON Palette Expansion Out-of-Bounds Read on AArch64
- CVE-2026-33416 LIBPNG has use-after-free via pointer aliasing in `png_set_tRNS` and `png_set_PLTE`
Sources
Also known as GHSA-jqh6-vqxw-fcv3, MGASA-2014-0075, MGASA-2014-0076.