Intel

AIKIDO-2026-793789

smarter_csv is vulnerable to Out-of-bounds Read

Out-of-bounds Read Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Aug 12, 2026

59

Medium Risk

This Affects:

RUBYsmarter_csv
1.16.0 - 1.18.1
Fixed in 1.19.0
Are you affected? Scan for Free

TL;DR

SmarterCSV ships a C-accelerated parser that reads CSV input in a native extension, which is the default path. When a multi-character column separator is configured, the parser performs an unbounded look-ahead while validating a closing quote and reads past the end of the line buffer for a partial separator at end-of-line, causing an out-of-bounds read that can crash the process. When the field_size_limit option is set, the C-accelerated path never enforces that limit (the check existed only on the pure-Ruby path), so an oversized digit-only field is converted into a very large integer and consumes excessive CPU and memory instead of being rejected. The fix bounds every separator comparison to the line buffer and checks the raw field size before any numeric conversion on the C path.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you parse untrusted CSV input on the C-accelerated path using a multi-character column separator or the field_size_limit option.

Background info

smarter_csv is vulnerable to Out-of-bounds Read in versions 1.16.0 - 1.18.1.

How to fix this

Upgrade the smarter_csv library to the patch version.