CVE-2017-9142

Source
https://nvd.nist.gov/vuln/detail/CVE-2017-9142
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2017-9142.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2017-9142
Downstream
Related
Published
2017-05-22T14:29:00Z
Modified
2025-10-15T09:11:54.844107Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

In ImageMagick 7.0.5-7 Q16, a crafted file could trigger an assertion failure in the WriteBlob function in MagickCore/blob.c because of missing checks in the ReadOneJNGImage function in coders/png.c.

References

Affected packages

Git / github.com/imagemagick/imagemagick

Affected ranges

Type
GIT
Repo
https://github.com/imagemagick/imagemagick
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

7.*

7.0.1-0
7.0.1-1
7.0.1-10
7.0.1-2
7.0.1-3
7.0.1-4
7.0.1-5
7.0.1-6
7.0.1-7
7.0.1-8
7.0.1-9
7.0.2-0
7.0.2-1
7.0.2-10
7.0.2-2
7.0.2-3
7.0.2-4
7.0.2-5
7.0.2-6
7.0.2-7
7.0.2-8
7.0.2-9
7.0.3-0
7.0.3-1
7.0.3-10
7.0.3-2
7.0.3-3
7.0.3-4
7.0.3-5
7.0.3-6
7.0.3-7
7.0.3-8
7.0.3-9
7.0.4-0
7.0.4-1
7.0.4-10
7.0.4-2
7.0.4-3
7.0.4-4
7.0.4-5
7.0.4-6
7.0.4-7
7.0.4-8
7.0.4-9
7.0.5-0
7.0.5-1
7.0.5-2
7.0.5-3
7.0.5-4
7.0.5-5
7.0.5-6

Database specific

vanir_signatures

[
    {
        "signature_type": "Function",
        "id": "CVE-2017-9142-244169d5",
        "source": "https://github.com/imagemagick/imagemagick/commit/f0232a2a45dfd003c1faf6079497895df3ab0ee1",
        "signature_version": "v1",
        "target": {
            "function": "ReadOneJNGImage",
            "file": "coders/png.c"
        },
        "digest": {
            "function_hash": "10685912637953292967486052057510858512",
            "length": 13944.0
        },
        "deprecated": false
    },
    {
        "signature_type": "Line",
        "id": "CVE-2017-9142-f5812a24",
        "source": "https://github.com/imagemagick/imagemagick/commit/f0232a2a45dfd003c1faf6079497895df3ab0ee1",
        "signature_version": "v1",
        "target": {
            "file": "coders/png.c"
        },
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "55354417517607064168098092458754790588",
                "164047965787487540201063060851091045772",
                "303364345114828104705308682115659084046",
                "179387021110365750541732828470146625576",
                "294720302399277623319787137900643143319",
                "24882106847455866198505122312345103341"
            ]
        },
        "deprecated": false
    }
]