Submit #758692: libvips 8.19.0(7fab325d2) Improper Validation of Array Indexinfo

Titlelibvips 8.19.0(7fab325d2) Improper Validation of Array Index
DescriptionIn `libvips/foreign/csvload.c`, function `vips_foreign_load_csv_build()`, bytes from CLI options (`--whitespace` / `--separator`) are used as array indexes (`csv->whitemap[(int)*p]`, `csv->sepmap[(int)*p]`). On platforms with signed `char`, non-ASCII UTF-8 bytes become negative indexes, writing before 256-byte maps and corrupting adjacent memory. The bug is reachable from `vips csvload` and reproducible with ASAN as `heap-buffer-overflow`.
Source⚠️ https://github.com/libvips/libvips/issues/4874
User
 Niebelungen (UID 95430)
Submission02/15/2026 10:49 (4 months ago)
Moderation02/24/2026 20:54 (9 days later)
StatusAccepted
VulDB entry347653 [libvips up to 8.18.0 csvload.c vips_foreign_load_csv_build heap-based overflow]
Points20

Do you want to use VulDB in your project?

Use the official API to access entries easily!