Security mailing lists by PureSourceCode

CVE-2018-18385

HIGH 7.5CVSS 3.0

Asciidoctor 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

SourceScored byVersionScoreVector / 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

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD asciidoctor asciidoctor
cpe:2.3:a:asciidoctor:asciidoctor:*:*:*:*:*:*:*:*
< 1.5.8 1.5.8
OSV RubyGems asciidoctor < 1.5.8 1.5.8

References

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)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.