High
Security advisory
In opencv/modules/imgcodecs/src/grfmt_pxm.cpp, function PxMDecoder::readData has an integer overflow when calculate src_pitch. If the image is from remote, may lead to remote code execution or denial of service. This affects Opencv 3.3 and earlier.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2017-12863
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 08:26 UTC · Revision 1
Source evidence
In opencv/modules/imgcodecs/src/grfmt_pxm.cpp, function PxMDecoder::readData has an integer overflow when calculate src_pitch. If the image is from remote, may lead to remote code execution or denial of service. This affects Opencv 3.3 and earlier.
osv:CVE-2017-12863
Complete source record
{
"id": "f357d1412dbf8b6afd3079e4225b10654efb6e41dc1e62ec5f597ef94eab4941",
"url": "https://osv.dev/vulnerability/CVE-2017-12863",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2017-12863",
"summary": "In opencv/modules/imgcodecs/src/grfmt_pxm.cpp, function PxMDecoder::readData has an integer overflow when calculate src_pitch. If the image is from remote, may lead to remote code execution or denial of service. This affects Opencv 3.3 and earlier.",
"evidence": "osv:CVE-2017-12863",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2017-12863",
"aliases": [
"CVE-2017-12863",
"GHSA-wq8f-wvqp-xvvm",
"PYSEC-2026-2832",
"PYSEC-2026-717"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/opencv/opencv",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "e8357c0544c82beda237defc0abc90ee28992ee7"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:opencv:opencv:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "3.3.0"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"3.3.0-rc",
"3.3.0-cvsdk",
"3.2.0-rc",
"2.2"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-12863.json"
}
},
{
"ranges": [
{
"repo": "https://github.com/opencv/opencv_contrib",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "2a9d1b22ed76eb22fad1a5edf6faf4d05f207b13"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:opencv:opencv:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "3.3.0"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"3.3.0",
"3.3.0-rc",
"3.2.0",
"3.2.0-rc",
"3.1.0",
"3.0.0",
"3.0.0-rc1",
"3.0.0-beta"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-12863.json"
}
}
],
"modified": "2026-10-24T10:47:28.803936244Z",
"provider": "osv",
"references": [
"https://lists.debian.org/debian-lts-announce/2018/07/msg00030.html",
"https://lists.debian.org/debian-lts-announce/2021/10/msg00028.html",
"https://security.gentoo.org/glsa/201712-02",
"https://github.com/opencv/opencv/issues/9371"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*",
"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"
],
"vendor_product": "debian:debian_linux",
"extracted_events": [
{
"range": [
{
"introduced": "8.0"
},
{
"last_affected": "8.0"
},
{
"introduced": "9.0"
},
{
"last_affected": "9.0"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2017-12863",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 441247,
"published_at": "2017-08-15T16:29:00.293+00:00"
}