asciidoctor — security advisory
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.
- Products
- asciidoctor
- Affected versions
- Not specified
- Fixed versions
- 1.5.8-1
- CVEs
- CVE-2018-18385
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 01:32 UTC · Revision 1
Source evidence
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.
osv:DEBIAN-CVE-2018-18385
asciidoctor
Fixed versions: 1.5.8-1
asciidoctor
Fixed versions: 1.5.8-1
asciidoctor
Fixed versions: 1.5.8-1
Complete source record
{
"id": "70c3699664133e21f6cc9f149a19bba2f54d43c4e9910642338aee49b232f278",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2018-18385",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2018-18385",
"summary": "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.",
"evidence": "osv:DEBIAN-CVE-2018-18385",
"products": [
{
"name": {
"value": "asciidoctor",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.5.8-1",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "asciidoctor",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.5.8-1",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "asciidoctor",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.5.8-1",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "DEBIAN-CVE-2018-18385",
"aliases": [
"DEBIAN-CVE-2018-18385"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.5.8-1"
}
]
}
],
"package": {
"name": "asciidoctor",
"purl": "pkg:deb/debian/asciidoctor?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2018-18385.json"
},
"ecosystem_specific": {
"urgency": "low"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.5.8-1"
}
]
}
],
"package": {
"name": "asciidoctor",
"purl": "pkg:deb/debian/asciidoctor?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2018-18385.json"
},
"ecosystem_specific": {
"urgency": "low"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.5.8-1"
}
]
}
],
"package": {
"name": "asciidoctor",
"purl": "pkg:deb/debian/asciidoctor?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2018-18385.json"
},
"ecosystem_specific": {
"urgency": "low"
}
}
],
"modified": "2026-10-23T18:04:47.282865641Z",
"provider": "osv",
"upstream": [
"CVE-2018-18385"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2018-18385"
]
},
"related_cves": [
{
"value": "CVE-2018-18385",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 423763,
"published_at": "2018-10-16T16:50:12.927+00:00"
}