Advisory

GHSA-qc9p-mjxm-j2wj

Also known as: CVE-2018-18385

Summary

Asciidoctor Infinite Loop vulnerability

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-05-13 01:50 UTC
Modified
2023-11-08 04:00 UTC

Affected packages and fixes

asciidoctor

RubyGems · All systems

Affected

  • introduced 0, fixed 1.5.8 (ecosystem)

Fixed versions

1.5.8

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences