CVE-2018-5784

Source
https://cve.org/CVERecord?id=CVE-2018-5784
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2018-5784.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2018-5784
Downstream
Related
Published
2018-01-19T08:29:00Z
Modified
2026-05-28T08:02:47Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

In LibTIFF 4.0.9, there is an uncontrolled resource consumption in the TIFFSetDirectory function of tif_dir.c. Remote attackers could leverage this vulnerability to cause a denial of service via a crafted tif file. This occurs because the declared number of directory entries is not validated against the actual number of directory entries.

Database specific
{
    "unresolved_ranges":  [
        {
            "cpes":  [
                "cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:*",
                "cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*",
                "cpe:2.3:o:canonical:ubuntu_linux:17.10:*:*:*:*:*:*:*"
            ],
            "extracted_events":  [
                {
                    "last_affected":  "14.04"
                },
                {
                    "last_affected":  "16.04"
                },
                {
                    "last_affected":  "17.10"
                }
            ],
            "source":  "CPE_FIELD",
            "vendor_product":  "canonical:ubuntu_linux"
        },
        {
            "cpes":  [
                "cpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:*",
                "cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*",
                "cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"
            ],
            "extracted_events":  [
                {
                    "last_affected":  "7.0"
                },
                {
                    "last_affected":  "8.0"
                },
                {
                    "last_affected":  "9.0"
                }
            ],
            "source":  "CPE_FIELD",
            "vendor_product":  "debian:debian_linux"
        }
    ]
}
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
Last Affected
Database specific
Show details
{
    "cpe":  "cpe:2.3:a:libtiff:libtiff:4.0.9:*:*:*:*:*:*:*",
    "extracted_events":  [
        {
            "introduced":  "0"
        },
        {
            "last_affected":  "4.0.9"
        }
    ],
    "source":  "CPE_FIELD"
}

Affected versions

Other
Pre360
Release-
Release-3-7-0
Release-v3-5-
Release-v3-5-4
Release-v3-5-5
Release-v3-5-7
Release-v3-6-0
Release-v3-6-0beta2
Release-v3-6-1
Release-v3-7-0-alpha
Release-v3-7-0beta
Release-v3-7-0beta2
Release-v3-7-1
Release-v3-7-2
Release-v3-7-3
Release-v3-7-4
Release-v3-8-0
Release-v3-8-1
Release-v3-8-2
Release-v4-0-0
Release-v4-0-0alpha
Release-v4-0-0alpha4
Release-v4-0-0alpha5
Release-v4-0-0alpha6
Release-v4-0-0beta7
Release-v4-0-1
Release-v4-0-2
Release-v4-0-3
Release-v4-0-4
Release-v4-0-4beta
Release-v4-0-5
Release-v4-0-6
Release-v4-0-7
Release-v4-0-8
Release-v4-0-9

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2018-5784.json"

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
Database specific
Show details
{
    "source":  "REFERENCES"
}

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

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2018-5784.json"
vanir_signatures
[
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "75831772826903519163531091244361149601",
                "78375691951534252794824230083328114641",
                "293301950844137652162995674059519515684",
                "199221968750314404018989121865056121067",
                "5327546639558208921209613398130438931",
                "131256751223841078268448253529362595545",
                "330585039822195982558293263417307448225"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2018-5784-32fcc861",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://gitlab.com/libtiff/libtiff@473851d211cf8805a161820337ca74cc9615d6ef",
        "target":  {
            "file":  "tools/tiff2pdf.c"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "213609115515777586211141951442237006584",
            "length":  5724
        },
        "id":  "CVE-2018-5784-4a632204",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://gitlab.com/libtiff/libtiff@473851d211cf8805a161820337ca74cc9615d6ef",
        "target":  {
            "file":  "tools/tiff2pdf.c",
            "function":  "t2p_read_tiff_init"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "217941978878947320029816834975166642295",
            "length":  1584
        },
        "id":  "CVE-2018-5784-6a8edbef",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://gitlab.com/libtiff/libtiff@473851d211cf8805a161820337ca74cc9615d6ef",
        "target":  {
            "file":  "contrib/addtiffo/tif_overview.c",
            "function":  "TIFF_WriteOverview"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "280118026582751531607203991365373546876",
                "43719099175510905525229923302533711661",
                "70680763122485257495134726048061920842",
                "57881666676319679057535677400894311885",
                "106582711542385200867802239147585812831",
                "132354293960869030127950657134287496699",
                "55761791276588461682510708734136367267",
                "337647114143564325189136562211559769739",
                "223325157716770488910409838864759636822",
                "42083156524159150658991999267604601331",
                "204171970194303696611234922170369988794"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2018-5784-8be40752",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://gitlab.com/libtiff/libtiff@473851d211cf8805a161820337ca74cc9615d6ef",
        "target":  {
            "file":  "contrib/addtiffo/tif_overview.c"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "172353140212210332738028602722684502789",
                "253628019908197467971345379500435746871",
                "314230488715923400105651815237839916662",
                "77322807136046078891198257595381707816",
                "69718155279689978593491466533212242267",
                "216893751462658506253463015470644614992",
                "302612334229579431412840180403522687990",
                "63355102319794581852982502112322842388",
                "228539468221171595535354674831310576492",
                "19616000769208776864051079112019526069"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2018-5784-af240c7b",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://gitlab.com/libtiff/libtiff@473851d211cf8805a161820337ca74cc9615d6ef",
        "target":  {
            "file":  "tools/tiffcrop.c"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "98152871295658607399717771184892726884",
            "length":  5554
        },
        "id":  "CVE-2018-5784-d6b69b9f",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://gitlab.com/libtiff/libtiff@473851d211cf8805a161820337ca74cc9615d6ef",
        "target":  {
            "file":  "tools/tiffcrop.c",
            "function":  "main"
        }
    }
]
vanir_signatures_modified
"2026-05-28T08:02:47Z"