🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #5066

Bug#1154443: ruby3.3: multiple vulnerabilities in Regexp and String

#5066
From: Salvatore Bonaccorso
Date: Thu, 19 Nov 2026 09:30
69 lines
6999 bytes
Source: ruby3.3
Version: 3.3.8-2.2
Severity: grave
Tags: security upstream
Justification: user security hole
X-Debbugs-Cc: carnil@debian.org, Debian Security Team <team@security.debian.org>

Hi,

See: https://www.ruby-lang.org/en/news/2026/11/18/multiple-vulnerabilities-in-regexp-and-string/

> Seven vulnerabilities have been discovered in Ruby’s regular
> expression engine and in the case conversion of strings. We are aware
> of PoCs that prove some of them can be used to trigger remote code
> execution. We have released Ruby 4.0.10, 3.4.13 and 3.3.14 to fix
> them. We strongly recommend upgrading.
>
> CVE identifiers have been requested for these vulnerabilities but have
> not been assigned yet, so this advisory refers to them by their GitHub
> Security Advisory (GHSA) identifiers.
>
>
> GHSA-34m4-m9fh-gqp5: Heap buffer overflow in case conversion of strings
> https://github.com/ruby/ruby/security/advisories/GHSA-34m4-m9fh-gqp5
>
> 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. We are aware of PoCs that prove this flaw can be used
> to trigger RCE in some scenarios.
>
>
> GHSA-7x2q-68qv-6p8x: Double free in regular expression compilation
> https://github.com/ruby/ruby/security/advisories/GHSA-7x2q-68qv-6p8x
>
> 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. We are aware
> of PoCs that prove this flaw can be used to trigger RCE in some
> scenarios.
>
>
> GHSA-87fm-7w84-j2px: Integer overflow in case conversion of strings
> https://github.com/ruby/ruby/security/advisories/GHSA-87fm-7w84-j2px
>
> 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. We are aware of PoCs that
> prove this flaw can be used to trigger RCE in some scenarios.
>
>
> GHSA-wpqw-5qxg-m68r: Out-of-bounds read in case-insensitive regular
> expression matching
> https://github.com/ruby/ruby/security/advisories/GHSA-wpqw-5qxg-m68r
>
> 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.
> We are aware of PoCs that prove this flaw can lead to memory corruption
> in an attacker-controlled way.
>
>
> GHSA-3p8q-wmhx-vm2w: Heap buffer overflow in regular expression compilation
> https://github.com/ruby/ruby/security/advisories/GHSA-3p8q-wmhx-vm2w
>
> 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. We are aware of PoCs that
> prove this flaw can be used to trigger RCE in some scenarios.
>
>
> GHSA-7whj-cfh7-xgm4: Heap buffer overflow in Regexp#to_s
> https://github.com/ruby/ruby/security/advisories/GHSA-7whj-cfh7-xgm4
>
> 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. We are aware of PoCs that prove this
> flaw can be used to trigger RCE in some scenarios.
>
> GHSA-pvgc-g7gj-pv6h: Out-of-bounds read in case-insensitive backreference matching
> https://github.com/ruby/ruby/security/advisories/GHSA-pvgc-g7gj-pv6h
>
> Ruby has an out-of-bounds read in its regular expression engine.
> Matching a crafted string may disclose memory contents or crash the process.

No CVEs are yet assigned so we are at last tracking the GHSA's for now
in the security-tracker.

Regards,
Salvatore
Technical Details
Message-ID: <O16CR-cRBz-1@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomod
From: Salvatore Bonaccorso <carnil@debian.org>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1154443: ruby3.3: multiple vulnerabilities in Regexp and String
Date: Thu, 19 Nov 2026 10:30:01 +0100
Message-ID: <O16CR-cRBz-1@gated-at.bofh.it>
X-Original-To: Debian Bug Tracking System <submit@bugs.debian.org>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Thu Nov 19 09:29:09 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.9
Reply-To: Salvatore Bonaccorso <carnil@debian.org>, 1154443@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: carnil@debian.org, team@security.debian.org, pkg-ruby-extras-maintainers@lists.alioth.debian.org
X-Debian-Pr-Message: report 1154443
X-Debian-Pr-Package: src:ruby3.3
X-Debian-Pr-Keywords: security upstream
X-Debian-Pr-Source: ruby3.3
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
X-Mailer: reportbug 13.2.0+nmu1
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2003501
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 69
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Thu, 19 Nov 2026 10:27:10 +0100
X-Original-Message-ID: <179508043044.1804926.15574700299762745108.reportbug@eldamar.lan>