Intel

AIKIDO-2025-10715

erb is vulnerable to Integer Overflow

Integer Overflow Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Oct 14, 2025

65

Medium Risk

This Affects:

RUBYerb
5.1.0 - 5.1.0
Fixed in 5.1.1
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to an integer overflow in the Util.html_escape method. The code stores segment lengths in a 16-bit integer (uint16_t), so a long unescaped segment (≥ 65,536 bytes) can wrap the length value, causing incorrect memcpy() sizes and a buffer overrun. This may lead to memory corruption and a crash (denial of service), and in the worst case could enable further exploitation.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

erb is vulnerable to Integer Overflow in versions 5.1.0 - 5.1.0.

How to fix this

Upgrade the erb library to the patch version.