CVE-2018-18385Asciidoctor
High 7.5 No auth needed
Follow: this CVE · Asciidoctor · Asciidoctor We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.0
- 7.5
- EPSS
- 2.2% probability of exploitation in 30 days · percentile 84
- Auth required
- No
- Published
- Oct 16, 2018
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-835
- Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
What happens
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.
What to do
- Apply the vendor's security update for Asciidoctor.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| RubyGems | asciidoctor |
< 1.5.8 |
1.5.8 |
gem "asciidoctor", ">= 1.5.8" |
Per OSV / GitHub Advisories (GHSA-qc9p-mjxm-j2wj). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| asciidoctor | asciidoctor | < 1.5.8 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Exploit Third Party Advisory