Oj (Optimized JSON) is a JSON parser and Object marshaller packaged as a Ruby gem. In versions prior to 3.17.2, when in object mode, Oj.dump is vulnerable to a heap buffer overflow when serializing Exception objects with a large :indent value. The serializer allocates a buffer sized for the object's attributes but does not account for the indent bytes added on each write. With indent: 5000, the accumulation of 5,000-byte indent strings overflows the 13,150-byte heap allocation, corrupting adjacent heap memory. This issue has been fixed in version 3.17.2.
2.0.10-12.1.4-12.4.0-12.5.3-12.12.10-32.12.10-3build12.12.10-42.12.10-4build12.17.4-13.4.0-13.4.0-1build13.10.1-13.10.1-1build13.8.1-13.9.1-13.9.2-13.11.0-13.13.7-13.13.7-1build13.13.9-13.13.9-1build13.15.0-13.16.1-13.16.3-13.16.3-1build13.16.3-1build23.16.3-1build33.16.12-13.16.15-13.16.3-1build3Exploitability
AV:LAC:LAT:PPR:NUI:NVulnerable System
VC:NVI:NVA:LSubsequent System
SC:NSI:NSA:NCVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N