# CVE-2026-33328: libvips integer overflow in gifload on 32-bit systems

Source: https://junglewise.ai/threats/cve-2026-33328-libvips-integer-overflow-in-gifload-on-32-bit-systems  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-20. Updated: 2026-07-20  
License: CC BY 4.0 with a link back

CVE-2026-33328 · Severity: info · CVSS 6.8 · Published 2026-07-20

libvips is a high-speed image processing library used by many applications to handle and resize images. On 32-bit systems, a flaw in how the library processes GIF files could allow an attacker to cause a system crash or service outage. This could disrupt operations for any software relying on this library to process user-uploaded images.

Technologies: [Libvips](https://junglewise.ai/threats/technologies/libvips). Vendors: [Libvips](https://junglewise.ai/threats/vendors/libvips).

## Quick answers

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

**How severe is CVE-2026-33328?** Informational severity, with a CVSS score of 6.8, published 20 July 2026.

**Which products and versions are affected?** Libvips <= 8.18.0.

**Is there a fix for CVE-2026-33328?** A patch was published on 2026-03-07: Fix merged into 8.18 branch via pull request 4935 Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-33328 attacked?** It is attacked with local access, in a software library.

**Am I affected by CVE-2026-33328?** Check whether you run Libvips 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 (CWE-190) exists in libvips within the `gifload` operation (specifically in `nsgifload.c`). The flaw occurs on 32-bit platforms when the library incorrectly calculates image dimensions, potentially leading to memory corruption or a denial-of-service (DoS) condition. An attacker with local access or the ability to submit a malicious GIF for processing could trigger this overflow. The issue is specific to 32-bit architectures where address space and integer sizes are more constrained. The vulnerability has been addressed in version 8.18.1, and a workaround exists to block the `VipsForeignLoadNsgif` operation.

## Affected products

- libvips libvips <= 8.18.0

## Timeline

- 2026-03-07: patched: Fix merged into 8.18 branch via pull request 4935
- 2026-07-17: advisory: GitHub Security Advisory published
- 2026-07-20: disclosed: CVE published to NVD

## References

- [https://github.com/libvips/libvips/commit/9b633e45abfcf1fc4c84847007c81805193c0969](https://github.com/libvips/libvips/commit/9b633e45abfcf1fc4c84847007c81805193c0969)
- [https://github.com/libvips/libvips/pull/4935](https://github.com/libvips/libvips/pull/4935)
- [https://github.com/libvips/libvips/security/advisories/GHSA-r98w-4fp7-m9c7](https://github.com/libvips/libvips/security/advisories/GHSA-r98w-4fp7-m9c7)

## Related threats

- [libvips misaligned float load in PFM image processing](https://junglewise.ai/threats/cve-2026-88360-libvips-8-19-0-contains-a-memory-access-vulnerability-when)
- [libvips heap buffer overflow in PPM source processing](https://junglewise.ai/threats/cve-2026-70654-libvips-heap-buffer-overflow-in-ppm-source-processing)
- [libvips Radiance RLE decoder heap disclosure](https://junglewise.ai/threats/cve-2026-70653-libvips-radiance-rle-decoder-heap-disclosure)
- [libvips heap buffer over-read in UHDR save](https://junglewise.ai/threats/cve-2026-70652-libvips-heap-buffer-over-read-in-uhdr-save)
- [libvips heap buffer over-read in ImageMagick fallback path](https://junglewise.ai/threats/cve-2026-70651-libvips-heap-buffer-over-read-in-imagemagick-fallback-path)
