Skip to content
OpenAdvisories
High · 7.5 CVE-2018-18385 EUVD-2022-4946GHSA-qc9p-mjxm-j2wj

Asciidoctor Infinite Loop vulnerability

Published Oct 16, 2018 · Updated Aug 5, 2024 · Assigned by mitre

Description

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 asciidoctor 1.5.8-1 —
Debian 13 asciidoctor 1.5.8-1 —
Debian 12 asciidoctor 1.5.8-1 —
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS asciidoctor No fix yet —
Ubuntu 16.04 LTS asciidoctor No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
RubyGems asciidoctor < 1.5.8 1.5.8 GHSA-qc9p-mjxm-j2wj

References