Bug 1640723 (CVE-2018-18385)

Summary: CVE-2018-18385 rubygem-asciidoctor: Infinite loop in the #next_block method
Product: [Other] Security Response Reporter: Andrej Nemec <anemec>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: bmcclain, dan.j.allen, dblechte, dfediuck, eedri, ktdreyer, mgoldboi, michal.skrivanek, sbonazzo, sherold
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: rubygem-asciidoctor 1.5.8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-10 10:40:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1640727, 1640728    
Bug Blocks: 1640729    

Description Andrej Nemec 2018-10-18 15:12:23 UTC
Asciidoctor allows remote attackers to cause a denial of service (infinite loop), as demonstrated by web applications that deliver untrusted input to this product, because Parser#next_block misuses a "while true" statement.

Upstream issue:

https://github.com/asciidoctor/asciidoctor/issues/2888

Comment 1 Andrej Nemec 2018-10-18 15:13:57 UTC
Created rubygem-asciidoctor tracking bugs for this issue:

Affects: epel-7 [bug 1640728]
Affects: fedora-all [bug 1640727]

Comment 2 Doran Moppert 2018-10-22 02:25:59 UTC
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.

Comment 3 Dan Allen 2018-10-22 07:02:28 UTC
A fix is now available upstream. The fix is in master at the time of this comment and will be included in the upcoming 1.5.8 release.