---
id: CVE-2017-17760
aliases:
  - GHSA-jcxv-2j3h-mg59
  - PYSEC-2026-2823
  - PYSEC-2026-711
title: >-
  Improper Restriction of Operations within the Bounds of a Memory Buffer in
  OpenCV
summary: >-
  Improper Restriction of Operations within the Bounds of a Memory Buffer in
  OpenCV
severity: medium
cvss: 6.5
cvssVector: 'CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H'
vendor: opencv-python
product: opencv-python
ecosystem: pip
affected:
  - opencv-python < 3.4.0.12
  - opencv-contrib-python < 3.4.0.12
patched:
  - opencv-python 3.4.0.12
  - opencv-contrib-python 3.4.0.12
published: '2021-10-12'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T03:49:09.204033129Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-jcxv-2j3h-mg59'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2017-17760'
  - url: 'https://github.com/opencv/opencv/issues/10351'
  - url: >-
      https://github.com/opencv/opencv/pull/10369/commits/7bbe1a53cfc097b82b1589f7915a2120de39274c
  - url: 'https://github.com/opencv/opencv-python'
  - url: 'https://lists.debian.org/debian-lts-announce/2018/01/msg00008.html'
  - url: 'https://lists.debian.org/debian-lts-announce/2018/07/msg00030.html'
  - url: 'https://lists.debian.org/debian-lts-announce/2021/10/msg00028.html'
  - url: 'http://www.securityfocus.com/bid/102974'
tags:
  - osv
  - pip
epss: 0.0224
epssPercentile: 0.8189
ingestedAt: '2026-07-08T18:25:50.648Z'
---

## Overview

OpenCV 3.3.1 (corresponding with opencv-python and opencv-contrib-python 3.3.1.11) has a Buffer Overflow in the cv::PxMDecoder::readData function in grfmt_pxm.cpp, because an incorrect size value is used.

## Affected packages

- `opencv-python < 3.4.0.12`
- `opencv-contrib-python < 3.4.0.12`

## Remediation

Upgrade to a patched release:

- `opencv-python 3.4.0.12`
- `opencv-contrib-python 3.4.0.12`
