---
title: "CVE-2017-12862\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-2017-12862?format=md
keywords: index, follow
---

# CVE-2017-12862

Publication date 15 August 2017

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-2017-12862?format=md#impact-score)

Toggle side navigation

## Description

In modules/imgcodecs/src/grfmt\_pxm.cpp, the length of buffer AutoBuffer
\_src is small than expected, which will cause copy buffer overflow later.
If the image is from remote, may lead to remote code execution or denial of
service. This affects Opencv 3.3 and earlier.

### From the Ubuntu Security Team

It was discovered that OpenCV incorrectly handled certain image files.
An attacker could possibly use this issue to cause a denial of service,
execute arbitrary code or other unspecified impact.

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| opencv | 18.04 LTS bionic | Fixed 3.2.0+dfsg-4ubuntu0.1 |
| 17.10 artful | Ignored end of life |
| 17.04 zesty | Ignored end of life |
| 16.04 LTS xenial | Fixed 2.4.9.1+dfsg-1.5ubuntu1.1 |
| 14.04 LTS trusty | Fixed 2.4.8+dfsg1-2ubuntu1.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)

## 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.1/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-2017-12862)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2017-12862)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2017-12862)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2017-12862)

### Other references

* <https://github.com/opencv/opencv/issues/9370>
* <https://www.cve.org/CVERecord?id=CVE-2017-12862>
