CVE-2023-2731

Source
https://cve.org/CVERecord?id=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-17T00:00:00Z
Modified
2026-09-10T14:34:35Z
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.

Database specific
{
    "cna_assigner":  "redhat",
    "cwe_ids":  [
        "CWE-476"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/2xxx/CVE-2023-2731.json"
}
References

Affected packages

Git / github.com/libsdl-org/libtiff

Affected ranges

Type
GIT
Repo
https://github.com/libsdl-org/libtiff
Events
Database specific
Show details
{
    "extracted_events":  [
        {
            "introduced":  "Fixed in libtiff v4.5.0"
        },
        {
            "last_affected":  "Fixed in libtiff v4.5.0"
        }
    ],
    "source":  [
        "AFFECTED_FIELD",
        "REFERENCES"
    ]
}
Type
GIT
Repo
https://gitlab.com/libtiff/libtiff
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
Show details
{
    "cpe":  "cpe:2.3:a:libtiff:libtiff:*:*:*:*:*:*:*:*",
    "extracted_events":  [
        {
            "introduced":  "0"
        },
        {
            "fixed":  "4.5.0"
        }
    ],
    "source":  "CPE_RANGE"
}

Affected versions

Fixed in libtiff v4.*
Fixed in libtiff v4.5.0
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.0rc2
v4.5.0rc3

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-2731.json"
vanir_signatures
[
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "245001074140038746663841580373533557202",
            "length":  5381
        },
        "id":  "CVE-2023-2731-9e1e27c4",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/libsdl-org/libtiff/commit/9be22b639ea69e102d3847dca4c53ef025e9527b",
        "target":  {
            "file":  "libtiff/tif_lzw.c",
            "function":  "LZWDecode"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "47863501326480845300155871873838596185",
                "314431711509528890513175766027303822251",
                "20538631509312112594542715258870283980",
                "269723995513629474282568554348073905124",
                "240439446250830314907397831766668572994",
                "121194476423448759737583876339525208141",
                "286627866093491271578526113972452842040",
                "250501192524177400843401446766363376163"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2023-2731-c876fe5a",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/libsdl-org/libtiff/commit/9be22b639ea69e102d3847dca4c53ef025e9527b",
        "target":  {
            "file":  "libtiff/tif_lzw.c"
        }
    }
]
vanir_signatures_modified
"2026-09-10T14:34:35Z"