CVE-2026-49206

rapidcsv: Integer overflow in iterator arithmetic causes out-of-bounds access

State
Published
Severity
2.9 Low
Published
Oct 14, 2026
Updated
Oct 15, 2026
Reserved
May 28, 2026

Read the record on cve.org

Description

rapidcsv is a C++ CSV parser library. Prior to 8.99, RemoveColumn, InsertColumn, RemoveRow, InsertRow, and GetColumnNames converted size_t indexes to int before adding them to std::vector iterators. On 64-bit systems, in a CSV matrix dimension containing more than 2^31 elements, an index above INT_MAX could wrap to a negative iterator offset and point before the start of the vector, causing undefined behavior, heap memory corruption, or a crash. Triggering the issue requires an extremely large in-memory document, requiring tens of gigabytes of memory at minimum, so typical CSV documents are not practically affected. This issue is fixed in version 8.99.

Scores

CVSSScoreVectorSource
3.12.9 LowCVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:LGitHub_M

Weaknesses

Affected Products

ProductVersions
rapidcsvd99kris
  • < 8.99Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.