rubygem-asciidoctor: Infinite loop in the #next_block method
Published Oct 16, 2018
7.5
HIGHCVSS 3.0
EPSS 2.25%
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.
Affected products
No data.
- < 1.5.8
No data.
Red Hat Virtualization 4
rubygem-asciidoctor
Will not fix
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Virtualization 4 | rubygem-asciidoctor | Will not fix | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
The version of rubygem-asciidoctor included in Red Hat Virtualization is affected by this flaw, however it is not exposed to user input in such a way that the vulnerability could be exploited by an attacker.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
AV:N/AC:L/Au:N/C:N/I:N/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (17 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 2.25% (0.02250) | 82.28th | v5 (v2026.06.15) |
| Jun 15, 2026 | 2.25% (0.02250) | 80.56th | v5 (v2026.06.15) |
| Mar 30, 2025 | 0.63% (0.00625) | 67.74th | v4 (v2025.03.14) |
| Mar 29, 2025 | 1.75% (0.01746) | 71.21th | v4 (v2025.03.14) |
| Jul 20, 2024 | 0.26% (0.00263) | 66.42th | v3 (v2023.03.01) |
| Jun 4, 2024 | 0.26% (0.00263) | 66.03th | v3 (v2023.03.01) |
| Feb 8, 2024 | 0.25% (0.00248) | 63.79th | v3 (v2023.03.01) |
| Jul 8, 2023 | 0.25% (0.00248) | 61.57th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.30% (0.00301) | 64.73th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.05% (0.01055) | 52.13th | v2 (v2022.01.01) |
| Sep 17, 2022 | 1.05% (0.01055) | 50.47th | v2 (v2022.01.01) |
| Apr 1, 2022 | 1.05% (0.01055) | 48.43th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.05% (0.01055) | 27.52th | v2 (v2022.01.01) |
| Feb 3, 2022 | 0.65% (0.00651) | 18.22th | v1 |
| Jan 6, 2022 | 0.65% (0.00651) | 17.65th | v1 |
| Sep 1, 2021 | 0.65% (0.00651) | 45.91th | v1 |
| Apr 14, 2021 | 0.65% (0.00651) | 0.00th | v1 |
References (7)
- https://access.redhat.com/security/cve/CVE-2018-18385 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1640723 Issue Tracking
- https://github.com/advisories/GHSA-qc9p-mjxm-j2wj Advisory
- https://github.com/asciidoctor/asciidoctor/issues/2888 x_refsource_MISCExploitThird Party Advisory
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/asciidoctor/CVE-2018-18385.yml
- https://nvd.nist.gov/vuln/detail/CVE-2018-18385
- https://www.cve.org/CVERecord?id=CVE-2018-18385
| Link | Providers | Tags |
|---|---|---|
| https://access.redhat.com/security/cve/CVE-2018-18385 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1640723 | Issue Tracking | |
| https://github.com/advisories/GHSA-qc9p-mjxm-j2wj | Advisory | |
| https://github.com/asciidoctor/asciidoctor/issues/2888 | x_refsource_MISCExploitThird Party Advisory | |
| https://github.com/rubysec/ruby-advisory-db/blob/master/gems/asciidoctor/CVE-2018-18385.yml | ||
| https://nvd.nist.gov/vuln/detail/CVE-2018-18385 | ||
| https://www.cve.org/CVERecord?id=CVE-2018-18385 |
Change history (0)
No recorded changes yet.