Advisory

PYSEC-2026-2804

Also known as: CVE-2017-12864, GHSA-267x-w5hx-8hjr, PYSEC-2026-697

Summary

Integer Overflow or Wraparound in OpenCV

Details

In opencv/modules/imgcodecs/src/grfmt_pxm.cpp, function ReadNumber did not checkout the input length, which lead to integer overflow. If the image is from remote, may lead to remote code execution or denial of service. This affects OpenCV 3.3 (corresponding with OpenCV-Python version 3.3.0.9) and earlier.

Severity

High Basis: CVSS v3 score 8.8, vector CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Dates

Published
2026-07-09 16:49 UTC
Modified
2026-07-13 16:42 UTC

Affected packages and fixes

opencv-python

PyPI · All systems

Affected

  • introduced 0, fixed 3.3.1.11 (ecosystem)

Fixed versions

3.3.1.11

Fix

  • Fixed version 3.3.1.11
    pip install --upgrade opencv-python==3.3.1.11

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences