Skip to navigation

Threat reportVulnerabilityTL-2026-6435

Ruby Regexp and String Memory-Corruption Flaws (7 GHSA advisories, 5 with PoC RCE) Fixed in 4.0.10, 3.4.13, 3.3.14

criticalPATCHED

Ruby maintainers fixed seven memory-safety flaws in the Onigmo-based regex engine and in string case conversion (heap overflows, a double free, out-of-bounds reads). Maintainers are aware of PoCs showing remote code execution for several of them; no in-the-wild exploitation is reported and CVE IDs are pending.

Key facts

IdentifiersTL-2026-6435
Also known asGHSA-34m4-m9fh-gqp5, GHSA-7x2q-68qv-6p8x, GHSA-3p8q-wmhx-vm2w, GHSA-87fm-7w84-j2px, GHSA-7whj-cfh7-xgm4, GHSA-wpqw-5qxg-m68r
SeverityCRITICAL
First disclosed
Affected productsRuby Ruby (CRuby / MRI)
Weaknesses (CWE)CWE-193, CWE-415, CWE-190, CWE-787, CWE-125
MalwareRuby
MITRE ATT&CK techniquesT1059 Command and Scripting Interpreter, T1190 Exploit Public-Facing Application, T1499.004 Application or System Exploitation, T1588.005 Exploits, T1588.006 Vulnerabilities
MotivationUNKNOWN
Target sectorstechnology, software-development, web-hosting, saas
Target regionsGlobal
Detection rules9 (1 shown free)
Sources11 cited sources

Detection coverage

As of 2026-11-19, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-6435 across Splunk SPL, Microsoft KQL and Sigma, covering 8 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.

Free detection: Ruby App Server Spawning Shell or Interpreter - Post-Exploitation After Ruby Memory Corruption (TL-2026-6435)

TL-2026-6435: detects Ruby, Puma, Unicorn, Passenger, Sidekiq or similar app-server processes spawning a shell, scripting interpreter or netcat/socat child. Successful RCE through the Onigmo/String memory-corruption flaws (GHSA-34m4-m9fh-gqp5, GHSA-7x2q-68qv-6p8x, GHSA-3p8q-wmhx-vm2w, GHSA-7whj-cfh7-xgm4, GHSA-wpqw-5qxg-m68r) would run attacker code inside the worker, and spawning a shell is the common next step. Child command lines with reverse-shell or download markers are flagged as high risk.

  • Languages: Splunk SPL, Microsoft KQL, Sigma
  • ATT&CK: T1059, T1059.004
  • Data sources: Sysmon for Linux (index=linux, sourcetype=sysmon:linux, EventCode 1), MDE DeviceProcessEvents, sigma logsource: process_creation/linux
  • Severity: high
  • Confidence: medium

Splunk SPL

index=linux sourcetype="sysmon:linux" EventCode=1 earliest=-24h
| where match(ParentImage,"/(ruby[0-9.]*|puma|unicorn|unicorn_rails|passenger|sidekiq|rackup|thin)$")
| where match(Image,"/(sh|bash|dash|zsh|ash|ksh|python[0-9.]*|perl|nc|ncat|socat)$")
| eval high_risk=if(match(CommandLine,"(?i)(/dev/tcp/|nc -e|mkfifo|socat|bash -i|base64 -d|curl |wget )"),1,0)
| stats count min(_time) as first_seen max(_time) as last_seen values(CommandLine) as cmdlines values(Image) as child_images max(high_risk) as high_risk by host, User, ParentImage
| convert ctime(first_seen) ctime(last_seen)

Microsoft KQL

DeviceProcessEvents
| where Timestamp > ago(24h)
| where InitiatingProcessFileName in~ ('puma', 'unicorn', 'unicorn_rails', 'passenger', 'sidekiq', 'rackup', 'thin') or InitiatingProcessFileName matches regex '^ruby[0-9.]*$'
| where FileName in~ ('sh', 'bash', 'dash', 'zsh', 'ash', 'ksh', 'python', 'python3', 'perl', 'nc', 'ncat', 'socat')
| project Timestamp, DeviceName, AccountName, InitiatingProcessFileName, InitiatingProcessCommandLine, FileName, ProcessCommandLine

Sigma

title: Ruby Application Server Spawning Shell or Interpreter
id: 2d9b4e7a-81c3-4f5a-b6d2-0e3a7c95f122
status: experimental
description: Detects Ruby, Puma, Unicorn, Passenger or Sidekiq processes spawning a shell, scripting interpreter or netcat/socat child, a post-exploitation indicator for Ruby memory-corruption RCE (TL-2026-6435).
references:
  - https://www.ruby-lang.org/en/news/2026/11/18/multiple-vulnerabilities-in-regexp-and-string/
