Skip to content

Known exploited

Is your fleet exposed to CVE-2017-9841?

PHPUnit Command Injection Vulnerability. CVE-2017-9841 is in CISA's catalog of vulnerabilities known to be exploited, and it affects packages on 4 Linux releases that SysWard tracks. A host is exposed while it has a build older than the fixed version for its release.

Added to CISA's catalog
February 15, 2022
Due date for US federal agencies
August 15, 2022
Used in ransomware
Not known
Affected software
PHPUnit

What it is

PHPUnit 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.

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 "&lt;?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.

From a distribution's security advisory

CISA's required action: Apply updates per vendor instructions.

Affected Linux releases

Pick your release for the full list of affected packages and the commands to check and update a host.

ReleaseAffected packagesFixed in
Debian 11 phpunit 5.4.6-2
Debian 12 phpunit 5.4.6-2
Debian 13 phpunit 5.4.6-2
Arch Linux mediawiki 1.28.3-1

Releases not listed either are not affected, are past their vendor's support, or are not ones SysWard has security data for.

Why the version number alone can mislead

Long-lived distributions fix a vulnerability in the version they already ship and raise only their own build number. Comparing your package's upstream version with the release where the project fixed the bug gives the wrong answer in both directions. Compare against the fixed build for your release, which is what the release pages list.

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.

Get started free Check one server now, no signup