CVE-2026-62377
Full vulnerability record from the local CVENow database.
Description
libheif is a HEIF and AVIF file format decoder and encoder. In 1.23.0 and earlier, a crafted HEIF sequence accepted by heif_context_read_from_memory() can leave the context with no registered sequence tracks and crash when heif_context_get_track(ctx, 0) is called. HeifContext::get_track() in libheif/context.cc executes assert(has_sequence()) before its normal error handling, so assert-enabled builds abort instead of allowing the public wrapper in libheif/api/libheif/heif_sequences.cc to return null. In release builds, removing the assertion lets the track_id zero path dereference m_tracks.begin()->second on an empty map, which is undefined behavior and typically crashes. The issue is reachable through documented public APIs after parsing attacker-controlled bytes. This issue is fixed in version 1.23.1.
View original CVE JSON
{
"id": "CVE-2026-62377",
"sourceIdentifier": "[email protected]",
"published": "2026-08-18T22:17:03.167",
"lastModified": "2026-10-22T16:09:59.560",
"vulnStatus": "Deferred",
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "libheif is a HEIF and AVIF file format decoder and encoder. In 1.23.0 and earlier, a crafted HEIF sequence accepted by heif_context_read_from_memory() can leave the context with no registered sequence tracks and crash when heif_context_get_track(ctx, 0) is called. HeifContext::get_track() in libheif/context.cc executes assert(has_sequence()) before its normal error handling, so assert-enabled builds abort instead of allowing the public wrapper in libheif/api/libheif/heif_sequences.cc to return null. In release builds, removing the assertion lets the track_id zero path dereference m_tracks.begin()->second on an empty map, which is undefined behavior and typically crashes. The issue is reachable through documented public APIs after parsing attacker-controlled bytes. This issue is fixed in version 1.23.1."
},
{
"lang": "es",
"value": "libheif es un decodificador y codificador de formato de archivo HEIF y AVIF. En la versión 1.23.0 y anteriores, una secuencia HEIF manipulada aceptada por heif_context_read_from_memory() puede dejar el contexto sin pistas de secuencia registradas y fallar cuando se llama a heif_context_get_track(ctx, 0). HeifContext::get_track() en libheif/context.cc ejecuta assert(has_sequence()) antes de su manejo de errores normal, por lo que las compilaciones con aserciones habilitadas abortan en lugar de permitir que el envoltorio público en libheif/api/libheif/heif_sequences.cc devuelva nulo. En las compilaciones de lanzamiento, eliminar la aserción permite que la ruta con track_id cero desreferencie m_tracks.begin() -> second en un mapa vacío, lo cual es un comportamiento indefinido y típicamente falla. El problema es alcanzable a través de APIs públicas documentadas después de analizar bytes controlados por el atacante. Este problema está solucionado en la versión 1.23.1."
}
],
"affected": [
{
"source": "[email protected]",
"affectedData": [
{
"vendor": "strukturag",
"product": "libheif",
"versions": [
{
"version": "< 1.23.1",
"status": "affected"
}
]
}
]
}
],
"metrics": {
"cvssMetricV31": [
{
"source": "[email protected]",
"type": "Secondary",
"cvssData": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L",
"baseScore": 4.3,
"baseSeverity": "MEDIUM",
"attackVector": "NETWORK",
"attackComplexity": "LOW",
"privilegesRequired": "NONE",
"userInteraction": "REQUIRED",
"scope": "UNCHANGED",
"confidentialityImpact": "NONE",
"integrityImpact": "NONE",
"availabilityImpact": "LOW"
},
"exploitabilityScore": 2.8,
"impactScore": 1.4
}
],
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"timestamp": "2026-08-19T18:03:45.406952Z",
"id": "CVE-2026-62377",
"options": [
{
"exploitation": "none"
},
{
"automatable": "no"
},
{
"technicalImpact": "partial"
}
],
"role": "CISA Coordinator",
"version": "2.0.3"
}
}
]
},
"weaknesses": [
{
"source": "[email protected]",
"type": "Secondary",
"description": [
{
"lang": "en",
"value": "CWE-617"
},
{
"lang": "en",
"value": "CWE-908"
}
]
}
],
"references": [
{
"url": "https://github.com/strukturag/libheif/commit/e1a0bc1c1ae74f8075eaca30a1cdb2b9bee698d3",
"source": "[email protected]"
},
{
"url": "https://github.com/strukturag/libheif/issues/1844",
"source": "[email protected]"
},
{
"url": "https://github.com/strukturag/libheif/releases/tag/v1.23.1",
"source": "[email protected]"
},
{
"url": "https://github.com/strukturag/libheif/security/advisories/GHSA-9ww4-9v47-m7pj",
"source": "[email protected]"
}
]
}