{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-142504",
        "assignerOrgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10",
        "state": "PUBLISHED",
        "assignerShortName": "VulnCheck",
        "dateReserved": "2026-12-02T17:20:50.757Z",
        "datePublished": "2026-12-02T17:42:23.352Z",
        "dateUpdated": "2026-12-02T17:42:23.352Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10",
                "shortName": "VulnCheck",
                "dateUpdated": "2026-12-02T17:42:23.352Z"
            },
            "datePublic": "2026-10-05T00:00:00.000Z",
            "title": "libheif before 1.23.6 Bit Depth Mismatch Leads to Out-of-Bounds Read",
            "descriptions": [
                {
                    "lang": "en",
                    "value": "libheif before 1.23.6 fails to verify that decoded images match the bit depth reported by the image handle, causing out-of-bounds reads in calling applications. Attackers can supply crafted HEIF files with contradicting hvcC or av1C boxes, mixed-depth grid tiles, or iovl overlays to crash applications or disclose memory."
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "lang": "en",
                            "description": "Improper Validation of Specified Quantity in Input",
                            "cweId": "CWE-1284",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "vendor": "strukturag",
                    "product": "libheif",
                    "defaultStatus": "unaffected",
                    "versions": [
                        {
                            "version": "0",
                            "lessThan": "1.23.6",
                            "status": "affected",
                            "versionType": "semver"
                        }
                    ],
                    "packageURL": "pkg:github/strukturag/libheif",
                    "repo": "https://github.com/strukturag/libheif"
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:a:struktur:libheif:*:*:*:*:*:*:*:*",
                                    "versionEndExcluding": "1.23.6"
                                }
                            ]
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "format": "CVSS",
                    "cvssV4_0": {
                        "version": "4.0",
                        "vectorString": "CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N",
                        "attackVector": "NETWORK",
                        "attackComplexity": "HIGH",
                        "attackRequirements": "PRESENT",
                        "privilegesRequired": "NONE",
                        "userInteraction": "PASSIVE",
                        "vulnConfidentialityImpact": "LOW",
                        "vulnIntegrityImpact": "NONE",
                        "vulnAvailabilityImpact": "HIGH",
                        "subConfidentialityImpact": "NONE",
                        "subIntegrityImpact": "NONE",
                        "subAvailabilityImpact": "NONE",
                        "baseScore": 6,
                        "baseSeverity": "MEDIUM"
                    }
                },
                {
                    "format": "CVSS",
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:H",
                        "attackVector": "NETWORK",
                        "attackComplexity": "HIGH",
                        "privilegesRequired": "NONE",
                        "userInteraction": "REQUIRED",
                        "scope": "UNCHANGED",
                        "confidentialityImpact": "LOW",
                        "integrityImpact": "NONE",
                        "availabilityImpact": "HIGH",
                        "baseScore": 5.9,
                        "baseSeverity": "MEDIUM"
                    }
                }
            ],
            "references": [
                {
                    "url": "https://github.com/strukturag/libheif/security/advisories/GHSA-vv35-6hxg-95x8",
                    "tags": [
                        "vendor-advisory"
                    ],
                    "name": "GitHub Security Advisory (GHSA-vv35-6hxg-95x8)"
                },
                {
                    "url": "https://github.com/strukturag/libheif/commit/770b0d8d7e1e57b0f4d2b8dc53ff3f82b712fbac",
                    "tags": [
                        "patch"
                    ]
                },
                {
                    "url": "https://github.com/strukturag/libheif/commit/64a5bba75ad64aa8c010b8ad61e32091025442b3",
                    "tags": [
                        "patch"
                    ]
                },
                {
                    "url": "https://github.com/strukturag/libheif/releases/tag/v1.23.6",
                    "tags": [
                        "release-notes"
                    ],
                    "name": "libheif v1.23.6 Release Notes"
                },
                {
                    "url": "https://github.com/strukturag/libheif/blob/v1.23.5/libheif/image-items/grid.cc#L590",
                    "tags": [
                        "technical-description"
                    ]
                },
                {
                    "url": "https://www.vulncheck.com/advisories/libheif-before-1.23.6-bit-depth-mismatch-leads-to-out-of-bounds-read",
                    "name": "VulnCheck Advisory: libheif before 1.23.6 Bit Depth Mismatch Leads to Out-of-Bounds Read",
                    "tags": [
                        "third-party-advisory"
                    ]
                }
            ],
            "credits": [
                {
                    "lang": "en",
                    "value": "Bartłomiej Dmitruk (striga.ai)",
                    "type": "finder"
                }
            ],
            "x_generator": {
                "engine": "vulncheck-endgame"
            }
        }
    }
}