Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions rubies/ruby/CVE-2026-132825.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
---
engine: ruby
cve: 2026-132825
ghsa: 34m4-m9fh-gqp5
url: https://nvd.nist.gov/vuln/detail/CVE-2026-132825
title: Heap buffer overflow in case conversion of strings
date: 2026-11-18
description: |
## Summary

Ruby has a one-byte heap-based buffer overflow in the case conversion of
strings. Changing the case of a crafted string may allow remote code
execution. The Ruby team is aware of PoCs that prove this flaw can be used to
trigger RCE in some scenarios.

## Details

When changing the case of a string in some single-byte encodings, such as
ISO-8859-1 and Windows-1252, Ruby could write one byte past the end of the
output buffer.

## Patches

Upgrade to Ruby 3.3.14, 3.4.13 or 4.0.10.

## Credits

Thanks to Stephan Lipp (Ada Logics) and Anthropic for reporting this issue.
cvss_v3: 7.4
patched_versions:
- "~> 3.3.14"
- "~> 3.4.13"
- ">= 4.0.10"
related:
ghsa:
- 8452-w857-wpmw
- 7x2q-68qv-6p8x
- 87fm-7w84-j2px
- wpqw-5qxg-m68r
- 3p8q-wmhx-vm2w
- 7whj-cfh7-xgm4
- pvgc-g7gj-pv6h
url:
- https://nvd.nist.gov/vuln/detail/CVE-2026-132825
- https://www.ruby-lang.org/en/news/2026/11/18/multiple-vulnerabilities-in-regexp-and-string/
- https://github.com/ruby/ruby/security/advisories/GHSA-34m4-m9fh-gqp5
- https://github.com/advisories/GHSA-8452-w857-wpmw
- https://verialabs.com/ruby2shell/
- https://durendal.sh/blog/ruby-case-mapping-bugs
notes: |
- cvss_v3 from NVD (CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H).
- GitHub ruby/ruby advisory severity is "critical".
- One of seven Regexp/String vulnerabilities announced together.
46 changes: 46 additions & 0 deletions rubies/ruby/GHSA-3p8q-wmhx-vm2w.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
engine: ruby
ghsa: 3p8q-wmhx-vm2w
url: https://github.com/ruby/ruby/security/advisories/GHSA-3p8q-wmhx-vm2w
title: Heap buffer overflow in regular expression compilation
date: 2026-11-18
description: |
## Summary

Ruby has an integer overflow in its regular expression engine, which causes a
heap-based buffer overflow. Compiling a crafted regular expression pattern may
allow remote code execution in applications that compile attacker-controlled
patterns. The Ruby team is aware of PoCs that prove this flaw can be used to
trigger RCE in some scenarios.

## Details

When compiling a regular expression, the size of the compiled program could
overflow, and Ruby could write past the end of a heap buffer.

## Patches

Upgrade to Ruby 3.3.14, 3.4.13 or 4.0.10.

## Credits

