Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2017-9841: PHPUnit Command Injection Vulnerability

97
Patch now
CRITICAL 9.8EXPLOITEDREMOTEUPGRADEUPGRADE

CVE-2017-9841 is a critical-severity flaw (CVSS 9.8) affecting phpunit, communications diameter signaling router, reported as exploited in the wild. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

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.

Why this priority

  • Critical severity
  • EPSS top 1%: very likely to be exploited
  • Exploited in the wild (CISA KEV)
  • Public exploit reference
  • CISA SSVC: automatable with total technical impact
  • Remotely exploitable, no login, no user action

A fixed release or distro patch exists.

Risk facts

CVSS score9.8 (Critical)
Attack vectorNetwork (remote)
Attack complexityLow
Privileges neededNone
User interactionNone
EPSS exploit chance100.0% (top 1%)
CISA exploited listYes, fix due 2022-08-15
WeaknessCWE-94
Published2017-06-27
Last modified2026-06-17
Publisher (CNA): MITRE · Vendor: oracle · phpunit project

Share: LinkedIn · X · Reddit

Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

phpunit project phpunit UPGRADE
Affected: <= 4.8.27 · >= 5.0.0 and < 5.6.3
Fixed in: 5.6.3
Safe to downgrade to: a release before 5.0.0
1. Check installed version
apt-cache policy phpunit || rpm -q phpunit || phpunit --version
2. UPGRADE to 5.6.3 (Debian / Ubuntu)
sudo apt update && sudo apt install --only-upgrade phpunit
2. UPGRADE (RHEL / Amazon Linux / Fedora)
sudo dnf upgrade phpunit
Note
Distros often backport fixes without changing the version number. Confirm with the distro advisory or changelog.
3. If no update is available yet, DOWNGRADE to a release before 5.0.0 (Debian / Ubuntu)
apt-cache madison phpunit sudo apt install phpunit=<VERSION_BEFORE_5.0.0> sudo apt-mark hold phpunit
3. If no update is available yet, DOWNGRADE (RHEL / Amazon Linux / Fedora)
dnf --showduplicates list phpunit sudo dnf downgrade phpunit-<VERSION_BEFORE_5.0.0> sudo dnf versionlock add phpunit
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.
oracle communications diameter signaling router UPGRADE
Affected: >= 8.0.0 and <= 8.5.0
Fixed in: newer than 8.5.0
Safe to downgrade to: a release before 8.0.0
1. Check installed version
apt-cache policy communications-diameter-signaling-router || rpm -q communications-diameter-signaling-router || communications-diameter-signaling-router --version
2. UPGRADE to newer than 8.5.0 (Debian / Ubuntu)
sudo apt update && sudo apt install --only-upgrade communications-diameter-signaling-router
2. UPGRADE (RHEL / Amazon Linux / Fedora)
sudo dnf upgrade communications-diameter-signaling-router
Note
Distros often backport fixes without changing the version number. Confirm with the distro advisory or changelog.
3. If no update is available yet, DOWNGRADE to a release before 8.0.0 (Debian / Ubuntu)
apt-cache madison communications-diameter-signaling-router sudo apt install communications-diameter-signaling-router=<VERSION_BEFORE_8.0.0> sudo apt-mark hold communications-diameter-signaling-router
3. If no update is available yet, DOWNGRADE (RHEL / Amazon Linux / Fedora)
dnf --showduplicates list communications-diameter-signaling-router sudo dnf downgrade communications-diameter-signaling-router-<VERSION_BEFORE_8.0.0> sudo dnf versionlock add communications-diameter-signaling-router
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.

Exact fixes by distribution

Composer (PHP) · phpunit/phpunit · FIXED · 4.8.28 · vulnerable: >= 4.8.19, < 4.8.28 · source
composer require "phpunit/phpunit:>=4.8.28"
Fedora 46 · root · FIXED · 6.40.04-7.fc46 · FEDORA-2026-7329868400 · source
sudo dnf upgrade --advisory=FEDORA-2026-7329868400
Ubuntu 22.04 · phpunit · NOT AFFECTED
Ubuntu 20.04 · phpunit · NOT AFFECTED
Ubuntu 24.04 · phpunit · NOT AFFECTED
Ubuntu 24.10 · phpunit · NOT AFFECTED
Debian 12 · phpunit · FIXED · 5.4.6-2
sudo apt update && sudo apt install --only-upgrade phpunit dpkg --compare-versions "$(dpkg-query -W -f='${Version}' phpunit)" ge "5.4.6-2" && echo PATCHED || echo STILL-VULNERABLE
Debian 13 · phpunit · FIXED · 5.4.6-2
sudo apt update && sudo apt install --only-upgrade phpunit dpkg --compare-versions "$(dpkg-query -W -f='${Version}' phpunit)" ge "5.4.6-2" && echo PATCHED || echo STILL-VULNERABLE

Public exploits and detection

Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.

Advisories and coverage

Official advisories

Research and news

Verify at the official source NVD · CVE Program · CISA KEV catalog · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2017-9841?

phpunit: upgrade to 5.6.3; communications diameter signaling router: upgrade to newer than 8.5.0. Exact commands for each OS are on this page.

Is CVE-2017-9841 being exploited?

Yes. CVE-2017-9841 is on the CISA Known Exploited Vulnerabilities list, so treat it as patch-now.

What does CVE-2017-9841 affect?

CVE-2017-9841 affects phpunit, communications diameter signaling router. Severity is critical (CVSS 9.8). 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 /vend

How urgent is CVE-2017-9841?

Priority 97/100. Critical severity; EPSS top 1%: very likely to be exploited; Exploited in the wild (CISA KEV); Public exploit reference; CISA SSVC: automatable with total technical impact; Remotely exploitable, no login, no user action

Software pages

PHP vulnerabilities

Related CVEs

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.