{"schemaVersion":4,"id":"CVE-2026-50142","aliases":["ALPINE-CVE-2026-50142","UBUNTU-CVE-2026-50142","DEBIAN-CVE-2026-50142"],"status":"published","duplicateOf":null,"title":"libheif: unbounded heap allocation in HEIF sequence parser (stsz fixed-size mode missing bound check)","description":"libheif is a HEIF and AVIF file format decoder and encoder. From 1.19.0 until 1.23.0, a crafted HEIF sequence accepted by heif_context_read_from_memory() with the msf1 sequence brand can cause unbounded heap allocation. In libheif/sequences/seq_boxes.cc, Box_stsz::parse() applies max_sequence_frames only to variable-size samples, so fixed-size mode accepts an attacker-controlled sample_count without a bound. In libheif/sequences/track.cc, Track::load() also adds current_sample_idx and samples_per_chunk in 32-bit arithmetic, allowing the consistency check to be bypassed by wraparound. The resulting values reach the Chunk::Chunk() allocation path, which can consume gigabytes of memory and crash or stall the process through memory exhaustion. This issue is fixed in version 1.23.0.","dates":{"published":"2026-08-18T21:18:03.652Z","modified":"2026-08-19T18:51:48.615Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Alpine","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00495,"percentile":0.44075,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":-0.15999999999999998,"baselineDate":"2026-11-04T00:00:00.000Z","baselineScore":0.00655},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00556,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00556,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00556,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00556,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00556,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00556,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00556,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00556,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00556,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00556,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-10-23T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-10-24T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-10-25T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-10-26T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-10-27T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-10-28T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-10-29T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-10-30T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-10-31T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-11-01T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-11-02T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-11-03T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-11-04T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00495,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00495,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00495,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00495,"percentile":0.44075}],"last30":[{"date":"2026-11-04T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00655,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00495,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00495,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00495,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00495,"percentile":0.44075}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-190","name":"Integer Overflow or Wraparound","description":"The product performs a calculation that can\n         produce an integer overflow or wraparound when the logic\n         assumes that the resulting value will always be larger than\n         the original value. This occurs when an integer value is\n         incremented to a value that is too large to store in the\n         associated representation. When this occurs, the value may\n         become a very small or negative number.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/190.html"},{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling","description":"The product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/770.html"}],"affected":[{"vendor":"alpine","product":"libheif","name":"libheif","label":"libheif","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/libheif","purlType":"apk","versions":[{"text":"< 1.23.0-r0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"1.23.0-r0","endInclusive":false}}],"versionsText":"< 1.23.0-r0","eol":null,"hubHref":null},{"vendor":"debian","product":"libheif","name":"libheif","label":"libheif","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/libheif","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}},{"text":"< 1.23.1-1","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"1.23.1-1","endInclusive":false}}],"versionsText":"All versions (No fix recorded) | < 1.23.1-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"libheif","name":"libheif","label":"libheif","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/libheif","purlType":"deb","versions":[{"text":"< 1.20.2-1ubuntu0.6","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"1.20.2-1ubuntu0.6","endInclusive":false}},{"text":"< 1.21.2-3ubuntu0.3","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"1.21.2-3ubuntu0.3","endInclusive":false}}],"versionsText":"< 1.20.2-1ubuntu0.6 | < 1.21.2-3ubuntu0.3","eol":null,"hubHref":null},{"vendor":"strukturag","product":"libheif","name":"libheif","label":"libheif","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 1.19.0, < 1.23.0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"1.19.0","startInclusive":true,"end":"1.23.0","endInclusive":false}}],"versionsText":"≥ 1.19.0, < 1.23.0","eol":null,"hubHref":"/vendor/strukturag/libheif"}],"affectedCount":4,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/strukturag/libheif/security/advisories/GHSA-jvmp-j3cw-84mh","label":"github.com/strukturag/libheif/security/advisories/GHSA-jvmp-j3cw-84mh","hostname":"github.com","tags":["X Refsource CONFIRM","REPORT"]},{"url":"https://github.com/strukturag/libheif/commit/a6caa38f7a70d66dc9caec2a7bfe20935b32c622","label":"github.com/strukturag/libheif/commit/a6caa38f7a70d66dc9caec2a7bfe20935b32c622","hostname":"github.com","tags":["X Refsource MISC"]},{"url":"https://github.com/strukturag/libheif/releases/tag/v1.23.0","label":"github.com/strukturag/libheif/releases/tag/v1.23.0","hostname":"github.com","tags":["X Refsource MISC"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2026-50142","label":"security.alpinelinux.org/vuln/CVE-2026-50142","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2026-50142","label":"ubuntu.com/security/CVE-2026-50142","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-50142","label":"www.cve.org/CVERecord?id=CVE-2026-50142","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-8526-1","label":"ubuntu.com/security/notices/USN-8526-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-50142","label":"security-tracker.debian.org/tracker/CVE-2026-50142","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2026:10983-1","OPENSUSE-SU-2026:20974-1","SUSE-SU-2026:22153-1","SUSE-SU-2026:2622-1","USN-8526-1"],"duplicates":[],"related":["OPENSUSE-SU-2026:10983-1","OPENSUSE-SU-2026:20974-1","SUSE-SU-2026:22153-1","SUSE-SU-2026:2622-1","USN-8526-1"]},"timeline":[{"kind":"published","date":"2026-08-18T21:18:03.652Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-08-19T18:51:48.615Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"prioritise","tag":"severe","reason":"Severe, CVSS 7.5 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 0% (FIRST, 04-12-2026)","nextStep":"Check applicability: affected before 1.23.0 (CNA); fix release not confirmed","rank":[0,0,0,0,0,75],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.00495,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2026-08-19T18:51:48.615Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1","headline":true},{"type":"cvss","source":"osv_alpine","date":"2026-08-19T18:51:48.615Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},{"type":"cvss","source":"osv_ubuntu","date":"2026-08-19T18:51:48.615Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},{"type":"cvss","source":"osv_debian","date":"2026-08-19T18:51:48.615Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},{"type":"cvss","source":"nvd","date":"2026-08-19T18:51:48.615Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},{"type":"adp","source":"cisa-adp","date":"2026-08-19T18:51:41.872Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"none"}],"epss":{"value":0.00495,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T10:02:10.250Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T10:02:10.837Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T10:02:11.033Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T10:01:03.214Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T10:02:08.667Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T10:02:07.694Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T10:43:59.783Z","stale":false,"partial":false}}