Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-70654— libvips: A well-crafted PPM image processed via a custom source could lead to possible heap buffer write overflow

Quick assessment

Affected
libvips libvips
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

libvips 是一款高性能、低内存占用的图像处理库。在 8.18.3 版本之前,如果应用程序定义了特殊的自定义 libvips 数据源,并使用这些源来处理不受信任的未压缩 PPM 图像,可能会在 libvips/iofuncs/source.c 中的 vips_source_read_to_memory 函数中触发最大/最小值计算错误。该函数在选择剩余读取大小时,错误地使用了 VIPS_MAX 而非 VIPS_MIN,导致最多可向已分配的堆缓冲区外写入 4032 字节,从而引发内存损坏或进程崩溃。该问题已在 8.

CVSS 5.8 · Medium EPSS 0.11% · P2

Possible ATT&CK Techniques 1 AI

T1203 · Exploitation for Client Execution

Affected Version Matrix 1

VendorProduct Version RangeStatus
libvips libvips < 8.18.3 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-70654

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
libvips: A well-crafted PPM image processed via a custom source could lead to possible heap buffer write overflow
Source: CVE Program / CVE List V5
Vulnerability Description
libvips is a fast image processing library with low memory needs. Prior to version 8.18.3, applications that define unusual custom libvips sources and use them to process untrusted uncompressed PPM images can trigger a max/min error in vips_source_read_to_memory in libvips/iofuncs/source.c. The function uses VIPS_MAX instead of VIPS_MIN when selecting the remaining read size, allowing up to 4032 bytes to be written beyond the allocated heap buffer and causing memory corruption or a process crash. This issue is fixed in version 8.18.3.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N
Source: CVE Program / CVE List V5
Vulnerability Type
堆缓冲区溢出
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
libvips libvips < 8.18.3 -

II. Public POCs for CVE-2026-70654

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-70654

登录查看更多情报信息。

Patches & Fixes for CVE-2026-70654 (2)

Vendor Advisories for CVE-2026-70654 (1)

Vendor Pages for CVE-2026-70654 (1)

Same Patch Batch · libvips · 2026-08-20 · 5 CVEs total

CVE-2026-69242 8.4 HIGH libvips: Integer overflow leading to heap buffer overflow leading to possible attacker-con
CVE-2026-70651 6.9 MEDIUM libvips: Possible integer overflow when reading multi-page TIFF images via ImageMagick
CVE-2026-70653 4.8 MEDIUM libvips: Possible heap-based buffer read overflow when decoding a well-crafted RLE Radianc
CVE-2026-70652 2.0 LOW libvips: Possible heap-based buffer read overflow when resizing and re-encoding a JPEG wit

IV. Related Vulnerabilities

V. Comments for CVE-2026-70654

No comments yet


Leave a comment