Known exploited vulnerability

CVE-2017-9841

criticalCVSS 3.1 9.8In CISA KEVEPSS 100%Published · n/a

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

PackageEcosystemFixed inAdvisory
phpunit/phpunitPackagist4.8.28, 5.6.3GHSA-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

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

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.