Skip to content
Ruby

Ruby security fixes need to reach the application that does the work

A fixed re­lease only helps once it reaches the en­vir­on­ment doing the work. Businesses need to es­tab­lish where Ruby is used and who owns the change.

By CEO of Lyntev

Published
Updated
3 min read

HTML and JavaScript photographed on a screen in 2016
HTML and JavaScript photographed on a screen in 2016. Context image about software maintenance; it is not Ruby code or a demonstration of the vulnerability. Martin Vorel (opens in a new tab). CC BY-SA 4.0 (opens in a new tab)

Key points

  • The Ruby project recommends updating to versions 3.3.14, 3.4.13 or 4.0.10 after disclosing seven vulnerabilities in operations on regular expressions and text strings.
  • The advisory mentions proofs of concept for remote code execution in some scenarios.
  • Ruby 3.3 is in security maintenance, while version 3.2 and earlier no longer receive these fixes.
  • In an article published on 20 November, Cloudflare describes protection in its web application firewall (WAF) for two of the flaws, without presenting it as a substitute for updating.

The pro­ject be­hind the Ruby pro­gram­ming lan­guage re­com­mends up­grad­ing to ver­sions 3.3.14, 3.4.13 or 4.0.10 after dis­clos­ing vul­ner­ab­il­it­ies in op­er­a­tions on reg­u­lar ex­pres­sions and text strings. In an art­icle pub­lished on 20 November, Cloudflare de­scribes pro­tec­tion in its web ap­plic­a­tion fire­wall (WAF) for two of the flaws, while mak­ing clear that it does not re­place up­dat­ing the soft­ware.

Seven flaws, with different exposure conditions

The Ruby pro­ject ad­vis­ory (opens in a new tab) cov­ers seven vul­ner­ab­il­it­ies and men­tions proofs of concept (tech­nic­al demon­stra­tions) for re­mote code ex­e­cu­tion in some scen­ari­os. It also says Ruby 3.3 is in se­cur­ity main­ten­ance and that ver­sion 3.2 and earli­er will not re­ceive these fixes. These are reas­ons to check the ver­sion and its con­text without pre­sum­ing an at­tack.

For man­age­ment, this dis­tinc­tion changes what to ask the ser­vice pro­vider. The ques­tion about the ver­sion can be answered with an inventory; the ques­tion about ex­pos­ure re­quires un­der­stand­ing how data travels through the ap­plic­a­tion. Both an­swers should identi­fy the same ap­plic­a­tion, pre­vent­ing a con­firm­a­tion about one serv­er from being mis­taken for evid­ence cov­er­ing every com­pany ser­vice.

The components you do not see on screen

An in­stall­a­tion may in­clude com­pon­ents that re­main in­vis­ible when someone opens its homepage. In a fic­tion­al or­der­ing ap­plic­a­tion, the pub­lic ser­vice, ad­min­is­tra­tion area and file pro­cessing might run in sep­ar­ate en­vir­on­ments. This ex­ample does not de­scribe an af­fected ar­chi­tec­ture iden­ti­fied in this re­port. It il­lus­trates why a list of ser­vices is more use­ful than a gen­er­al an­swer about the web­site.

I would ask who­ever car­ries out the work to match each com­pon­ent with the ver­sion found and the out­come of the up­date. If a ser­vice de­pends on an ex­tern­al pro­vider, con­firm­a­tion should come from that pro­vider. The pur­pose is to es­tab­lish the scope of the work: what has been cor­rec­ted, what re­mains out­stand­ing and who can com­plete each stage. That scope should re­main un­der­stand­able to the per­son re­spons­ible for the busi­ness.

The final record should say what was checked

Having a cor­rec­ted pack­age avail­able dif­fers from hav­ing the pro­duc­tion ser­vice ac­tu­ally use that pack­age. The final re­cord should there­fore identi­fy the en­vir­on­ment that was checked. Supporting evid­ence may be tech­nic­al, but the ex­plan­a­tion to the busi­ness should re­main read­able: the ser­vice changed, the re­spons­ible per­son, con­firm­a­tion that it works and fol­low-up for ex­cep­tions.