Thanks to aphantom (https://hackerone.com/aphantom) for reporting this issue.
patched_versions:
- "~> 3.3.14"
- "~> 3.4.13"
- ">= 4.0.10"
related:
ghsa:
- 34m4-m9fh-gqp5
- 7x2q-68qv-6p8x
- 87fm-7w84-j2px
- wpqw-5qxg-m68r
- 7whj-cfh7-xgm4
- pvgc-g7gj-pv6h
url:
- https://www.ruby-lang.org/en/news/2026/11/18/multiple-vulnerabilities-in-regexp-and-string/
- https://github.com/ruby/ruby/security/advisories/GHSA-3p8q-wmhx-vm2w
notes: |
- CVE ID requested but not yet assigned at time of publication.
- No CVSS score published yet; GitHub advisory severity is "critical".
- One of seven Regexp/String vulnerabilities announced together.
46 changes: 46 additions & 0 deletions rubies/ruby/GHSA-7whj-cfh7-xgm4.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
engine: ruby
ghsa: 7whj-cfh7-xgm4
url: https://github.com/ruby/ruby/security/advisories/GHSA-7whj-cfh7-xgm4
title: Heap buffer overflow in Regexp#to_s
date: 2026-11-18
description: |
## Summary

Ruby has a heap-based buffer overflow in `Regexp#to_s`. Converting a crafted
regular expression to a string may allow information disclosure or remote code
execution in applications that compile attacker-controlled patterns. The Ruby
team is aware of PoCs that prove this flaw can be used to trigger RCE in some
scenarios.

## Details

When converting a regular expression to a string, Ruby could write past the
end of a heap buffer.

## Patches

Upgrade to Ruby 3.3.14, 3.4.13 or 4.0.10.

## Credits

Thanks to Stephan Lipp (Ada Logics) and Anthropic for reporting this issue.
patched_versions:
- "~> 3.3.14"
- "~> 3.4.13"
- ">= 4.0.10"
related:
ghsa:
- 34m4-m9fh-gqp5
- 7x2q-68qv-6p8x
- 87fm-7w84-j2px
- wpqw-5qxg-m68r
- 3p8q-wmhx-vm2w
- pvgc-g7gj-pv6h
url:
- https://www.ruby-lang.org/en/news/2026/11/18/multiple-vulnerabilities-in-regexp-and-string/
- https://github.com/ruby/ruby/security/advisories/GHSA-7whj-cfh7-xgm4
notes: |
- CVE ID requested but not yet assigned at time of publication.
- No CVSS score published yet; GitHub advisory severity is "high".
- One of seven Regexp/String vulnerabilities announced together.
45 changes: 45 additions & 0 deletions rubies/ruby/GHSA-7x2q-68qv-6p8x.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
engine: ruby
ghsa: 7x2q-68qv-6p8x
url: https://github.com/ruby/ruby/security/advisories/GHSA-7x2q-68qv-6p8x
title: Double free in regular expression compilation
date: 2026-11-18
description: |
## Summary

Ruby has a double free in its regular expression engine. Compiling a crafted
regular expression pattern may allow remote code execution in applications
that compile attacker-controlled patterns. The Ruby team is aware of PoCs that
prove this flaw can be used to trigger RCE in some scenarios.

## Details

When parsing a character class intersection (`&&`) in a regular expression
pattern, Ruby could free the same buffer twice.

## Patches

Upgrade to Ruby 3.3.14, 3.4.13 or 4.0.10.

## Credits

Thanks to Stephan Lipp (Ada Logics) and Anthropic for reporting this issue.
patched_versions:
- "~> 3.3.14"
- "~> 3.4.13"
- ">= 4.0.10"
related:
ghsa:
- 34m4-m9fh-gqp5
- 87fm-7w84-j2px
- wpqw-5qxg-m68r
- 3p8q-wmhx-vm2w
- 7whj-cfh7-xgm4
- pvgc-g7gj-pv6h
url:
- https://www.ruby-lang.org/en/news/2026/11/18/multiple-vulnerabilities-in-regexp-and-string/
- https://github.com/ruby/ruby/security/advisories/GHSA-7x2q-68qv-6p8x
notes: |
- CVE ID requested but not yet assigned at time of publication.
- No CVSS score published yet; GitHub advisory severity is "critical".
- One of seven Regexp/String vulnerabilities announced together.
47 changes: 47 additions & 0 deletions rubies/ruby/GHSA-87fm-7w84-j2px.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
engine: ruby
ghsa: 87fm-7w84-j2px
url: https://github.com/ruby/ruby/security/advisories/GHSA-87fm-7w84-j2px
title: Integer overflow in case conversion of strings
date: 2026-11-18
description: |
## Summary

Ruby has an integer overflow in the case conversion of strings, which causes a
heap-based buffer overflow. Changing the case of a crafted string may allow
remote code execution. The Ruby team is aware of PoCs that prove this flaw can
be used to trigger RCE in some scenarios.

## Details

When changing the case of a string whose converted result exceeds 4 GiB, the
length of the result could overflow, and Ruby could write past the end of a
heap buffer.

## Patches

Upgrade to Ruby 3.3.14, 3.4.13 or 4.0.10.

## Credits

Thanks to baba__yaga (https://hackerone.com/baba__yaga) for reporting this
issue.
patched_versions:
- "~> 3.3.14"
- "~> 3.4.13"
- ">= 4.0.10"
related:
ghsa:
- 34m4-m9fh-gqp5
- 7x2q-68qv-6p8x
- wpqw-5qxg-m68r
- 3p8q-wmhx-vm2w
- 7whj-cfh7-xgm4
- pvgc-g7gj-pv6h
url:
- https://www.ruby-lang.org/en/news/2026/11/18/multiple-vulnerabilities-in-regexp-and-string/
- https://github.com/ruby/ruby/security/advisories/GHSA-87fm-7w84-j2px
notes: |
- CVE ID requested but not yet assigned at time of publication.
- No CVSS score published yet; GitHub advisory severity is "high".
- One of seven Regexp/String vulnerabilities announced together.
43 changes: 43 additions & 0 deletions rubies/ruby/GHSA-pvgc-g7gj-pv6h.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
engine: ruby
ghsa: pvgc-g7gj-pv6h
url: https://github.com/ruby/ruby/security/advisories/GHSA-pvgc-g7gj-pv6h
title: Out-of-bounds read in case-insensitive backreference matching
date: 2026-11-18
description: |
## Summary

Ruby has an out-of-bounds read in its regular expression engine. Matching a
crafted string may disclose memory contents or crash the process.

## Details

When matching a case-insensitive backreference, Ruby could read past the end
of the subject string.

## Patches

Upgrade to Ruby 3.3.14, 3.4.13 or 4.0.10.

## Credits

Thanks to Hiroya Fujinami and Hiroshi SHIBATA for reporting this issue.
patched_versions:
- "~> 3.3.14"
- "~> 3.4.13"
- ">= 4.0.10"
related:
ghsa:
- 34m4-m9fh-gqp5
- 7x2q-68qv-6p8x
- 87fm-7w84-j2px
- wpqw-5qxg-m68r
- 3p8q-wmhx-vm2w
- 7whj-cfh7-xgm4
url:
- https://www.ruby-lang.org/en/news/2026/11/18/multiple-vulnerabilities-in-regexp-and-string/
- https://github.com/ruby/ruby/security/advisories/GHSA-pvgc-g7gj-pv6h
notes: |
- CVE ID requested but not yet assigned at time of publication.
- No CVSS score published yet; GitHub advisory severity is "medium".
- One of seven Regexp/String vulnerabilities announced together.
46 changes: 46 additions & 0 deletions rubies/ruby/GHSA-wpqw-5qxg-m68r.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
engine: ruby
ghsa: wpqw-5qxg-m68r
url: https://github.com/ruby/ruby/security/advisories/GHSA-wpqw-5qxg-m68r
title: Out-of-bounds read in case-insensitive regular expression matching
date: 2026-11-18
description: |
## Summary

Ruby has an out-of-bounds read in its regular expression engine. Matching
against a crafted regular expression pattern may allow remote code execution
in applications that use attacker-controlled patterns. The Ruby team is aware
of PoCs that prove this flaw can lead to memory corruption in an
attacker-controlled way.

## Details

In case-insensitive matching, Ruby could read out of bounds, which can lead to
memory corruption.

## Patches

Upgrade to Ruby 3.3.14, 3.4.13 or 4.0.10.

## Credits

Thanks to Stephan Lipp (Ada Logics) and Anthropic for reporting this issue.
patched_versions:
- "~> 3.3.14"
- "~> 3.4.13"
- ">= 4.0.10"
related:
ghsa:
- 34m4-m9fh-gqp5
- 7x2q-68qv-6p8x
- 87fm-7w84-j2px
- 3p8q-wmhx-vm2w
- 7whj-cfh7-xgm4
- pvgc-g7gj-pv6h
url:
- https://www.ruby-lang.org/en/news/2026/11/18/multiple-vulnerabilities-in-regexp-and-string/
- https://github.com/ruby/ruby/security/advisories/GHSA-wpqw-5qxg-m68r
notes: |
- CVE ID requested but not yet assigned at time of publication.
- No CVSS score published yet; GitHub advisory severity is "high".
- One of seven Regexp/String vulnerabilities announced together.