GHSA-w5jj-r577-97mq: 
Ruby Analyse et atténuation de la vulnérabilité

Summary

A memory leak exists in Faye's code for serving its static files, and this allows a client to incrementally increase the process's memory usage until it potentially crashes.

Details

Faye comes with a set of static files for its client-side JavaScript component, and these files can be request from the server. For example, if a server is running at http://example.com/faye, the browser client can be fetched from http://example.com/faye/faye-browser-min.js. These files are cached in memory the first time they're requested so that later requests return quickly. The control flow in this code means a cache entry will also be created if a file that does not exist is requested, and this entry is retained indefinitely and never garbage collected. By requesting a lot of non-existent files, a client can therefore cause the server to incrementally leak memory. The amount of memory leaked is a string containing the requested filename plus an empty Hash on each request. Note that this is considered a low-risk attack since it causes memory to accumulate slowly. Faye already stores session state for its connected clients in memory and it is probably easier to abuse that to cause memory exhaustion than to do so by this method. Users are expected to allocate Faye sufficient memory to deal with their expected workload. This has been mitigated by populating the in-memory cache eagerly from the small number of static files on disk when the server starts up, and then not modifying the cache at all at request time.

Proof of concept

A client can request a series of unique filenames to trigger this memory leak, for example:

for n in {1..1000000} ; do
  curl -s "http://host/faye/file-${n}.js" > /dev/null
done

Impact

A server running Faye may experience memory pressure or exhaustion, leading to degraded performance or denial of service if a client requests a large number of non-existent static files.


Source: NVD

Connexe Ruby Vulnérabilités :

CVE ID

Gravité

Partition

Technologies

Nom du composant

Exploit CISA KEV

A corrigé

Date de publication

GHSA-v472-jp5g-c53fHIGH7.5
  • Ruby logoRuby
  • pagy
NonOuiNov 18, 2026
CVE-2026-115472MEDIUM6.5
  • Ruby logoRuby
  • doorkeeper
NonOuiNov 17, 2026
GHSA-h648-g954-826qMEDIUM6.1
  • Ruby logoRuby
  • pagy
NonOuiNov 18, 2026
GHSA-w5jj-r577-97mqMEDIUM5.3
  • Ruby logoRuby
  • faye
NonOuiNov 17, 2026
GHSA-wqwf-8p4q-mwqjHIGHN/A
  • Ruby logoRuby
  • graphql
NonOuiNov 17, 2026

Évaluation gratuite des vulnérabilités

Évaluez votre posture de sécurité cloud

Évaluez vos pratiques de sécurité cloud dans 9 domaines de sécurité afin d’évaluer votre niveau de risque et d’identifier les lacunes dans vos défenses.

Évaluation de la demande

Ressources Wiz supplémentaires

Obtenez une démo personnalisée

Prêt(e) à voir Wiz en action ?

"La meilleure expérience utilisateur que j’ai jamais vue, offre une visibilité totale sur les workloads cloud."
David EstlickRSSI
"Wiz fournit une interface unique pour voir ce qui se passe dans nos environnements cloud."
Adam FletcherChef du service de sécurité
"Nous savons que si Wiz identifie quelque chose comme critique, c’est qu’il l’est réellement."
Greg PoniatowskiResponsable de la gestion des menaces et des vulnérabilités