Loading...
Skip to main content

CVE-2018-18385 — Vulnerability in asciidoctor — CVE Details

HIGH

Asciidoctor Infinite Loop vulnerability

Published May 13, 2022Updated November 8, 2023Source: osv

Summary

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.

Advisory Timeline

  • First published May 13, 2022 (1613 days ago).
  • Last revised November 8, 2023 — 544 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Bundler
Update asciidoctor to 1.5.8 or later
gem install asciidoctor -v 1.5.8

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: rubygems (1).

PackageEcosystemAffectedFixed In
asciidoctor
rubygems
0.0.1, 0.0.2, 0.0.3, 0.0.4 (+20 more)1.5.8

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 7.5 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Frequently Asked Questions

What is CVE-2018-18385?
Asciidoctor Infinite Loop vulnerability This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.5/10).
How do I check if my project is affected by CVE-2018-18385?
CVE-2018-18385 affects asciidoctor. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2018-18385 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
7.5

High exploitability or significant impact. Prioritize remediation within days.

Also Known As

GHSA-qc9p-mjxm-j2wj

Related CVEs

  • CVE-2026-94462
    HIGH

    Spree: Broken Access Control in `PATCH /api/v3/store/carts/:id/associate` (IDOR)

  • CVE-2026-77601
    HIGH

    OpenC3 COSMOS: Authenticated OS command injection via the `pypi_url` setting

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies