Back to CVE catalog

AI summary

PHPUnit before 4.8.28 and 5.x before 5.6.3 contains an eval-stdin.php file that lets remote attackers execute arbitrary PHP code via HTTP POST data beginning with the "<?php " string, as demonstrated on a site where the /vendor folder is exposed externally.

Generated automatically from the source description. Check the sources below before acting.

CVE-2017-9841

Remote Code Execution in PHPUnit

PHPUnit PHPUnit

At a glance

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.

Source description · CVE List / CNA

System impact

Attack complexityLow
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

CVSS summary v3.1

9.8Critical
Published:
Updated:
EPSS:
99.999%
Exploited in attacks:
Confirmed
Ransomware campaigns:
Not confirmed
Attack vector:
Network

Affected software

Vendor, product and affected version ranges.

Vendor, product and affected versions
Vendor:oraclecommunications diameter signaling routerAffected versions:
≥ 8.0.0, ≤ 8.5.0
Vendor:phpunit_projectphpunitAffected versions:
≥ 5.0.0, < 5.6.3Show full version range for phpunit
≤ 4.8.27
Vendor:Debianphpunit
Environments (4)
  • bookworm
  • forky
  • sid
  • trixie
Affected versions:
< 5.4.6-2
Vendor:Canonicalphpunit
Environments (1)
  • xenial
Affected versions:
< 5.1.3-1+ubuntu3+esm1
Vendor:Arch LinuxmediawikiAffected versions:
≥ 1.28.2-1, < 1.28.3-1
Vendor:PHPUnitPHPUnitAffected versions:Source does not specify a version range

1–6 of 6 · Page 1 of 1

CVSS scores and metrics8
[email protected] · NVD (Primary)Primary9.8 / 10CriticalCVSS 3.1Details
Attack complexity
Low
Confidentiality
High
Integrity
High
Availability
High
Attack vector
Network
Privileges required
Not required
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CISA-ADP · CVE List / CNA (adp)9.8 / 10CriticalCVSS 3.1Details
Attack complexity
Low
Confidentiality
High
Integrity
High
Availability
High
Attack vector
Network
Privileges required
Not required
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
134c704f-9b21-4f2e-91b3-4a467353bcc0 · NVD (Secondary)9.8 / 10CriticalCVSS 3.1Details
Attack complexity
Low
Confidentiality
High
Integrity
High
Availability
High
Attack vector
Network
Privileges required
Not required
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVE-2017-9841 · OSV (source-vector)9.8 / 10CriticalCVSS 3.1Details
Attack complexity
Low
Confidentiality
High
Integrity
High
Availability
High
Attack vector
Network
Privileges required
Not required
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
canonical · Wazuh CTI (adp)9.8 / 10CriticalCVSS 3.1Details
Attack complexity
Low
Confidentiality
High
Integrity
High
Availability
High
Attack vector
Network
Privileges required
Not required
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvd · Wazuh CTI (cna)9.8 / 10CriticalCVSS 3.1Details
Attack complexity
Low
Confidentiality
High
Integrity
High
Availability
High
Attack vector
Network
Privileges required
Not required
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
[email protected] · NVD (Primary)7.5 / 10HighCVSS 2.0Details
Attack complexity
Low
Confidentiality
Partial
Integrity
Partial
Availability
Partial
Attack vector
Network
Authentication
Not required

Source vector

AV:N/AC:L/Au:N/C:P/I:P/A:P
nvd · Wazuh CTI (cna)7.5 / 10HighCVSS 2.0Details
Attack complexity
Low
Confidentiality
Partial
Integrity
Partial
Availability
Partial
Attack vector
Network
Authentication
Not required

Source vector

AV:N/AC:L/Au:N/C:P/I:P/A:P

CVSS measures severity; EPSS estimates exploitation probability. Lack of confirmed attacks does not mean lack of risk.

Sources and advisories17

This product uses the NVD API but is not endorsed or certified by the NVD. CVE® records © The MITRE Corporation, reproduced under the CVE Terms of Use. Data sources and licences