Loop with Unreachable Exit Condition ('Infinite Loop') Affecting asciidoctor package, versions <1.5.8-1


Severity

Recommended
low

Based on Debian security rating.

Threat Intelligence

EPSS
2.25% (83rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DEBIANUNSTABLE-ASCIIDOCTOR-261196
  • published16 Oct 2018
  • disclosed16 Oct 2018

Introduced: 16 Oct 2018

CVE-2018-18385  (opens in a new tab)
CWE-835  (opens in a new tab)

How to fix?

Upgrade Debian:unstable asciidoctor to version 1.5.8-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream asciidoctor package and not the asciidoctor package as distributed by Debian. See How to fix? for Debian:unstable relevant fixed versions and status.

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.