Live threats

All CVEs / Asciidoctor

CVE-2018-18385Asciidoctor

High 7.5 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Asciidoctor.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
asciidoctorasciidoctor< 1.5.8

Official sources

References

Links published by the sources. Open them with care.