ARTICLE ORIGINAL MAG212 CYBER

Ruby2Shell (CVE-2026-132825) and the November PHP Security Release: What to Update and Why “bundle update” Is Not Enough

novembre 20, 2026 · El Mostafa Ouchen

Update the interpreter, not the app: Ruby2Shell (CVE-2026-132825) and the November PHP Security Release: What to Update and Why "bundle update" Is Not Enough. MAG212 CYBER.

De la part de MAG212 CYBER Daily, 20 November 2026. Chaque commande est copiée de la documentation officielle ou de l'analyse citée et a été non testé par MAG212; exécutez-le uniquement sur les systèmes que vous êtes autorisé à administrer.

Statut: Ruby fixed on 18 November 2026 (4.0.10, 3.4.13, 3.3.14); Ruby 3.2 and older get no fix. PHP fixed on 19 November (8.6.0, 8.5.13, 8.4.28, 8.3.37, 8.2.36). Aucune exploitation signalée for either. Ruby2Shell’s severity varies by source: CVSS 7.4 per SecurityWeek, “critical” per The Hacker News. [1][2][3][4][6]

Ruby: what happened

On 18 November the Ruby project fixed seven memory-safety flaws in Regexp and String case conversion and warned it was “aware of PoCs” showing that some can lead to remote code execution. The most discussed is Ruby2Shell, CVE-2026-132825 (GHSA-34m4-m9fh-gqp5), credited to Stephan Lipp of Ada Logics and Anthropic. The name comes from Veria Labs’ research. [1][3]

Pourquoi c'est important

These bugs live in the language runtimes themselves, which sit under huge numbers of web applications. Updating application dependencies does nothing; the interpreter in every server, worker and container image has to be replaced. Proofs of concept exist for some of the Ruby flaws, and attackers have targeted PHP heavily this year. (Analyse MAG212)

Update the interpreter, not the app. Diagram by MAG212 CYBER.
Table from the MAG212 CYBER Daily, 20 November 2026. Sources are listed below.

The Ruby bug

In some single-byte encodings, such as ISO-8859-1 and Windows-1252, changing the case of a string can write one byte past the output buffer. Upcasing “ß” produces “SS”: Ruby checks there is room for one byte but writes two. Researchers say it can be reached in some web applications that change the case of incoming text. [2][3]

Exploitation is not easy. watchTowr says turning it into code execution in production needs a non-glibc memory allocator, specific runtime configuration and application logic, plus a way around address-space randomisation. SecurityWeek expects malformed requests most likely to cause crashes. Veria Labs plans to publish its proof of concept about a week after disclosure. [2][3]

Ruby branchVulnérableFixé
4.04.0.0–4.0.94.0.10
3.43.4.0–3.4.123.4.13
3.33.3.13 and earlier3.3.14
3.2 and olderend of lifeno fix

Source: ruby-lang.org. The advisory lists no workaround. GitHub Enterprise Server is affected; GitLab and others have patched. [1][2][3]

PHP: what happened

On 19 November PHP released 8.6.0 and 8.5.13, fixing 7 critical and 10 high or medium bugs. Most fixes also landed in 8.4.28, 8.3.37 and 8.2.36. Highlights: [4][5][6]

  • CVE-2026-129289: request smuggling in PHP-FPM and LSAPI, CVSS 9.2. [6]
  • CVE-2026-115560: a session deserialization bug that can lead to code execution, but only where session.serialize_handler is changed at runtime. Aikido’s stop-gap is to set session.upload_progress.enabled=0. [5]
  • CVE-2026-129481 and CVE-2026-129182: related to PHP2Shell, the widely exploited October bug. [6]

Comment vérifier

These are standard version checks, a MAG212 suggestion to compare with the fixed releases above. They were non testé par MAG212.

ruby -v
bundle exec ruby -v
docker run --rm IMAGE ruby -v
php -v
php -i | grep upload_progress.enabled

Replace IMAGE with each of your container images.

Why “bundle update” is not enough

  • Ruby2Shell lives in the interpreter binary. Updating gems or Rails does not touch it.
  • Rebuild base images, redeploy and restart long-running workers such as Sidekiq.
  • For PHP, update the PHP-FPM or mod_php package and restart the pool; application code changes do not help.
  • On managed platforms (PaaS, hosted CI), confirm the provider has rolled out the new runtime.
  • Ruby 3.2 apps get no fix: plan the upgrade now.

Sujets connexes sur MAG212 CYBER

Sources

  1. [1] ruby-lang.org, “Multiple vulnerabilities in Regexp and String case conversion“, 18 novembre 2026.
  2. [2] SecurityWeek, “Ruby patches Ruby2Shell vulnerability that could lead to RCE“, 19 novembre 2026.
  3. [3] The Hacker News, “Ruby publie des correctifs pour 7 failles dans les expressions régulières et les chaînes de caractères“, 19 novembre 2026.
  4. [4] PHP, “PHP 8 ChangeLog“, 19 novembre 2026.
  5. [5] Aikido, “PHP security release, 19 November 2026 (CVE-2026-115560)“, 19 novembre 2026.
  6. [6] SecurityWeek, “PHP patches seven critical RCE vulnerabilities“, 19 novembre 2026.

Written and edited by El Mostafa Ouchen for MAG212 CYBER. Facts checked against the sources above as of 20 November 2026, 6:00 AM PT.