Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. asciidoctor
  4. ›
  5. CVE-2018-18385

CVE-2018-18385: Loop with Unreachable Exit Condition (Infinite Loop)

October 16, 2018 (updated October 3, 2019)

Asciidoctor 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.

References

  • nvd.nist.gov/vuln/detail/CVE-2018-18385

Code Behaviors & Features

Detect and mitigate CVE-2018-18385 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.5.8

Fixed versions

  • 1.5.8

Solution

Upgrade to version 1.5.8 or above.

Impact 7.5 HIGH

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

Learn more about CVSS

Weakness

  • CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop')

Source file

gem/asciidoctor/CVE-2018-18385.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:05 +0000.