It would also make sense to keep a re­cord of any dif­fi­culties. A de­pend­ency block­ing the up­date or an op­er­a­tion that stops work­ing provides in­form­a­tion for the next de­cision. Hiding it be­hind a com­ple­tion mes­sage makes the ap­plic­a­tion’s state harder to un­der­stand. My read­ing of this ad­vis­ory is that main­ten­ance qual­ity de­pends on link­ing the an­nounced fix to what can ac­tu­ally be demon­strated in the sys­tem that de­liv­ers the ser­vice.

From Lyntev, which publishes this site

What to ask the supplier

A busi­ness owner may never have chosen Ruby yet still de­pend on a ser­vice built with it. The use­ful ques­tion for a sup­pli­er is spe­cif­ic: does this ap­plic­a­tion in­clude an af­fected ver­sion, and what is the cor­rec­tion plan? A sub­stan­ti­ated an­swer iden­ti­fies the product, the in­stalled ver­sion and the en­vir­on­ment ex­amined.

In my view, com­mu­nic­a­tion about an up­date should be clear to both the tech­nic­al team and man­age­ment. Saying that a prob­lem is re­solved is insufficient; the re­cord should ex­plain what changed, what was checked and who is watch­ing for side ef­fects.

Check the service after the update

Consider a fic­tion­al ap­plic­a­tion that re­ceives re­quests and sends con­firm­a­tions. After up­dat­ing, the team checks a test re­quest, its re­cord and de­liv­ery of the con­firm­a­tion. If work is pro­cessed in the back­ground, that path needs check­ing too. The aim is to veri­fy the ser­vice provided, rather than merely an in­stall­a­tion-suc­cess mes­sage.

Plan the re­cov­ery be­fore start­ing work and de­cide which signs would jus­ti­fy rolling back. The de­cision de­pends on the application; there is no uni­ver­sal com­mand that re­places un­der­stand­ing the sys­tem.

The limits of WAF protection

A fire­wall of this kind acts only on traffic that ac­tu­ally passes through it. I would there­fore ask the per­son in charge of the tech­nic­al side to ex­plain the re­quest path and the con­di­tions of pro­tec­tion, without as­sum­ing that an an­nounced rule cov­ers every de­ploy­ment.

This re­port provides neither an ex­pos­ure dia­gnos­is nor an ex­ploit test. Its prac­tic­al con­clu­sion con­cerns main­ten­ance: identi­fy the de­pend­ency, in­stall the ap­pro­pri­ate cor­rec­tion and re­tain a func­tion­al check. That chain of re­spons­ib­il­ity turns a se­cur­ity no­tice into com­pleted main­ten­ance work.

Disclosure: this site and the web­site of Lyntev, its pub­lish­er, are hos­ted on Cloudflare. Security at Lyntev.

From Lyntev, which publishes this site

Put it into practice

Corrections

. The article said Cloudflare’s protection covered one of the seven flaws. It covers two, each with its own rule: ruby2shell (GHSA-34m4-m9fh-gqp5) and GHSA-87fm-7w84-j2px.

Sources

Documents and reporting consulted for this story.

  1. Ruby — Multiple vulnerabilities in Regexp and String (opens in a new tab)Ruby, . Primary source. Accessed 21 November 2026
  2. How Cloudflare WAF protects against ruby2shell (opens in a new tab)Cloudflare, . Primary source. Accessed 21 November 2026
  3. Security advisory GHSA-34m4-m9fh-gqp5 (opens in a new tab)Ruby / GitHub, . Primary source. Accessed 21 November 2026

Editorial principlesReport an error

Topics

Wellinton Oliveira

Written by

CEO of Lyntev

Technology with context, original analysis and sources you can consult.