CVE-2018-18385
HIGH 7.5CVSS 3.0Asciidoctor Infinite Loop vulnerability
Asciidoctor in versions < 1.5.8 allows remote attackers to cause a denial of service (infinite loop). The loop was caused by the fact that Parser.next_block was not exhausting all the lines in the reader as the while loop expected it would. This was happening because the regular expression that detects any list was not agreeing with the regular expression that detects a specific list type. So the line kept getting pushed back onto the reader, hence causing the loop.
- Published
- 16 Oct 2018
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-835
- Also known as
- GHSA-qc9p-mjxm-j2wj
- Sources
- NVDJSONOSV GHSA-qc9p-mjxm-j2wjJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | HIGH 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.0 | HIGH 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | asciidoctor | asciidoctorcpe:2.3:a:asciidoctor:asciidoctor:*:*:*:*:*:*:*:* |
< 1.5.8 | 1.5.8 |
| OSV | RubyGems | asciidoctor | < 1.5.8 | 1.5.8 |
References
- https://github.com/asciidoctor/asciidoctor/issues/2888 · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2018-18385 · ADVISORY
- https://github.com/asciidoctor/asciidoctor · PACKAGE
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/asciidoctor/CVE-2018-18385.yml · WEB
History
- 25 Nov 2026 20:21 UTC · NVD: first stored (published 16 Oct 2018)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 13 May 2022)