# CVE-2026-102805: stb image integer overflow in PNG/JPEG/TGA encoding

Source: https://junglewise.ai/threats/cve-2026-102805-a-flaw-has-been-found-in-nothings-stb-up-to-1-16-this-affects  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-09-30. Updated: 2026-09-30  
License: CC BY 4.0 with a link back

CVE-2026-102805 · Severity: medium · CVSS 6.5 · Published 2026-09-30

A flaw in the stb image encoding library allows attackers to trigger an integer overflow when encoding PNG, JPEG, or TGA images. This can lead to heap buffer overflow or out-of-bounds memory reads. An attacker can exploit this remotely by providing a specially crafted image, potentially causing application crashes, information disclosure, or code execution.

Technologies: [Nothings Stb](https://junglewise.ai/threats/technologies/stb). Vendors: [Nothings](https://junglewise.ai/threats/vendors/nothings).

## Quick answers

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

**How severe is CVE-2026-102805?** Medium severity, with a CVSS score of 6.5, published 30 September 2026.

**Which products and versions are affected?** Nothings Stb up to 1.16.

**Is there a fix for CVE-2026-102805?** 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-102805 attacked?** It is attacked over the network, in a software library.

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

An integer overflow vulnerability exists in stb_image_write.h functions stbi_write_png_to_mem, stbi_write_jpg_core, and stbi_write_tga_core, triggered during image dimension calculations. The vulnerability is remotely exploitable through the manipulation of image encoding operations and can result in heap buffer overflow (PNG) or out-of-bounds reads (JPEG/TGA). A fix is available through library updates.

## Affected products

- Nothings stb up to 1.16

## Timeline

- 2026-09-30: disclosed

## References

- [https://github.com/nothings/stb/](https://github.com/nothings/stb/)
- [https://github.com/nothings/stb/issues/1964](https://github.com/nothings/stb/issues/1964)

## Related threats

- [nothings stb integer overflow in hexwave_init](https://junglewise.ai/threats/cve-2026-102804-a-vulnerability-was-detected-in-nothings-stb-up-to)
- [stb out-of-bounds write in stbsp_vsnprintf](https://junglewise.ai/threats/cve-2026-79516-stb-out-of-bounds-write-in-stbsp-vsnprintf)
- [nothings stb out-of-bounds read in TrueType glyph parsing](https://junglewise.ai/threats/cve-2026-79515-nothings-stb-out-of-bounds-read-in-truetype-glyph-parsing)
