Vulnerability DatabaseGHSA-jjpx-qcfc-pqwp

GHSA-jjpx-qcfc-pqwp: 
Ruby vulnerability analysis and mitigation

Impact

Phlex caches the serialised output of each set of attributes it renders, in a process-wide cache with a byte budget (1 MiB, plus the size of each view file). The budget counted only the cached output. The cache also kept the attributes themselves as the key, including every nested Hash, Array and String, but they weren't counted. Some inputs render to almost nothing, because empty and missing values are skipped. So a large input could produce a tiny output, and the cache would keep the whole input alive while counting only a few bytes of it against the budget. Entries are only evicted once the budget is full, which could take tens of thousands of entries. Applications that pass request-derived Hashes or Arrays into attributes, for example by splatting user-provided attributes or rendering parsed JSON into data: attributes, are affected. An unauthenticated attacker could grow the server's memory far faster than the traffic they send, and the memory is held for the life of the process. In our tests, 100 requests of about 300 KB each grew a process from 22 MB to 520 MB, while the cache reported using 1.2 KB of its budget. Attributes with a fixed shape and user-controlled strings are not affected, because a long string renders to equally long output, which is counted and capped. Phlex 1.x is not affected. Applications using phlex-native are not affected either, because it turns the attribute cache off.

Patches

The attribute cache now counts each key against its budget along with the output. It won't cache a set of attributes whose key and output together cost more than a single cached value may, and it stops walking a key as soon as the key exceeds that. The patched version is:

  • 2.4.2 We have also patched the main branch on GitHub. Phlex 2.0 to 2.3 are no longer maintained and won't get a patch. Please upgrade to 2.4.2.

Workarounds

If you can't upgrade straight away:

  • Don't pass request-derived Hashes or Arrays into attributes. If you have to, limit their size first.
  • Limit request body sizes, and restart worker processes that grow too large.

Source: NVD

Related Ruby vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-4859-2mvh-r787HIGH7.1
  • Ruby logoRuby
  • phlex
NoYesNov 23, 2026
GHSA-6gjg-cqh9-p2xmMEDIUM5.9
  • Ruby logoRuby
  • phlex
NoYesNov 23, 2026
GHSA-jjpx-qcfc-pqwpMEDIUM5.9
  • Ruby logoRuby
  • phlex
NoYesNov 23, 2026
GHSA-fxxw-9rf3-3f2wMEDIUM5.9
  • Ruby logoRuby
  • phlex
NoYesNov 23, 2026
GHSA-wcp8-qw9q-vjppMEDIUM4.9
  • Ruby logoRuby
  • doorkeeper-openid_connect
NoYesNov 23, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management