A heap-based buffer overflow vulnerability exists in Ruby versions prior to 3.3.14, 3.4.13, and 4.0.10 during case conversion operations. This flaw allows one byte to be written outside the allocated buffer, affecting character encodings such as ISO-8859-1 or Windows-1252. The vulnerability has a high severity rating with a CVSS score of 7.4.