CVE-2018-18385

EUVD-2022-4946
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.
Infinite Loop
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTPrimary
7.5 HIGH
NETWORK
LOW
NONE
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Base Score
CVSS 3.x
EPSS Score
Percentile: 66%
Affected Products (NVD)
VendorProductVersion
asciidoctorasciidoctor
𝑥
< 1.5.8
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
asciidoctor
bookworm
2.0.18-2
fixed
bullseye
2.0.12-2
fixed
jessie
no-dsa
sid
2.0.23-1
fixed
stretch
no-dsa
trixie
2.0.23-1
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
asciidoctor
bionic
needed
cosmic
ignored
disco
not-affected
eoan
not-affected
focal
not-affected
groovy
not-affected
hirsute
not-affected
impish
not-affected
jammy
not-affected
kinetic
not-affected
lunar
not-affected
mantic
not-affected
noble
not-affected
trusty
dne
xenial
needed