CVE-2026-142502

Source
https://cve.org/CVERecord?id=CVE-2026-142502
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142502.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-142502
Aliases
  • GHSA-q7mw-2fmm-5q94
Published
2026-12-02T17:42:25Z
Modified
2026-12-02T19:00:12Z
Severity
  • 7.1 (High) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N CVSS Calculator
Summary
libheif 1.16.0 before 1.23.6 Out-of-Bounds Read via Sharp-YUV Conversion
Details

libheif 1.16.0 before 1.23.6 contains an out-of-bounds read vulnerability in Op_Any_RGB_to_YCbCr_420_Sharp::convert_colorspace() that passes unchecked 10-bit or 12-bit RGB samples to SharpYuvConvert(). Attackers can supply a crafted HEIF file producing samples above the declared bit depth so libsharpyuv gamma table lookups read out of bounds, crashing the process or leaking memory into output pixels.

Database specific
{
    "cna_assigner":  "VulnCheck",
    "cwe_ids":  [
        "CWE-129"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142502.json"
}
References

Affected packages

Git / github.com/strukturag/libheif

Affected ranges

Type
GIT
Repo
https://github.com/strukturag/libheif
Events
Database specific
Show details
{
    "extracted_events":  [
        {
            "range":  [
                {
                    "introduced":  "1.16.0"
                },
                {
                    "fixed":  "1.23.6"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StandardRange"
        },
        {
            "range":  [
                {
                    "fixed":  "8dc32399dea3e6e9e6b4a3acf270feb80008649c"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        },
        {
            "original_tag":  "v1.23.6",
            "range":  [
                {
                    "fixed":  "f81f28ac014b1c28dee483ac45b72c6b05bc421a"
                }
            ],
            "source":  "REFERENCES_TAG"
        }
    ]
}

Affected versions

v1.*
v1.16.0
v1.16.1
v1.16.2
v1.17.0
v1.17.1
v1.17.2
v1.17.3
v1.17.4
v1.17.5
v1.17.6
v1.18.0
v1.18.0-rc1
v1.19.0
v1.19.1
v1.19.2
v1.19.3
v1.19.4
v1.19.5
v1.20.0
v1.20.1
v1.21.0
v1.21.1
v1.21.2
v1.22.0
v1.22.1
v1.22.2
v1.23.0
v1.23.1
v1.23.2
v1.23.3
v1.23.4
v1.23.5

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142502.json"