# CVE-2026-95125: libming heap buffer overflow in RECT parsing

Source: https://junglewise.ai/threats/cve-2026-95125-libming-through-0-4-8-contains-a-heap-buffer-overflow-in-r-readc  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-10-08. Updated: 2026-10-19  
License: CC BY 4.0 with a link back

CVE-2026-95125 · Severity: medium · CVSS 6.5 · Published 2026-10-08

libming is a library that processes SWF (Flash) files, commonly used by web servers and media players. A malformed or truncated SWF file can trigger a heap buffer overflow that crashes the application or potentially allows arbitrary code execution. An attacker could send a specially crafted SWF file to trigger this vulnerability when it is processed.

## Quick answers

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

**How severe is CVE-2026-95125?** Medium severity, with a CVSS score of 6.5, published 8 October 2026.

**Which products and versions are affected?** Libming through 0.4.8.

**Is there a fix for CVE-2026-95125?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

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

**Am I affected by CVE-2026-95125?** Check whether you run Libming 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

The vulnerability is a heap buffer overflow (CWE-787) in the r_readc() function within src/blocks/fromswf.c that occurs during SWF RECT header parsing. The function writes bytes into a fixed 9-byte rect[] buffer indexed by rectlen without bounds checking; legitimate RECT structures can require up to 17 bytes, and truncated streams cause unbounded writes up to ~199 bytes past the buffer. An attacker supplies a crafted SWF file with a malformed RECT header to trigger the overflow, causing denial of service at minimum.

## Affected products

- libming through 0.4.8

## Timeline

- 2026-10-08: disclosed

## References

- [https://github.com/libming/libming/issues/448](https://github.com/libming/libming/issues/448)
- [https://github.com/libming/libming/pull/450](https://github.com/libming/libming/pull/450)
