Known exploited vulnerability
CVE-2017-9841
The short answer
CVE-2017-9841 affects n/a n/a and is rated critical (CVSS 9.8). CISA added it to the Known Exploited Vulnerabilities catalog on 2022-02-15: attackers are using it, so patch it first. Fixed versions are published for phpunit/phpunit (4.8.28, 5.6.3).
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.
Weakness: CWE-94.
Severity
9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Exploited (CISA KEV)
Yes, since Feb 15, 2022
Federal due date Aug 15, 2022
EPSS, next 30 days
100%
Higher than 100% of scored CVEs
How it can be exploited
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- High
- Integrity impact
- High
- Availability impact
- High
What CISA says to do
Apply updates per vendor instructions.
Affected packages and fixed versions
| Package | Ecosystem | Fixed in | Advisory |
|---|---|---|---|
| phpunit/phpunit | Packagist | 4.8.28, 5.6.3 | GHSA-r7c9-c69m-rph8 |
Is it in your code? Drop your lockfile into the free vulnerability check, or let vulnerability watch check your repository every day and open the upgrade as a pull request.
Affected products
n/a. NVD's record lists the exact affected versions.
References
- github.com/sebastianbergmann/phpunit/commit/284a69fb88a2d0845d23f42974a583d8f59bf5a5 PatchThird Party Advisory
- github.com/sebastianbergmann/phpunit/pull/1956 PatchThird Party Advisory
- security.gentoo.org/glsa/201711-15 Third Party Advisory
- www.oracle.com/security-alerts/cpuoct2021.html PatchThird Party Advisory
- github.com/sebastianbergmann/phpunit/commit/284a69fb88a2d0845d23f42974a583d8f59bf5a5 PatchThird Party Advisory
- github.com/sebastianbergmann/phpunit/pull/1956 PatchThird Party Advisory
- security.gentoo.org/glsa/201711-15 Third Party Advisory
- www.oracle.com/security-alerts/cpuoct2021.html PatchThird Party Advisory
- www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2017-9841 US Government Resource
Questions
Is CVE-2017-9841 being exploited?
Yes. CISA added CVE-2017-9841 to its Known Exploited Vulnerabilities catalog on 2022-02-15, with a federal remediation due date of 2022-08-15.
How do I fix CVE-2017-9841?
Upgrade to a fixed version: phpunit/phpunit (Packagist) 4.8.28 or 5.6.3. CISA's required action: Apply updates per vendor instructions.
From NVD, CISA KEV, FIRST EPSS and OSV.dev, checked . Status on NVD: Analyzed. The description is NVD's text, quoted as published.
Related
Latest CVEs this week
Critical and High CVEs from the last 7 days, with KEV and EPSS.
Exploited vulnerabilities by vendor
Every vendor in CISA's KEV catalog, with its count.
PHPUnit exploited vulnerabilities
Everything CISA lists as exploited for PHPUnit.
Vulnerability watch
A briefing and a fix pull request when an advisory hits your dependencies.
Know the day a CVE lands in your code
Connect a GitHub repository and ZeusQA checks its dependencies daily, briefs each advisory and opens the fix. Three test runs free, no card.