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

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)

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 branch | Vulnérable | Fixé |
|---|---|---|
| 4.0 | 4.0.0–4.0.9 | 4.0.10 |
| 3.4 | 3.4.0–3.4.12 | 3.4.13 |
| 3.3 | 3.3.13 and earlier | 3.3.14 |
| 3.2 and older | end of life | no 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_handleris changed at runtime. Aikido’s stop-gap is to setsession.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
- MAG212 CYBER Daily, 20 November 2026: The keys to vSphere (numéro complet et PDF)
- MAG212 CYBER Quotidien, 19 novembre 2026 : Un compteur vieux de dix ans
- MAG212 CYBER Quotidien, 18 novembre 2026 : Un signe égal de trop
- MAG212 CYBER Hebdomadaire, 14 novembre 2026
- Abonnez-vous gratuitement à MAG212 CYBER
Sources
- [1] ruby-lang.org, “Multiple vulnerabilities in Regexp and String case conversion“, 18 novembre 2026.
- [2] SecurityWeek, “Ruby patches Ruby2Shell vulnerability that could lead to RCE“, 19 novembre 2026.
- [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] PHP, “PHP 8 ChangeLog“, 19 novembre 2026.
- [5] Aikido, “PHP security release, 19 November 2026 (CVE-2026-115560)“, 19 novembre 2026.
- [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.