author: Threadlinqs Team
date: 2026/11/19
tags:
  - attack.execution
  - attack.t1059
  - attack.t1059.004
logsource:
  category: process_creation
  product: linux
detection:
  selection_parent_ruby:
    ParentImage|re: '/ruby[0-9.]*$'
  selection_parent_srv:
    ParentImage|endswith:
      - '/puma'
      - '/unicorn'
      - '/unicorn_rails'
      - '/passenger'
      - '/sidekiq'
      - '/rackup'
      - '/thin'
  selection_child:
    Image|endswith:
      - '/sh'
      - '/bash'
      - '/dash'
      - '/zsh'
      - '/ash'
      - '/ksh'
      - '/perl'
      - '/nc'
      - '/ncat'
      - '/socat'
  condition: (selection_parent_ruby or selection_parent_srv) and selection_child
falsepositives:
  - Applications that shell out with system() or backticks for image processing, git, or deployment tasks
  - Capistrano or other deployment tooling started from a Ruby process
level: high

Known false positives:

  • Applications that legitimately shell out via system(), backticks or Open3 for tools such as git, ImageMagick or ffmpeg
  • Deployment and maintenance scripts run under a Ruby parent process

Tuning notes: Baseline normal child processes per application for 7-14 days and exclude exact command lines such as your image-conversion tool. Keep alerting on interactive shells (bash -i, sh -i), nc/ncat/socat children, and any child spawned by Sidekiq/Puma workers with a network-facing command line. Raise priority when the host also appears in the regex-payload or crash detections.

8 more detection rules (Splunk SPL, Microsoft KQL, Sigma) · unlock with TL Creds. Sign up free to unlock the detection rules or query them with the Threadlinqs MCP server (Purple)
  • High-Byte Single-Byte-Encoding Payload in Web Request - Ruby Case-Conversion Overflow (GHSA-34m4-m9fh-gqp5) Exploitation · unlock with TL Creds
  • Ruby Process Crash / Heap-Corruption Abort Burst - Memory-Corruption Exploit Attempt or DoS (TL-2026-6435) · unlock with TL Creds
  • Ruby Inline Reverse Shell via ruby -e / -rsocket - Post-Exploitation Execution (TL-2026-6435) · unlock with TL Creds
  • Ruby Worker Writing Script, Web Shell or Shared Object to App or Temp Directories (TL-2026-6435) · unlock with TL Creds
  • Ruby App Server Child Process Reading Secrets and Config Files (TL-2026-6435) · unlock with TL Creds
  • Ruby App Server Spawning Downloader Writing to Temp or Piping to Shell (TL-2026-6435) · unlock with TL Creds
  • Ruby Regexp Injection Payload in Web Request (GHSA-7x2q-68qv-6p8x, GHSA-3p8q-wmhx-vm2w) - Exploitation · unlock with TL Creds
  • Ruby Worker Outbound Connection to Public IP on Non-Standard Port - C2 / Reverse Shell (TL-2026-6435) · unlock with TL Creds

Indicators of compromise

As of 2026-11-19, Threadlinqs Intelligence tracks 8 indicators of compromise for TL-2026-6435.

8 indicators of compromise · unlock with TL Creds. Compare plans

Technical analysis

