| Title | libvips 8.19.0(7fab325d2) Improper Validation of Array Index |
|---|
| Description | In `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) |
|---|
| Submission | 02/15/2026 10:49 (4 months ago) |
|---|
| Moderation | 02/24/2026 20:54 (9 days later) |
|---|
| Status | Accepted |
|---|
| VulDB entry | 347653 [libvips up to 8.18.0 csvload.c vips_foreign_load_csv_build heap-based overflow] |
|---|
| Points | 20 |
|---|