Bug 1692778 (CVE-2019-9942)

Summary: CVE-2019-9942 php-twig: sandbox information disclosure
Product: [Other] Security Response Reporter: Dhananjay Arunesh <darunesh>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED UPSTREAM QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: fedora, shawn
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Twig 1.38.0, Twig 2.7.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-10 10:52:02 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: 1692779, 1692780    
Bug Blocks:    

Description Dhananjay Arunesh 2019-03-26 12:15:14 UTC
A sandbox information disclosure exists in Twig before 1.38.0 and 2.x before 2.7.0 because, under some circumstances, it is possible to call the __toString() method on an object even if not allowed by the security policy in place.

Reference:
https://symfony.com/blog/twig-sandbox-information-disclosure

Upstream commit:
https://github.com/twigphp/Twig/commit/eac5422956e1dcca89a3669a03a3ff32f0502077

Comment 1 Dhananjay Arunesh 2019-03-26 12:17:17 UTC
Created php-twig tracking bugs for this issue:

Affects: epel-all [bug 1692779]

Comment 2 Dhananjay Arunesh 2019-03-26 12:17:39 UTC
Created php-twig tracking bugs for this issue:

Affects: fedora-all [bug 1692780]

Comment 3 Product Security DevOps Team 2019-06-10 10:52:02 UTC
This CVE Bugzilla entry is for community support informational purposes only as it does not affect a package in a commercially supported Red Hat product. Refer to the dependent bugs for status of those individual community products.