
Cloud Vulnerability DB
A community-led vulnerabilities database
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.
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:
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.If you can't upgrade straight away:
Source: NVD
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."