blob: eb77bec4c0086d2bb05770d65411dd384b020b66 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE glsa SYSTEM "http://www.gentoo.org/dtd/glsa.dtd">
<glsa id="201711-15">
<title>PHPUnit: Remote code execution</title>
<synopsis>A vulnerability was discovered in PHPUnit which may allow an
unauthenticated remote attacker to execute arbitrary PHP code.
</synopsis>
<product type="ebuild">PHPUnit</product>
<announced>2017-11-19</announced>
<revised>2017-11-19: 1</revised>
<bug>635356</bug>
<access>remote</access>
<affected>
<package name="dev-php/phpunit" auto="yes" arch="*">
<unaffected range="ge">5.7.15-r1</unaffected>
<vulnerable range="lt">5.7.15-r1</vulnerable>
</package>
</affected>
<background>
<p>PHPUnit is a programmer-oriented testing framework for PHP. It is an
instance of the xUnit architecture for unit testing frameworks.
</p>
</background>
<description>
<p>When PHPUnit is installed in a production environment via composer and
these modules are in a web accessible directory, the eval-stdin.php file
in PHPUnit contains vulnerable statements that trigger the vulnerability.
</p>
</description>
<impact type="normal">
<p>A remote attacker could possibly execute arbitrary PHP code or cause a
Denial of Service condition.
</p>
</impact>
<workaround>
<p>There are several ways to fix or mitigate this vulnerability:</p>
<p>Remove PHPUnit from the production environment.</p>
<p>Update PHPUnit.</p>
<p>Manually apply the patch.</p>
<p>Disable direct access to the composer packages by placing .htaccess file
to /vendor folder.
</p>
</workaround>
<resolution>
<p>All PHPUnit users should upgrade to the latest version:</p>
<code>
# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-php/phpunit-5.7.15-r1"
</code>
</resolution>
<references>
<uri link="https://nvd.nist.gov/nvd.cfm?cvename=CVE-2017-9841">
CVE-2017-9841
</uri>
</references>
<metadata tag="requester" timestamp="2017-11-14T01:26:48Z">jmbailey</metadata>
<metadata tag="submitter" timestamp="2017-11-19T20:43:04Z">jmbailey</metadata>
</glsa>
|