cve.bz

CVE-2017-12601 Classic Buffer Overflow

8.8 highEPSS 2.1%Fix available

High (8.8). EPSS 2.1% estimated probability of exploitation activity in the next 30 days. Fixed in opencv-python 3.3.1.11.

On this page
OpenCV (Open Source Computer Vision Library) through 3.3 has a buffer overflow in the cv::BmpDecoder::readData function in modules/imgcodecs/src/grfmt_bmp.cpp when reading an image file by using cv::imread, as demonstrated by the 4-buf-overflow-readData-memcpy test case.

Severity

CVSS 3.1

8.8 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
2.1% (unchanged from 2.1% a week ago; 2.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 82nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-120 Buffer Copy without Checking Size of Input (Classic Buffer Overflow)
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2017-12601 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2017-12601?via=ask-ai-copy and https://cve.bz/cve/CVE-2017-12601?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2017-12601 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
opencv:opencvthrough 3.3.0
debian:debian_linux8.0
debian:debian_linux9.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-w96g-3p64-63wrPyPIopencv-python<3.3.1.113.3.1.11
GHSA-w96g-3p64-63wrPyPIopencv-contrib-python<3.3.1.113.3.1.11
PYSEC-2026-2831PyPIopencv-python<3.3.1.113.3.1.11
PYSEC-2026-716PyPIopencv-contrib-python<3.3.1.113.3.1.11

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian7opencv2.3.1-11+deb7u2DLA-1117-1
Debian8opencv2.4.9.1+dfsg-1+deb8u2DLA-1438-1
Debian9opencv2.4.9.1+dfsg1-2+deb9u1DLA-2799-1
Debian12, 13, 14opencv3.2.0+dfsg-6DEBIAN-CVE-2017-12601
Ubuntu16.04:LTSopencv2.4.9.1+dfsg-1.5ubuntu1.1UBUNTU-CVE-2017-12601
Ubuntu18.04:LTSopencv3.2.0+dfsg-4ubuntu0.1UBUNTU-CVE-2017-12601

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6opencvWill not fix
Red Hat Enterprise Linux 7opencvWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2017-12601.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-120 (13).

References

Check your stackJSON