CVE Explorer
CVE-2025-68431
libheif is an HEIF and AVIF file format decoder and encoder. Prior to version 1.21.0, a crafted HEIF that exercises the overlay image item path triggers a heap buffer over-read in `HeifPixelImage::overlay()`. The function computes a negative row length (likely from an unclipped overlay rectangle or invalid offsets), which then underflows when converted to `size_t` and is passed to `memcpy`, causing a very large read past the end of the source plane and a crash. Version 1.21.0 contains a patch. A
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
1
Preserved source conflicts
No provider value was silently selected as the winner.
cwe · 2 assertions
{"cweId":"CWE-125","description":"CWE-125: Out-of-bounds Read","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:36f29e9e23394f90c02dbcdd4ab2cde836d6ca447f3fbf598394e20d96dface8 · sha256:b312381185b014de… · /containers/cna/problemTypes/0/descriptions/0
{"cweId":"CWE-190","description":"CWE-190: Integer Overflow or Wraparound","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:36f29e9e23394f90c02dbcdd4ab2cde836d6ca447f3fbf598394e20d96dface8 · sha256:b312381185b014de… · /containers/cna/problemTypes/1/descriptions/0
Affected products and versions
1 source assertion{"product":"libheif","vendor":"strukturag","versions":[{"status":"affected","version":"< 1.21.0"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:36f29e9e23394f90c02dbcdd4ab2cde836d6ca447f3fbf598394e20d96dface8 · sha256:b312381185b014de… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":6.5,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:36f29e9e23394f90c02dbcdd4ab2cde836d6ca447f3fbf598394e20d96dface8 · sha256:b312381185b014de… · /containers/cna/metrics/0/cvssV3_1
CWE assertions
2 source assertions{"cweId":"CWE-125","description":"CWE-125: Out-of-bounds Read","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:36f29e9e23394f90c02dbcdd4ab2cde836d6ca447f3fbf598394e20d96dface8 · sha256:b312381185b014de… · /containers/cna/problemTypes/0/descriptions/0
{"cweId":"CWE-190","description":"CWE-190: Integer Overflow or Wraparound","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:36f29e9e23394f90c02dbcdd4ab2cde836d6ca447f3fbf598394e20d96dface8 · sha256:b312381185b014de… · /containers/cna/problemTypes/1/descriptions/0
Source references
3 source assertions{"name":"https://github.com/strukturag/libheif/commit/b8c12a7b70f46c9516711a988483bed377b78d46","tags":["x_refsource_MISC"],"url":"https://github.com/strukturag/libheif/commit/b8c12a7b70f46c9516711a988483bed377b78d46"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:36f29e9e23394f90c02dbcdd4ab2cde836d6ca447f3fbf598394e20d96dface8 · sha256:b312381185b014de… · /containers/cna/references/1
{"name":"https://github.com/strukturag/libheif/releases/tag/v1.21.0","tags":["x_refsource_MISC"],"url":"https://github.com/strukturag/libheif/releases/tag/v1.21.0"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:36f29e9e23394f90c02dbcdd4ab2cde836d6ca447f3fbf598394e20d96dface8 · sha256:b312381185b014de… · /containers/cna/references/2
{"name":"https://github.com/strukturag/libheif/security/advisories/GHSA-j87x-4gmq-cqfq","tags":["x_refsource_CONFIRM"],"url":"https://github.com/strukturag/libheif/security/advisories/GHSA-j87x-4gmq-cqfq"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:36f29e9e23394f90c02dbcdd4ab2cde836d6ca447f3fbf598394e20d96dface8 · sha256:b312381185b014de… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.