PHPUnit · PHPUnit · CWE-94 · published 2017-06-27

CVE-2017-9841PHPUnit Command Injection Vulnerability

This week Known exploited in the wild.

CVE-2017-9841 is actively exploited in the wild: CISA added it to the Known Exploited Vulnerabilities catalog on 2022-02-15. EPSS estimates a 100% chance of exploitation in the next 30 days, higher than 99% of all CVEs. This PHPUnit vulnerability: CVSS 9.8 (v3.1), attacks can be automated, a successful attack gives total control of the component. Patched packages are out for Debian. US federal agencies must remediate by 2022-08-15. Patch this week.

Share this

Remediation#

CISA required action: Apply updates per vendor instructions. (federal due date 2022-08-15)

Linux distribution packages

If you run the distro’s package rather than an upstream build, this is the version to look for.

DistroReleasePackageStatus
Debian13 trixiephpunitFixed in 5.4.6-2
12 bookwormphpunitFixed in 5.4.6-2

From the Debian Security Tracker, Ubuntu security notices (CC BY-SA 4.0) and Red Hat Security Data (CC BY 4.0). Check the distro link before acting.

Patch events

  1. This weekExploited (KEV)CISA due 2022-08-15

    Other softwarePHPUnit

    Command InjectionCVE-2017-9841

    Why: Known exploited in the wild.

Exploit intelligence#

SignalValueSource
Known exploitedYes, added 2022-02-15CISA KEV
Ransomware useUnknownCISA KEV
EPSS (30-day exploitation probability)100% (100th pct)FIRST EPSS v2026.06.15
CVSS base score9.8 (v3.1)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CNA / CISA ADP
SSVC exploitationactiveCISA Vulnrichment
SSVC automatableYesCISA Vulnrichment
SSVC technical impacttotalCISA Vulnrichment

Weakness: CWE-94: Improper Control of Generation of Code

More from this vendor: all PHPUnit vulnerabilities · recent KEV additions

Affected versions (from the CVE record)#

Description (from the CVE record)#

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.

Quoted from the CVE Program record.

Elsewhere#

Distro status: Debian · Ubuntu · Red Hat · Alpine

Something wrong on this page?
Anonymous. Reports are checked against the primary source.

Also on today's list

See today's list → · Coming up →