Known exploited
CVE-2017-9841 on Debian 11: affected packages and fixed versions
1 package on Debian 11 is affected by CVE-2017-9841 (PHPUnit Command Injection Vulnerability). A host is fixed once the package is at the version below or newer.
This vulnerability is known to be exploited. CISA added it to its catalog on February 15, 2022, with a remediation date of August 15, 2022 for US federal agencies.
Affected packages
| Package | Fixed in | Severity | Advisory |
|---|---|---|---|
phpunit |
5.4.6-2 |
Not rated | none listed |
Check a host
Show the installed version and compare with the table above:
dpkg-query -W -f='${Package} ${Version}\n' phpunit
Update to the fixed build:
sudo apt-get update && sudo apt-get install --only-upgrade phpunit
The fixed version may look older than the upstream release that fixed the bug. Debian 11 carries the fix in the version it already ships.
What it is
Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP code via HTTP POST data beginning with a "<?php " substring, as demonstrated by an attack on a site with an exposed /vendor folder, i.e., external access to the /vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php URI.
CVE-2017-9841 on other releases
Know which of your hosts are affected
SysWard's agent reports the packages installed on each server and matches them against each distribution's own security data, so you see which hosts still have a vulnerable build, and can patch them from the same screen. Free for five servers.