File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ engine : ruby
3+ cve : 2026-132825
4+ ghsa : 34m4-m9fh-gqp5
5+ url : https://nvd.nist.gov/vuln/detail/CVE-2026-132825
6+ title : Heap buffer overflow in case conversion of strings
7+ date : 2026-11-18
8+ description : |
9+ ## Summary
10+
11+ Ruby has a one-byte heap-based buffer overflow in the case conversion of
12+ strings. Changing the case of a crafted string may allow remote code
13+ execution. The Ruby team is aware of PoCs that prove this flaw can be used to
14+ trigger RCE in some scenarios.
15+
16+ ## Details
17+
18+ When changing the case of a string in some single-byte encodings, such as
19+ ISO-8859-1 and Windows-1252, Ruby could write one byte past the end of the
20+ output buffer.
21+
22+ ## Patches
23+
24+ Upgrade to Ruby 3.3.14, 3.4.13 or 4.0.10.
25+
26+ ## Credits
27+
28+ Thanks to Stephan Lipp (Ada Logics) and Anthropic for reporting this issue.
29+ cvss_v3 : 7.4
30+ patched_versions :
31+ - " ~> 3.3.14"
32+ - " ~> 3.4.13"
33+ - " >= 4.0.10"
34+ related :
35+ ghsa :
36+ - 8452-w857-wpmw
37+ - 7x2q-68qv-6p8x
38+ - 87fm-7w84-j2px
39+ - wpqw-5qxg-m68r
40+ - 3p8q-wmhx-vm2w
41+ - 7whj-cfh7-xgm4
42+ - pvgc-g7gj-pv6h
43+ url :
44+ - https://nvd.nist.gov/vuln/detail/CVE-2026-132825
45+ - https://www.ruby-lang.org/en/news/2026/11/18/multiple-vulnerabilities-in-regexp-and-string/
46+ - https://github.com/ruby/ruby/security/advisories/GHSA-34m4-m9fh-gqp5
47+ - https://github.com/advisories/GHSA-8452-w857-wpmw
48+ - https://verialabs.com/ruby2shell/
49+ - https://durendal.sh/blog/ruby-case-mapping-bugs
50+ notes : |
51+ - cvss_v3 from NVD (CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H).
52+ - GitHub ruby/ruby advisory severity is "critical".
53+ - One of seven Regexp/String vulnerabilities announced together.
Original file line number Diff line number Diff line change 1+ ---
2+ engine : ruby
3+ ghsa : 3p8q-wmhx-vm2w
4+ url : https://github.com/ruby/ruby/security/advisories/GHSA-3p8q-wmhx-vm2w
5+ title : Heap buffer overflow in regular expression compilation
6+ date : 2026-11-18
7+ description : |
8+ ## Summary
9+
10+ Ruby has an integer overflow in its regular expression engine, which causes a
11+ heap-based buffer overflow. Compiling a crafted regular expression pattern may
12+ allow remote code execution in applications that compile attacker-controlled
13+ patterns. The Ruby team is aware of PoCs that prove this flaw can be used to
14+ trigger RCE in some scenarios.
15+
16+ ## Details
17+
18+ When compiling a regular expression, the size of the compiled program could
19+ overflow, and Ruby could write past the end of a heap buffer.
20+
21+ ## Patches
22+
23+ Upgrade to Ruby 3.3.14, 3.4.13 or 4.0.10.
24+
25+ ## Credits
26+
27+ Thanks to aphantom (https://hackerone.com/aphantom) for reporting this issue.
28+ patched_versions :
29+ - " ~> 3.3.14"
30+ - " ~> 3.4.13"
31+ - " >= 4.0.10"
32+ related :
33+ ghsa :
34+ - 34m4-m9fh-gqp5
35+ - 7x2q-68qv-6p8x
36+ - 87fm-7w84-j2px
37+ - wpqw-5qxg-m68r
38+ - 7whj-cfh7-xgm4
39+ - pvgc-g7gj-pv6h
40+ url :
41+ - https://www.ruby-lang.org/en/news/2026/11/18/multiple-vulnerabilities-in-regexp-and-string/
42+ - https://github.com/ruby/ruby/security/advisories/GHSA-3p8q-wmhx-vm2w
43+ notes : |
44+ - CVE ID requested but not yet assigned at time of publication.
45+ - No CVSS score published yet; GitHub advisory severity is "critical".
46+ - One of seven Regexp/String vulnerabilities announced together.
Original file line number Diff line number Diff line change 1+ ---
2+ engine : ruby
3+ ghsa : 7whj-cfh7-xgm4
4+ url : https://github.com/ruby/ruby/security/advisories/GHSA-7whj-cfh7-xgm4
5+ title : Heap buffer overflow in Regexp#to_s
6+ date : 2026-11-18
7+ description : |
8+ ## Summary
9+
10+ Ruby has a heap-based buffer overflow in `Regexp#to_s`. Converting a crafted
11+ regular expression to a string may allow information disclosure or remote code
12+ execution in applications that compile attacker-controlled patterns. The Ruby
13+ team is aware of PoCs that prove this flaw can be used to trigger RCE in some
14+ scenarios.
15+
16+ ## Details
17+
18+ When converting a regular expression to a string, Ruby could write past the
19+ end of a heap buffer.
20+
21+ ## Patches
22+
23+ Upgrade to Ruby 3.3.14, 3.4.13 or 4.0.10.
24+
25+ ## Credits
26+
27+ Thanks to Stephan Lipp (Ada Logics) and Anthropic for reporting this issue.
28+ patched_versions :
29+ - " ~> 3.3.14"
30+ - " ~> 3.4.13"
31+ - " >= 4.0.10"
32+ related :
33+ ghsa :
34+ - 34m4-m9fh-gqp5
35+ - 7x2q-68qv-6p8x
36+ - 87fm-7w84-j2px
37+ - wpqw-5qxg-m68r
38+ - 3p8q-wmhx-vm2w
39+ - pvgc-g7gj-pv6h
40+ url :
41+ - https://www.ruby-lang.org/en/news/2026/11/18/multiple-vulnerabilities-in-regexp-and-string/
42+ - https://github.com/ruby/ruby/security/advisories/GHSA-7whj-cfh7-xgm4
43+ notes : |
44+ - CVE ID requested but not yet assigned at time of publication.
45+ - No CVSS score published yet; GitHub advisory severity is "high".
46+ - One of seven Regexp/String vulnerabilities announced together.
Original file line number Diff line number Diff line change 1+ ---
2+ engine : ruby
3+ ghsa : 7x2q-68qv-6p8x
4+ url : https://github.com/ruby/ruby/security/advisories/GHSA-7x2q-68qv-6p8x
5+ title : Double free in regular expression compilation
6+ date : 2026-11-18
7+ description : |
8+ ## Summary
9+
10+ Ruby has a double free in its regular expression engine. Compiling a crafted
11+ regular expression pattern may allow remote code execution in applications
12+ that compile attacker-controlled patterns. The Ruby team is aware of PoCs that
13+ prove this flaw can be used to trigger RCE in some scenarios.
14+
15+ ## Details
16+
17+ When parsing a character class intersection (`&&`) in a regular expression
18+ pattern, Ruby could free the same buffer twice.
19+
20+ ## Patches
21+
22+ Upgrade to Ruby 3.3.14, 3.4.13 or 4.0.10.
23+
24+ ## Credits
25+
26+ Thanks to Stephan Lipp (Ada Logics) and Anthropic for reporting this issue.
27+ patched_versions :
28+ - " ~> 3.3.14"
29+ - " ~> 3.4.13"
30+ - " >= 4.0.10"
31+ related :
32+ ghsa :
33+ - 34m4-m9fh-gqp5
34+ - 87fm-7w84-j2px
35+ - wpqw-5qxg-m68r
36+ - 3p8q-wmhx-vm2w
37+ - 7whj-cfh7-xgm4
38+ - pvgc-g7gj-pv6h
39+ url :
40+ - https://www.ruby-lang.org/en/news/2026/11/18/multiple-vulnerabilities-in-regexp-and-string/
41+ - https://github.com/ruby/ruby/security/advisories/GHSA-7x2q-68qv-6p8x
42+ notes : |
43+ - CVE ID requested but not yet assigned at time of publication.
44+ - No CVSS score published yet; GitHub advisory severity is "critical".
45+ - One of seven Regexp/String vulnerabilities announced together.
Original file line number Diff line number Diff line change 1+ ---
2+ engine : ruby
3+ ghsa : 87fm-7w84-j2px
4+ url : https://github.com/ruby/ruby/security/advisories/GHSA-87fm-7w84-j2px
5+ title : Integer overflow in case conversion of strings
6+ date : 2026-11-18
7+ description : |
8+ ## Summary
9+
10+ Ruby has an integer overflow in the case conversion of strings, which causes a
11+ heap-based buffer overflow. Changing the case of a crafted string may allow
12+ remote code execution. The Ruby team is aware of PoCs that prove this flaw can
13+ be used to trigger RCE in some scenarios.
14+
15+ ## Details
16+
17+ When changing the case of a string whose converted result exceeds 4 GiB, the
18+ length of the result could overflow, and Ruby could write past the end of a
19+ heap buffer.
20+
21+ ## Patches
22+
23+ Upgrade to Ruby 3.3.14, 3.4.13 or 4.0.10.
24+
25+ ## Credits
26+
27+ Thanks to baba__yaga (https://hackerone.com/baba__yaga) for reporting this
28+ issue.
29+ patched_versions :
30+ - " ~> 3.3.14"
31+ - " ~> 3.4.13"
32+ - " >= 4.0.10"
33+ related :
34+ ghsa :
35+ - 34m4-m9fh-gqp5
36+ - 7x2q-68qv-6p8x
37+ - wpqw-5qxg-m68r
38+ - 3p8q-wmhx-vm2w
39+ - 7whj-cfh7-xgm4
40+ - pvgc-g7gj-pv6h
41+ url :
42+ - https://www.ruby-lang.org/en/news/2026/11/18/multiple-vulnerabilities-in-regexp-and-string/
43+ - https://github.com/ruby/ruby/security/advisories/GHSA-87fm-7w84-j2px
44+ notes : |
45+ - CVE ID requested but not yet assigned at time of publication.
46+ - No CVSS score published yet; GitHub advisory severity is "high".
47+ - One of seven Regexp/String vulnerabilities announced together.
Original file line number Diff line number Diff line change 1+ ---
2+ engine : ruby
3+ ghsa : pvgc-g7gj-pv6h
4+ url : https://github.com/ruby/ruby/security/advisories/GHSA-pvgc-g7gj-pv6h
5+ title : Out-of-bounds read in case-insensitive backreference matching
6+ date : 2026-11-18
7+ description : |
8+ ## Summary
9+
10+ Ruby has an out-of-bounds read in its regular expression engine. Matching a
11+ crafted string may disclose memory contents or crash the process.
12+
13+ ## Details
14+
15+ When matching a case-insensitive backreference, Ruby could read past the end
16+ of the subject string.
17+
18+ ## Patches
19+
20+ Upgrade to Ruby 3.3.14, 3.4.13 or 4.0.10.
21+
22+ ## Credits
23+
24+ Thanks to Hiroya Fujinami and Hiroshi SHIBATA for reporting this issue.
25+ patched_versions :
26+ - " ~> 3.3.14"
27+ - " ~> 3.4.13"
28+ - " >= 4.0.10"
29+ related :
30+ ghsa :
31+ - 34m4-m9fh-gqp5
32+ - 7x2q-68qv-6p8x
33+ - 87fm-7w84-j2px
34+ - wpqw-5qxg-m68r
35+ - 3p8q-wmhx-vm2w
36+ - 7whj-cfh7-xgm4
37+ url :
38+ - https://www.ruby-lang.org/en/news/2026/11/18/multiple-vulnerabilities-in-regexp-and-string/
39+ - https://github.com/ruby/ruby/security/advisories/GHSA-pvgc-g7gj-pv6h
40+ notes : |
41+ - CVE ID requested but not yet assigned at time of publication.
42+ - No CVSS score published yet; GitHub advisory severity is "medium".
43+ - One of seven Regexp/String vulnerabilities announced together.
Original file line number Diff line number Diff line change 1+ ---
2+ engine : ruby
3+ ghsa : wpqw-5qxg-m68r
4+ url : https://github.com/ruby/ruby/security/advisories/GHSA-wpqw-5qxg-m68r
5+ title : Out-of-bounds read in case-insensitive regular expression matching
6+ date : 2026-11-18
7+ description : |
8+ ## Summary
9+
10+ Ruby has an out-of-bounds read in its regular expression engine. Matching
11+ against a crafted regular expression pattern may allow remote code execution
12+ in applications that use attacker-controlled patterns. The Ruby team is aware
13+ of PoCs that prove this flaw can lead to memory corruption in an
14+ attacker-controlled way.
15+
16+ ## Details
17+
18+ In case-insensitive matching, Ruby could read out of bounds, which can lead to
19+ memory corruption.
20+
21+ ## Patches
22+
23+ Upgrade to Ruby 3.3.14, 3.4.13 or 4.0.10.
24+
25+ ## Credits
26+
27+ Thanks to Stephan Lipp (Ada Logics) and Anthropic for reporting this issue.
28+ patched_versions :
29+ - " ~> 3.3.14"
30+ - " ~> 3.4.13"
31+ - " >= 4.0.10"
32+ related :
33+ ghsa :
34+ - 34m4-m9fh-gqp5
35+ - 7x2q-68qv-6p8x
36+ - 87fm-7w84-j2px
37+ - 3p8q-wmhx-vm2w
38+ - 7whj-cfh7-xgm4
39+ - pvgc-g7gj-pv6h
40+ url :
41+ - https://www.ruby-lang.org/en/news/2026/11/18/multiple-vulnerabilities-in-regexp-and-string/
42+ - https://github.com/ruby/ruby/security/advisories/GHSA-wpqw-5qxg-m68r
43+ notes : |
44+ - CVE ID requested but not yet assigned at time of publication.
45+ - No CVSS score published yet; GitHub advisory severity is "high".
46+ - One of seven Regexp/String vulnerabilities announced together.
You can’t perform that action at this time.
0 commit comments