WS-2026-0309
Published:November 19, 2026
Updated:November 19, 2026
Ruby 3.2.0 through 3.3.13, 3.4.0 through 3.4.12, and 4.0.0 through 4.0.9 (and 4.1.0-preview1) have a heap-based buffer overflow in Regexp#to_s (rb_reg_str_with_term in re.c), which compiled the raw source instead of the preprocessed one, with attacker-controlled patterns. Fixed in 3.3.14, 3.4.13 and 4.0.10.
Affected Packages
ruby (CONDA):
Affected version(s) >=4.0.2 <4.0.10Fix Suggestion:
Update to version 4.0.10ruby (CONDA):
Affected version(s) >=3.2.2 <3.3.14Fix Suggestion:
Update to version 3.3.14ruby (CONDA):
Affected version(s) >=3.4.0 <3.4.13Fix Suggestion:
Update to version 3.4.13https://github.com/ruby/ruby.git (GITHUB):
Affected version(s) >=v4.0.0 <v4.0.10Fix Suggestion:
Update to version v4.0.10https://github.com/ruby/ruby.git (GITHUB):
Affected version(s) >=v3_4_0_rc1 <v3_4_13Fix Suggestion:
Update to version v3_4_13https://github.com/ruby/ruby.git (GITHUB):
Affected version(s) >=v3_2_0_rc1 <v3_3_14 || >=v3_2_0_preview2 <v3_3_14Fix Suggestion:
Update to version v3_3_14Related Resources (2)
Do you need more information?
Contact UsCVSS v4
Base Score:
9.2
Attack Vector
NETWORK
Attack Complexity
HIGH
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
8.1
Attack Vector
NETWORK
Attack Complexity
HIGH
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Weakness Type (CWE)
Out-of-bounds Write