CVE-2023-2731

Source
https://nvd.nist.gov/vuln/detail/CVE-2023-2731
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-2731.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2023-2731
Downstream
Related
Published
2023-05-17T22:15:11Z
Modified
2025-09-19T14:27:22.639978Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

A NULL pointer dereference flaw was found in Libtiff's LZWDecode() function in the libtiff/tif_lzw.c file. This flaw allows a local attacker to craft specific input data that can cause the program to dereference a NULL pointer when decompressing a TIFF format file, resulting in a program crash or denial of service.

References

Affected packages

Git / github.com/libsdl-org/libtiff

Affected ranges

Type
GIT
Repo
https://github.com/libsdl-org/libtiff
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
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.10
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
v4.1.0
v4.2.0
v4.3.0
v4.3.0rc1
v4.4.0
v4.4.0rc1
v4.5.0
v4.5.0rc1
v4.5.0rc2
v4.5.0rc3

Database specific

{
    "vanir_signatures": [
        {
            "signature_type": "Function",
            "target": {
                "function": "LZWDecode",
                "file": "libtiff/tif_lzw.c"
            },
            "source": "https://github.com/libsdl-org/libtiff/commit/9be22b639ea69e102d3847dca4c53ef025e9527b",
            "id": "CVE-2023-2731-9e1e27c4",
            "signature_version": "v1",
            "deprecated": false,
            "digest": {
                "function_hash": "245001074140038746663841580373533557202",
                "length": 5381.0
            }
        },
        {
            "signature_type": "Line",
            "target": {
                "file": "libtiff/tif_lzw.c"
            },
            "source": "https://github.com/libsdl-org/libtiff/commit/9be22b639ea69e102d3847dca4c53ef025e9527b",
            "id": "CVE-2023-2731-c876fe5a",
            "signature_version": "v1",
            "deprecated": false,
            "digest": {
                "line_hashes": [
                    "47863501326480845300155871873838596185",
                    "314431711509528890513175766027303822251",
                    "20538631509312112594542715258870283980",
                    "269723995513629474282568554348073905124",
                    "240439446250830314907397831766668572994",
                    "121194476423448759737583876339525208141",
                    "286627866093491271578526113972452842040",
                    "250501192524177400843401446766363376163"
                ],
                "threshold": 0.9
            }
        }
    ]
}