Crassに攻撃者が細工したCSSで処理が停止する脆弱性
概要
Crassは、Rubyで書かれたCSSパーサーです。1.0.7より前のバージョンでは、CSSに大量のコメントが隣接して含まれると再帰処理が深くなりすぎ、SystemStackErrorが発生してCSSを解析するアプリケーションがサービス停止に陥るおそれがあります。修正版の1.0.7が公開されているので、RubyGemsでcrassを1.0.7以降に更新してください。
AI要約
SecPulse が外部の生成 AI を使って作った要約です。誤りを含むことがあります。重要な判断の前に、下の原文と参照URLを確認してください。
Crassは、Rubyで書かれたCSSパーサーです。1.0.7より前のバージョンでは、CSSに大量のコメントが隣接して含まれると再帰処理が深くなりすぎ、SystemStackErrorが発生してCSSを解析するアプリケーションがサービス停止に陥るおそれがあります。修正版の1.0.7が公開されているので、RubyGemsでcrassを1.0.7以降に更新してください。
影響パッケージ
| パッケージ | 影響を受ける版 → 修正版 | |
|---|---|---|
| rubygemscrass |
1.0.7 未満→ 1.0.7 |
1.0.7 |
| rgrovecrass | — | 記載なし |
ディストリビューション別の修正状況
各ディストリビューションが公開している、この CVE の記録です。修正版は配布版ごとに違うので、リンク先で確かめてください。
- Debian DEBIAN-CVE-2026-61847 ruby-crass 修正版あり
- Ubuntu UBUNTU-CVE-2026-61847 ruby-crass この記録に修正版の記載なし
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。
Crass is a Ruby CSS parser that's fully compliant with the CSS Syntax Level 3 specification. Prior to 1.0.7, when the :preserve_comments option is not enabled, which is the default, Crass discards CSS comments by recursively consuming the next token. An attacker-provided stylesheet containing a very large number of adjacent comments can cause excessive recursion and trigger a SystemStackError, denying service to the parsing application. Preserving comments avoids this recursive path. This issue is fixed in version 1.0.7.
出典: GitHub Security Advisories (Global) NVD GitHub Advisory
参照URL
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- REDHAT Red Hat
- web github.com
- web github.com