GHSA-qc9p-mjxm-j2wj

Suggest an improvement
Source
https://github.com/advisories/GHSA-qc9p-mjxm-j2wj
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-qc9p-mjxm-j2wj/GHSA-qc9p-mjxm-j2wj.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-qc9p-mjxm-j2wj
Aliases
Published
2022-05-13T01:50:40Z
Modified
2023-11-08T04:00:05.305431Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
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.

Database specific
{
    "nvd_published_at": "2018-10-16T16:50:00Z",
    "github_reviewed_at": "2023-01-24T18:32:26Z",
    "severity": "HIGH",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-835"
    ]
}
References

Affected packages

RubyGems / asciidoctor

Package

Name
asciidoctor
Purl
pkg:gem/asciidoctor

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.5.8

Affected versions

0.*

0.0.1
0.0.2
0.0.3
0.0.4
0.0.5
0.0.6
0.0.7
0.0.9
0.1.0
0.1.1
0.1.2
0.1.3
0.1.4

1.*

1.5.0
1.5.1
1.5.2
1.5.3
1.5.4
1.5.5
1.5.6
1.5.6.1
1.5.6.2
1.5.7
1.5.7.1