bigdecimal is vulnerable to Out-of-bounds Write
39
Low Risk
BigDecimal division routes higher-precision operations through a Newton-Raphson algorithm whose slice_copy helper in div.h computes copy offsets that can fall outside the source fraction buffer. When operand magnitude and precision produce a negative or oversized start index, slice_copy performs a heap memcpy past the bounds of the frac array, corrupting adjacent heap memory. Zero-valued intermediate results also retain stale exponents, compounding the miscalculation during division. The fix clamps the copy range to the valid window and normalizes the exponent of zero values.
You are affected if you are using a version that falls within the vulnerable range and your application performs division on BigDecimal values whose magnitude or precision can be influenced by untrusted input.
bigdecimal is vulnerable to Out-of-bounds Write in versions 4.1.0 - 4.1.2.
Upgrade the bigdecimal 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
ISO 42001Compliant© All Intel data is openly available and commercially licensed.