oj is vulnerable to Stack-based Buffer Overflow
31
Low Risk
The Oj.dump serializer accepts an integer indent option without bounding its magnitude. When an extreme indent value is supplied, fill_indent writes far beyond the stack-allocated output buffer and corrupts the stack. Before the fix, this could crash the Ruby process handling the dump call. The patch rejects indent values above a small fixed maximum.
You are affected if you are using a version that falls within the vulnerable range and untrusted input can influence the indent option passed to Oj.dump.
oj is vulnerable to Stack-based Buffer Overflow in versions 0.0.1 - 3.17.1.
Upgrade the oj 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