---
title: "CVE-2016-3982\n    | Ubuntu"
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/CVE-2016-3982?format=md
keywords: index, follow
---

# CVE-2016-3982

Publication date 13 April 2016

Last updated 25 August 2025

---

Ubuntu priority

**Medium**

[Why this priority?](https://ubuntu.com/security/cves/about#priority )

## Cvss 3 Severity Score

**8.8 · High**

[Score breakdown](https://ubuntu.com/security/CVE-2016-3982?format=md#impact-score)

Toggle side navigation

## Description

Off-by-one error in the bmp\_rle4\_fread 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, which triggers a heap-based buffer
overflow.

[Read the notes from the security team](https://ubuntu.com/security/CVE-2016-3982?format=md#notes)

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| optipng | 15.10 wily | Fixed 0.7.5-1ubuntu0.1 |
| 14.04 LTS trusty | Fixed 0.6.4-1ubuntu0.14.04.1 |
| 12.04 LTS precise | Fixed 0.6.4-1ubuntu0.12.04.1 |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)

## Notes

---

### [tyhicks](https://launchpad.net/~tyhicks)

verified that 14.04 through 15.10 are affected via valgrind and
the reproducer from bugs.fi

## Severity score breakdown

CVSS version:
CVSS v3.0

**Base score**

8.8 · High

* Base metrics

  | Parameter | Value |
  | --- | --- |
  | Attack vector | Network |
  | Attack complexity | Low |
  | Privileges required | None |
  | User interaction | Required |
  | Scope | Unchanged |
  | Confidentiality impact | High |
  | Integrity impact | High |
  | Availability impact | High |
* Scores

  | Parameter | Value |
  | --- | --- |
  | Base score | 8.8 · High |
  | Exploitability score | - |
  | Impact score | - |

**Vector:** CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

## References

* [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-3982)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2016-3982)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2016-3982)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2016-3982)

### Related Ubuntu Security Notices (USN)

+ [USN-2951-1](https://usn.ubuntu.com/USN-2951-1)
+ OptiPNG vulnerabilities
+ 18 April 2016

### Other references

* <http://www.debian.org/security/2016/dsa-3546>
* <https://www.cve.org/CVERecord?id=CVE-2016-3982>
