Bug 1255795 (CVE-2015-7809)

Summary: CVE-2015-7809 php-twig: Remote code execution via Twig templates
Product: [Other] Security Response Reporter: Adam Mariš <amaris>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: fedora, shawn
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: php-twig-1.20.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-10-12 07:47:55 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: 1255796, 1255797, 1255798    
Bug Blocks:    

Description Adam Mariš 2015-08-21 15:01:25 UTC
Vulnerability can be exploited when end users are allowed to submit Twig templates,
even if they are protected with Twig's sandbox mode.
End users can craft valid Twig code that allows them to execute arbitrary code (RCEs)
via the _self variable, which is always available, even in sandboxed templates.

All versions of Twig are affected up to 1.20.0, which fixes this bug.

Upstream patch:

https://github.com/twigphp/Twig/pull/1759

CVE request:

http://seclists.org/oss-sec/2015/q3/415

Comment 1 Adam Mariš 2015-08-21 15:02:20 UTC
Created php-twig-Twig tracking bugs for this issue:

Affects: epel-6 [bug 1255798]

Comment 2 Adam Mariš 2015-08-21 15:02:22 UTC
Created php-twig tracking bugs for this issue:

Affects: fedora-all [bug 1255796]
Affects: epel-7 [bug 1255797]

Comment 3 Fedora Update System 2015-09-06 03:56:33 UTC
php-twig-1.20.0-1.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.

Comment 4 Fedora Update System 2015-09-06 06:21:12 UTC
php-twig-1.20.0-1.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.

Comment 5 Fedora Update System 2015-09-10 20:27:42 UTC
php-twig-1.20.0-1.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.

Comment 6 Shawn Iwinski 2015-10-11 22:41:41 UTC
All dependent bugs are closed.  Would you close this tracking bug as well?

Comment 7 Adam Mariš 2015-10-12 07:47:55 UTC
Yes, thanks for resolving.