CVE-2018-18557

Source
https://nvd.nist.gov/vuln/detail/CVE-2018-18557
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2018-18557.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2018-18557
Downstream
Related
Published
2018-10-22T16:29:00Z
Modified
2025-11-03T20:05:45.811086Z
Severity
  • 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

LibTIFF 3.9.3, 3.9.4, 3.9.5, 3.9.6, 3.9.7, 4.0.0alpha4, 4.0.0alpha5, 4.0.0alpha6, 4.0.0beta7, 4.0.0, 4.0.1, 4.0.2, 4.0.3, 4.0.4, 4.0.4beta, 4.0.5, 4.0.6, 4.0.7, 4.0.8 and 4.0.9 (with JBIG enabled) decodes arbitrarily-sized JBIG into a buffer, ignoring the buffer size, which leads to a tif_jbig.c JBIGDecode out-of-bounds write.

References

Affected packages

Git / github.com/vadz/libtiff

Affected ranges

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

Git / gitlab.com/libtiff/libtiff

Affected ranges

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

Affected versions

v3.*

v3.5.3
v3.5.4
v3.5.5
v3.5.7
v3.6.0
v3.6.0beta2
v3.6.1
v3.7.0
v3.7.0alpha
v3.7.0beta
v3.7.0beta2
v3.7.1
v3.7.2
v3.7.3
v3.7.4
v3.8.0
v3.8.1
v3.8.2

v4.*

v4.0.0
v4.0.0alpha
v4.0.0alpha4
v4.0.0alpha5
v4.0.0alpha6
v4.0.0beta7
v4.0.1
v4.0.2
v4.0.3
v4.0.4
v4.0.4beta
v4.0.5
v4.0.6
v4.0.7
v4.0.8
v4.0.9

Database specific

vanir_signatures

[
    {
        "id": "CVE-2018-18557-1108261b",
        "signature_type": "Function",
        "signature_version": "v1",
        "target": {
            "file": "libtiff/tif_read.c",
            "function": "TIFFSeek"
        },
        "deprecated": false,
        "digest": {
            "length": 2108.0,
            "function_hash": "190085066915173618420271029009044133716"
        },
        "source": "https://gitlab.com/libtiff/libtiff@681748ec2f5ce88da5f9fa6831e1653e46af8a66"
    },
    {
        "id": "CVE-2018-18557-3e17f8fa",
        "signature_type": "Function",
        "signature_version": "v1",
        "target": {
            "file": "libtiff/tif_jbig.c",
            "function": "JBIGDecode"
        },
        "deprecated": false,
        "digest": {
            "length": 921.0,
            "function_hash": "210057897584904621344828365436975109649"
        },
        "source": "https://gitlab.com/libtiff/libtiff@681748ec2f5ce88da5f9fa6831e1653e46af8a66"
    },
    {
        "id": "CVE-2018-18557-cdee40b7",
        "signature_type": "Line",
        "signature_version": "v1",
        "target": {
            "file": "libtiff/tif_jbig.c"
        },
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "247914630961059845656055234807818514916",
                "104292445807137112795547946875491026043",
                "62304014052893256128293983457188559594",
                "126344660853215292369719481831952051831",
                "130712379746216526845220217345770107868",
                "308062318645547366851648548810072915472",
                "2601806554458245434522816132305404757",
                "257898619381568456149200277126843576135",
                "186997235240199378592387028722512846019",
                "130000896291107843868048830197794860294",
                "136173744248453040620763930564091389907",
                "165429502352344218510610847841996120239",
                "164265013247130562008768328781500263781",
                "22599428764585318724131021748277002860",
                "111620650723490747315791546503767077824",
                "325377410113415208322057967314877566308",
                "310824384682160970219037171442251074398",
                "187666075236593264981823892895993626084",
                "52544923355034241730146699058582254156",
                "224980861998260872213169659322193589295"
            ],
            "threshold": 0.9
        },
        "source": "https://gitlab.com/libtiff/libtiff@681748ec2f5ce88da5f9fa6831e1653e46af8a66"
    },
    {
        "id": "CVE-2018-18557-d12aa83d",
        "signature_type": "Line",
        "signature_version": "v1",
        "target": {
            "file": "libtiff/tif_read.c"
        },
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "240573385735737720604871777269636986831",
                "202493009156054802609509606826718294789",
                "278672465859123006666535992002608320826",
                "145375129124672136049697958460867457622"
            ],
            "threshold": 0.9
        },
        "source": "https://gitlab.com/libtiff/libtiff@681748ec2f5ce88da5f9fa6831e1653e46af8a66"
    }
]