UBUNTU-CVE-2017-12864

Source
https://ubuntu.com/security/CVE-2017-12864
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2017/UBUNTU-CVE-2017-12864.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2017-12864
Related
Published
2017-08-15T16:29:00Z
Modified
2025-01-13T10:21:25Z
Severity
  • 8.8 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H CVSS Calculator
  • 8.8 (High) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
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 and earlier.

References

Affected packages

Ubuntu:16.04:LTS / opencv

Package

Name
opencv
Purl
pkg:deb/ubuntu/opencv@2.4.9.1+dfsg-1.5ubuntu1.1?arch=source&distro=xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.4.9.1+dfsg-1.5ubuntu1.1

Affected versions

2.*

2.4.9+dfsg-1ubuntu6
2.4.9.1+dfsg-1.2ubuntu1
2.4.9.1+dfsg-1.3ubuntu1
2.4.9.1+dfsg-1.5ubuntu1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "libcv-dev"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "libcv2.4"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "libcvaux-dev"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "libcvaux2.4"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "libhighgui-dev"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "libhighgui2.4"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "libopencv-calib3d-dev"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "libopencv-calib3d2.4v5"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "libopencv-calib3d2.4v5-dbgsym"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "libopencv-contrib-dev"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "libopencv-contrib2.4v5"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "libopencv-contrib2.4v5-dbgsym"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "libopencv-core-dev"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "libopencv-core2.4v5"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "libopencv-core2.4v5-dbgsym"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "libopencv-dev"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "libopencv-dev-dbgsym"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "libopencv-features2d-dev"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "libopencv-features2d2.4v5"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "libopencv-features2d2.4v5-dbgsym"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "libopencv-flann-dev"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "libopencv-flann2.4v5"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "libopencv-flann2.4v5-dbgsym"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "libopencv-gpu-dev"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "libopencv-gpu2.4v5"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "libopencv-gpu2.4v5-dbgsym"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "libopencv-highgui-dev"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "libopencv-highgui2.4v5"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "libopencv-highgui2.4v5-dbgsym"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "libopencv-imgproc-dev"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "libopencv-imgproc2.4v5"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "libopencv-imgproc2.4v5-dbgsym"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "libopencv-legacy-dev"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "libopencv-legacy2.4v5"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "libopencv-legacy2.4v5-dbgsym"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "libopencv-ml-dev"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "libopencv-ml2.4v5"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "libopencv-ml2.4v5-dbgsym"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "libopencv-objdetect-dev"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "libopencv-objdetect2.4v5"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "libopencv-objdetect2.4v5-dbgsym"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "libopencv-ocl-dev"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "libopencv-ocl2.4v5"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "libopencv-ocl2.4v5-dbgsym"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "libopencv-photo-dev"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "libopencv-photo2.4v5"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "libopencv-photo2.4v5-dbgsym"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "libopencv-stitching-dev"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "libopencv-stitching2.4v5"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "libopencv-stitching2.4v5-dbgsym"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "libopencv-superres-dev"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "libopencv-superres2.4v5"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "libopencv-superres2.4v5-dbgsym"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "libopencv-ts-dev"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "libopencv-ts2.4v5"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "libopencv-ts2.4v5-dbgsym"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "libopencv-video-dev"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "libopencv-video2.4v5"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "libopencv-video2.4v5-dbgsym"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "libopencv-videostab-dev"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "libopencv-videostab2.4v5"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "libopencv-videostab2.4v5-dbgsym"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "libopencv2.4-java"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "libopencv2.4-jni"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "libopencv2.4-jni-dbgsym"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "opencv-data"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "opencv-doc"
        },
        {
            "binary_version": "2.4.9.1+dfsg-1.5ubuntu1.1",
            "binary_name": "python-opencv"
        }
    ]
}

Ubuntu:18.04:LTS / opencv

Package

Name
opencv
Purl
pkg:deb/ubuntu/opencv@3.2.0+dfsg-4ubuntu0.1?arch=source&distro=bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.2.0+dfsg-4ubuntu0.1

Affected versions

3.*

3.1.0+dfsg1-1~exp1ubuntu3
3.2.0+dfsg-3
3.2.0+dfsg-4
3.2.0+dfsg-4build1
3.2.0+dfsg-4build2

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "libopencv-calib3d-dev"
        },
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "libopencv-calib3d3.2"
        },
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "libopencv-calib3d3.2-dbgsym"
        },
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "libopencv-contrib-dev"
        },
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "libopencv-contrib3.2"
        },
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "libopencv-contrib3.2-dbgsym"
        },
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "libopencv-core-dev"
        },
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "libopencv-core3.2"
        },
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "libopencv-core3.2-dbgsym"
        },
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "libopencv-dev"
        },
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "libopencv-dev-dbgsym"
        },
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "libopencv-features2d-dev"
        },
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "libopencv-features2d3.2"
        },
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "libopencv-features2d3.2-dbgsym"
        },
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "libopencv-flann-dev"
        },
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "libopencv-flann3.2"
        },
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "libopencv-flann3.2-dbgsym"
        },
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "libopencv-highgui-dev"
        },
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "libopencv-highgui3.2"
        },
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "libopencv-highgui3.2-dbgsym"
        },
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "libopencv-imgcodecs-dev"
        },
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "libopencv-imgcodecs3.2"
        },
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "libopencv-imgcodecs3.2-dbgsym"
        },
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "libopencv-imgproc-dev"
        },
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "libopencv-imgproc3.2"
        },
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "libopencv-imgproc3.2-dbgsym"
        },
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "libopencv-ml-dev"
        },
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "libopencv-ml3.2"
        },
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "libopencv-ml3.2-dbgsym"
        },
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "libopencv-objdetect-dev"
        },
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "libopencv-objdetect3.2"
        },
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "libopencv-objdetect3.2-dbgsym"
        },
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "libopencv-photo-dev"
        },
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "libopencv-photo3.2"
        },
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "libopencv-photo3.2-dbgsym"
        },
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "libopencv-shape-dev"
        },
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "libopencv-shape3.2"
        },
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "libopencv-shape3.2-dbgsym"
        },
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "libopencv-stitching-dev"
        },
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "libopencv-stitching3.2"
        },
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "libopencv-stitching3.2-dbgsym"
        },
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "libopencv-superres-dev"
        },
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "libopencv-superres3.2"
        },
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "libopencv-superres3.2-dbgsym"
        },
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "libopencv-ts-dev"
        },
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "libopencv-video-dev"
        },
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "libopencv-video3.2"
        },
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "libopencv-video3.2-dbgsym"
        },
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "libopencv-videoio-dev"
        },
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "libopencv-videoio3.2"
        },
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "libopencv-videoio3.2-dbgsym"
        },
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "libopencv-videostab-dev"
        },
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "libopencv-videostab3.2"
        },
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "libopencv-videostab3.2-dbgsym"
        },
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "libopencv-viz-dev"
        },
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "libopencv-viz3.2"
        },
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "libopencv-viz3.2-dbgsym"
        },
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "libopencv3.2-java"
        },
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "libopencv3.2-jni"
        },
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "libopencv3.2-jni-dbgsym"
        },
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "opencv-data"
        },
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "opencv-doc"
        },
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "python-opencv"
        },
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "python-opencv-dbgsym"
        },
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "python3-opencv"
        },
        {
            "binary_version": "3.2.0+dfsg-4ubuntu0.1",
            "binary_name": "python3-opencv-dbgsym"
        }
    ]
}