smarter_csv is vulnerable to Out-of-bounds Read
59
Medium Risk
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.
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.
smarter_csv is vulnerable to Out-of-bounds Read in versions 1.16.0 - 1.18.1.
Upgrade the smarter_csv library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant