SecurityOnlineDo Son
Ruby fixes seven flaws with potential for remote code execution
Ruby released security fixes on 18 November 2026 for seven memory-safety bugs in its regular expression engine and string case conversion, with updates to 4.0.10, 3.4.13 and 3.3.14. The advisories say working proof-of-concept exploits exist that can trigger remote code execution in some cases, though no in‑the‑wild exploitation has been confirmed. Ruby notes three flaws are critical, and seven vulnerabilities are addressed across the three series. The company has not published the PoCs themselves.
The flaws primarily affect how applications build Ruby regular expressions from attacker-controlled input, such as search filters, routing rules or validation settings. Ruby’s advisories list three critical issues: GHSA-3p8q-wmhx-vm2w (compiled regex program could overflow a heap buffer), GHSA-7x2q-68qv-6p8x (character class intersection could release the same buffer twice), and GHSA-34m4-m9fh-gqp5 (case conversion in single-byte encodings can write one byte too far).
Additional high and medium issues include GHSA-7whj-cfh7-xgm4 (heap buffer overflow in Regexp#to_s), GHSA-87fm-7w84-j2px (case conversion when result exceeds 4 GiB), GHSA-wpqw-5qxg-m68r (out-of-bounds read that can corrupt memory), and GHSA-pvgc-g7gj-pv6h (memory read that may disclose contents or crash). Notably, the two case-conversion bugs do not require a crafted regex; a crafted string can trigger them, widening the potential path to remote code execution.
Upgrade to Ruby 4.0.10, 3.4.13 or 3.3.14 to close all known RCE paths in this batch. The advisories provide no workaround. After patching, rebuild container images, restart long-running Ruby processes, and review code that turns user input into regex patterns, using Regexp[.]escape where feasible. The article attributes these findings to Ruby’s security advisories and notes no confirmed wild exploitation at the time of reporting.