Bug 1671376 (CVE-2018-19826)

Summary: CVE-2018-19826 libsass: Infinite loop in Sass::Inspect::operator() function resulting in a denial of service
Product: [Other] Security Response Reporter: Andrej Nemec <anemec>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: aurelien, fmuellner
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-02-21 15:03:10 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: 1671395, 1671396    
Bug Blocks: 1671393    

Description Andrej Nemec 2019-01-31 14:00:47 UTC
In inspect.cpp in LibSass 3.5.5, a high memory footprint caused by an endless loop (containing a Sass::Inspect::operator()(Sass::String_Quoted*) stack frame) may cause a Denial of Service via crafted sass input files with stray '&' or '/' characters.

Upstream issue:

https://github.com/sass/libsass/issues/2781

Comment 1 Andrej Nemec 2019-01-31 14:16:21 UTC
Created libsass tracking bugs for this issue:

Affects: epel-7 [bug 1671396]
Affects: fedora-all [bug 1671395]

Comment 3 Riccardo Schirone 2019-02-21 15:03:10 UTC
Closing as NOTABUG because upstream believes this is "by design" and not an error in the code. See https://github.com/sass/libsass/issues/2781#issuecomment-447202429