Crass 是一个完全符合 CSS 语法第 3 级规范的 Ruby CSS 解析器。在 1.0.7 版本之前,Crass 在解析 CSS 简单块和函数时会递归执行,且未设置深度限制。攻击者可构造包含深度嵌套块或函数的 CSS 值,导致解析过程无限递归,直至 Ruby 抛出 (错误提示:栈层级过深),或引发内存过度消耗。1.0.7 版本引入了可配置的最大深度限制,并采用保守的默认值。该问题已在 1.0.7 版本中修复。
Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.
| # | POC Description | Source Link | Shenlong Link |
|---|
No public POC found.
Login to generate AI POC| CVE-2026-61845 | 8.9 HIGH | Crass: Large numeric exponents cause CPU and memory denial of service |
| CVE-2026-61847 | 6.3 MEDIUM | Crass: A large number of adjacent CSS comments can trigger a SystemStackError |
| CVE-2026-61848 | 6.3 MEDIUM | Crass: Non-ASCII characters cause superlinear CPU consumption |