Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2017-12864

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 and earlier.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2017-12864
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 08:26 UTC · Revision 1

Source evidence

CVE-2017-12864

core-osv · Original source

Published 15 Aug 2017, 16:29 UTC

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 and earlier.

osv:CVE-2017-12864
Complete source record
{
  "id": "5da10d51550074406c35a9babe510ccaa61f37971b744dad743225bebb04993b",
  "url": "https://osv.dev/vulnerability/CVE-2017-12864",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2017-12864",
    "summary": "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 and earlier.",
    "evidence": "osv:CVE-2017-12864",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2017-12864",
      "aliases": [
        "CVE-2017-12864",
        "GHSA-267x-w5hx-8hjr",
        "PYSEC-2026-2804",
        "PYSEC-2026-697"
      ],
      "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-12864.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-12864.json"
          }
        }
      ],
      "modified": "2026-10-24T10:47:28.622301028Z",
      "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/9372"
      ],
      "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-12864",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 441245,
  "published_at": "2017-08-15T16:29:00.34+00:00"
}