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

Published Oct 14, 2026
·
Updated

rapidcsv is a C++ CSV parser library. Prior to 8.99, RemoveColumn, InsertColumn, RemoveRow, InsertRow, and GetColumnNames converted sizet 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 INTMAX 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.

Affected Software

1 affected component
rapidcsv rapidcsv<8.99

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade rapidcsv to a version that resolves this vulnerability.

    Fixed in 8.99

Event History

Oct 14, 2026
CVE Published
via MITRE·03:44 PM
Data Sourced
via MITRE·03:44 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are realistically exposed?

The issue is relevant on 64-bit systems only when rapidcsv processes an in-memory CSV matrix with more than 2^31 elements. Constructing such a document requires at least tens of gigabytes of memory, so typical CSV workloads are not practically affected.

2

What is required to trigger the flaw?

An operation using RemoveColumn, InsertColumn, RemoveRow, InsertRow, or GetColumnNames must use an index above INT_MAX against an extremely large matrix. The size_t-to-int conversion can then wrap the iterator offset to a negative value.

3

What can happen if it is triggered?

The wrapped offset can point before the beginning of the vector, resulting in undefined behavior. Reported outcomes include heap memory corruption or a crash.

4

What remediation is available?

Upgrade rapidcsv to version 8.99, which fixes the issue.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203