Eclipse Langiumの脆弱性、細工した文書で処理が止まりサービス停止のおそれ
Summary
Eclipse Langium 3.2.0から4.4.0までには、字句解析の処理が非効率なため、細工した文書を処理させるとサービス妨害(DoS)が起きる脆弱性があります。CVSSスコアは8.7です。DefaultLexerとDefaultTokenBuilderで作った言語は影響を受けません。修正版の有無は公表されていないため、最新の情報を確認してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
Eclipse Langium 3.2.0から4.4.0までには、字句解析の処理が非効率なため、細工した文書を処理させるとサービス妨害(DoS)が起きる脆弱性があります。CVSSスコアは8.7です。DefaultLexerとDefaultTokenBuilderで作った言語は影響を受けません。修正版の有無は公表されていないため、最新の情報を確認してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Eclipse FoundationEclipse Langium |
3.2.0 – 4.4.0→ Not listed |
Not listed |
This record does not list fixed versions. Check the article or the vendor advisory in the references for whether and where it is fixed.
Original description The description as published by the source.
Eclipse Langium versions 3.2.0 through 4.4.0 contain an inefficient algorithmic complexity issue (CWE-407) in the opt-in IndentationAwareTokenBuilder and IndentationAwareLexer. When producing DEDENT tokens, the token builder recomputes line numbers by re-scanning the entire preceding document text. A document whose indentation changes on most lines then takes quadratic time to tokenize. Because tokenization is synchronous, a crafted document of a few hundred kilobytes can block the Node.js event loop for tens of seconds. That causes a DoS for every user served by the same process. Languages built with the DefaultLexer and DefaultTokenBuilder are unaffected.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory nvd.nist.gov
- advisory github.com
- web gitlab.eclipse.org
- web gitlab.eclipse.org
- web github.com