CVE-2016-3981 json
Heap-based buffer overflow in the bmp_read_rows function in pngxrbmp.c in OptiPNG before 0.7.6 allows remote attackers to cause a denial of…
published 2016-04-13 10 y ago modified 2026-06-17 4 mo ago also EUVD-2016-4990
- cvss
- 7.8
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 4.4%
- EPSS 4.4% chance of exploitation in 30 days, percentile 91%
- public exploits
- 0
- none known
Summary
Heap-based buffer overflow in the bmp_read_rows function in pngxrbmp.c in OptiPNG before 0.7.6 allows remote attackers to cause a denial of service (out-of-bounds read or write access and crash) or possibly execute arbitrary code via a crafted image file.
Patch / fix
- optipng Debian 14, Debian 13, Debian 12 0.7.6-1
debian advisories DEBIAN-CVE-2016-3981
- optipng Ubuntu 14.04 LTS 0.6.4-1ubuntu0.14.04.1
ubuntu advisories UBUNTU-CVE-2016-3981
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- sourceforge.net/p/optipng/bugs/56/ advisory
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2016-3981 updated cvss 4.4
optipng: heap buffer overflow in the bmp_read_rows function
-
Red Hat Enterprise Linux 7 optipngaffected: no fix planned “Will not fix”
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
4.43% chance of exploitation in the next 30 days, higher than 91% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- bugs.fi http://bugs.fi/media/afl/optipng/1/ referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 7.8 | CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 9.3 | AV:N/AC:M/Au:N/C:C/I:C/A:C |
Classification
- Weakness
-
- CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
References
-
sourceforge.net
/p/optipng/bugs/56/
issue-tracking, patch, third-party-advisory
-
bugs.fi
/media/afl/optipng/1/
exploit
-
lists.opensuse.org
/opensuse-updates/2016-04/msg00065.html
vendor-advisory, mailing-list, third-party-advisory
-
debian.org
/security/2016/dsa-3546
vendor-advisory, third-party-advisory
-
ubuntu.com
/usn/USN-2951-1
vendor-advisory, third-party-advisory
-
lists.opensuse.org
/opensuse-updates/2016-04/msg00061.html
vendor-advisory, mailing-list, third-party-advisory
-
security.gentoo.org
/glsa/201608-01
vendor-advisory
Sources
- CVE List CVE-2016-3981
- NVD CVE-2016-3981
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.