On 2026-11-18 the Ruby core team published a security advisory ("Multiple vulnerabilities in Regexp and String") announcing Ruby 4.0.10, 3.4.13 and 3.3.14. The release fixes seven vulnerabilities published as GitHub Security Advisories on 2026-11-19. Three are rated Critical: GHSA-34m4-m9fh-gqp5 (CWE-193, one-byte heap overflow in string case conversion for single-byte encodings such as ISO-8859-1 and Windows-1252), GHSA-7x2q-68qv-6p8x (CWE-415, double free when parsing a character-class intersection '&&' during regex compilation) and GHSA-3p8q-wmhx-vm2w (CWE-190, integer overflow of the compiled program size leading to a heap overflow during regex compilation). Three are High: GHSA-87fm-7w84-j2px (heap overflow when a case change yields a result larger than 4 GiB; a PoC exists but the required size makes it impractical for most requests), GHSA-7whj-cfh7-xgm4 (CWE-787, heap overflow in Regexp#to_s on a crafted compiled regex) and GHSA-wpqw-5qxg-m68r (CWE-125, out-of-bounds read in case-insensitive matching; the PoC shows attacker-controlled memory corruption, RCE possible but not demonstrated). One is Moderate: GHSA-pvgc-g7gj-pv6h (out-of-bounds read in case-insensitive backreference matching against a crafted subject string, may disclose memory or crash the process).

The advisories state that applications that compile regular expressions from attacker-controlled strings, or that case-convert attacker-controlled strings in affected encodings, may be exposed to information disclosure, denial of service or remote code execution. The advisories do not include PoC code; maintainers say they are aware of PoCs demonstrating RCE in some scenarios. Credited reporters are Stephan Lipp (Ada Logics) and Anthropic (four findings, including GHSA-34m4-m9fh-gqp5, GHSA-7x2q-68qv-6p8x, GHSA-7whj-cfh7-xgm4 and GHSA-wpqw-5qxg-m68r) and aphantom (GHSA-3p8q-wmhx-vm2w), with baba_yaga, Hiroya Fujinami and Hiroshi SHIBATA credited for the remainder. No CVE or CVSS has been assigned; CVE IDs have been requested.

Affected: Ruby 4.0.0-4.0.9 (fixed 4.0.10), 3.4.0-3.4.12 (fixed 3.4.13), 3.3.13 and earlier (fixed 3.3.14). Ruby 3.2 and earlier is end-of-life and will not be fixed. Ruby 3.3 moves to legacy maintenance with support ending at the end of March 2027.

Context: these are distinct from the regex compilation bugs fixed on 2026-10-23 in Ruby 4.0.9, 3.4.12 and 3.3.13, which GitLab reported (CVE-2026-89078, CVE-2026-93577, CVE-2026-97229, CVE-2026-110264). One related GitLab flaw drew an attempted attack against Alpine Linux's GitLab server and was later added to CISA KEV. The November advisories do not state that GitLab or any other named product is attackable through the new bugs. No IOCs, threat actor or network infrastructure are associated with these flaws, so no BeaconBeagle correlation applies.

MITRE ATT&CK techniques by tactic:

Execution

T1059 Command and Scripting Interpreter

Initial Access

T1190 Exploit Public-Facing Application

Impact

T1499.004 Application or System Exploitation

Resource Development

T1588.005 Exploits; T1588.006 Vulnerabilities

Remediation

Patches

  • Ruby 4.0.10
  • Ruby 3.4.13
  • Ruby 3.3.14
  • Apply distribution packages (e.g. Fedora, Debian, Alpine) as they are released

Immediate actions

  • Upgrade to Ruby 4.0.10, 3.4.13 or 3.3.14
  • Inventory applications that build Regexp objects from user-controlled strings or case-convert untrusted strings in single-byte encodings
  • Stop passing untrusted input to Regexp.new / Regexp.union / Regexp#to_s until patched

Workarounds

  • Reject or sanitize attacker-supplied regex patterns (note Regexp.timeout does not protect against memory-corruption bugs of this class)
  • Restrict untrusted data from reaching string case-conversion methods in ISO-8859-1/Windows-1252 encodings

Longer-term hardening

  • Migrate off end-of-life Ruby 3.2 and earlier, and plan migration off Ruby 3.3 before support ends in March 2027
  • Escape user input with Regexp.escape and avoid user-supplied regex patterns
  • Track CVE assignment for the seven GHSA IDs and update vulnerability scanners

Affected and fixed versions

  • Ruby — Ruby (CRuby / MRI)
    Vulnerable versions: 4.0.0 - 4.0.9; 3.4.0 - 3.4.12; 3.3.13 and earlier; 3.2 and earlier (EOL, unfixed)
    Fixed in: 4.0.10; 3.4.13; 3.3.14

Timeline

  • Ruby 4.0.9, 3.4.12 and 3.3.13 released with Onigmo regex compilation fixes for GitLab-reported flaws (CVE-2026-89078, CVE-2026-93577, CVE-2026-97229, CVE-2026-110264); separate from the seven bugs in this threat.
  • Ruby core team (mame) posts 'Multiple vulnerabilities in Regexp and String' and releases Ruby 4.0.10, 3.4.13 and 3.3.14.
  • Fixed versions 4.0.10, 3.4.13 and 3.3.14 available; Ruby 3.2 and earlier remain unfixed (EOL).
  • The Hacker News reports that five of the seven flaws have proof-of-concept RCE exploits known to maintainers; advisories report no attacks so far.
  • Seven GitHub Security Advisories published on ruby/ruby (3 Critical, 3 High, 1 Moderate); CVE IDs requested and pending.
  • Ruby 3.3 enters legacy maintenance, with support ending at the end of March 2027 (date approximate: end of month).

Sources cited

Drafted by the Threadlinqs research pipeline from 11 sources; published ; last updated —.

Threadlinqs Intelligence — Real-Time Threat Detection Platform

// threat_feed
$ sort --newest
Showing all threats

Live intelligence console

Threat level

Latest Threats