# CVE-2026-49346: Strukturag libde265 heap buffer overflow in de265_image_get_buffer

Source: https://junglewise.ai/threats/cve-2026-49346-strukturag-libde265-heap-buffer-overflow-in-de265-image-get  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-06-19. Updated: 2026-06-21  
License: CC BY 4.0 with a link back

CVE-2026-49346 · Severity: high · CVSS 7.1 · Published 2026-06-19

libde265 is an open-source library used by various applications to decode H.265 (HEVC) video files. A vulnerability in how the library handles specially crafted video files could allow an attacker to crash an application or potentially gain unauthorized control of a system when a user opens a malicious video. This issue stems from a memory management error that occurs when processing videos with extremely large dimensions.

Technologies: [struktur AG Libde265](https://junglewise.ai/threats/technologies/libde265). Vendors: [struktur AG](https://junglewise.ai/threats/vendors/struktur-ag).

## Quick answers

**Is CVE-2026-49346 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-49346 being exploited in the wild.

**How severe is CVE-2026-49346?** High severity, with a CVSS score of 7.1, published 19 June 2026.

**Which products and versions are affected?** struktur AG Libde265 < 1.1.0.

**Is there a fix for CVE-2026-49346?** A patch was published on 2026-06-19: Fix committed to repository Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-49346 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-49346?** Check whether you run struktur AG Libde265 at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

A heap buffer overflow exists in libde265 prior to version 1.1.0 due to a signed integer overflow in the `de265_image_get_buffer()` function in `image.cc`. When processing a crafted H.265 bitstream with large Sequence Parameter Set (SPS) dimensions and 16-bit bit depth, the calculation for the image plane allocation size (luma_height * luma_bpl) overflows a signed 32-bit integer. This results in a small memory allocation (approx. 1 KB). However, the subsequent `fill_image()` call uses `size_t` arithmetic to calculate the true size, leading to a massive (~4 GB) out-of-bounds write into the undersized heap buffer. The vulnerability is triggered when a user opens a malicious H.265 file. The issue is patched in version 1.1.0.

## Affected products

- strukturag libde265 < 1.1.0

## Timeline

- 2026-05-26: advisory: Original GitHub Security Advisory published
- 2026-06-19: disclosed: CVE published to NVD
- 2026-06-19: patched: Fix committed to repository

## References

- [https://github.com/strukturag/libde265/commit/8a1b5cf212f78e1c77cb46eb5d56e492a9336eb8](https://github.com/strukturag/libde265/commit/8a1b5cf212f78e1c77cb46eb5d56e492a9336eb8)
- [https://github.com/strukturag/libde265/security/advisories/GHSA-vv8h-932h-7r86](https://github.com/strukturag/libde265/security/advisories/GHSA-vv8h-932h-7r86)

## Related threats

- [Strukturag libde265 heap buffer overflow in decode_slice_unit_WPP](https://junglewise.ai/threats/cve-2026-45383-strukturag-libde265-heap-buffer-overflow-in-decode-slice-unit-wpp)
- [strukturag libde265 out-of-bounds read in decode_slice_unit_tiles](https://junglewise.ai/threats/cve-2026-45382-strukturag-libde265-out-of-bounds-read-in-decode-slice-unit-tiles)
- [Strukturag libde265 unbounded heap growth in read_slice_NAL](https://junglewise.ai/threats/cve-2026-49337-strukturag-libde265-unbounded-heap-growth-in-read-slice-nal)
- [Strukturag libde265 out-of-bounds write in process_reference_picture_set](https://junglewise.ai/threats/cve-2026-49295-strukturag-libde265-out-of-bounds-write-in-process-reference)
