Bug 1255795 (CVE-2015-7809) - CVE-2015-7809 php-twig: Remote code execution via Twig templates
Summary: CVE-2015-7809 php-twig: Remote code execution via Twig templates
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: CVE-2015-7809
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1255796 1255797 1255798
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-08-21 15:01 UTC by Adam Mariš
Modified: 2019-09-29 13:36 UTC (History)
2 users (show)

Fixed In Version: php-twig-1.20.0
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-10-12 07:47:55 UTC
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.