PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-65954 PHPCSStandards CVE debrief

A vulnerability in PHPCSUtils, a suite of utility functions for use with PHP_CodeSniffer, allows for remote code execution via eval() in the AbstractArrayDeclarationSniff::getActualArrayKey() method. This issue affects versions from 1.0.0-alpha1 to 1.2.2 and is fixed in version 1.2.3. The vulnerability allows callback-form keys in untrusted PHP code scanned by an extending sniff to execute arbitrary commands on the scanning host. Defenders should assess exposure and prioritize updates to mitigate this vulnerability.

Vendor
PHPCSStandards
Product
PHPCSUtils
CVSS
HIGH 8.6
CISA KEV
Not listed in stored evidence
Original CVE published
2026-10-12
Original CVE updated
2026-10-12
Advisory published
2026-10-12
Advisory updated
2026-10-12

Who should care

Defenders responsible for PHP_CodeSniffer and PHPCSUtils deployments should assess exposure and prioritize updates to mitigate this vulnerability. This includes operators, platform administrators, vulnerability management teams, and security teams who use PHPCSUtils in their environments.

Why it matters

Defenders should prioritize updating PHPCSUtils to version 1.2.3 or later to mitigate remote code execution vulnerability.

  • Remote code execution on the scanning host
  • Potential for arbitrary command execution
  • Need for immediate update to version 1.2.3 or later

Technical summary

The AbstractArrayDeclarationSniff::getActualArrayKey() method in PHPCSUtils evaluates attacker-controlled array-key expressions with eval(), allowing callback-form keys in untrusted PHP code scanned by an extending sniff to execute arbitrary commands on the scanning host. This issue affects versions from 1.0.0-alpha1 to 1.2.2 and is fixed in version 1.2.3. Defenders should prioritize updating PHPCSUtils to version 1.2.3 or later to mitigate this vulnerability. The vulnerability allows for remote code execution on the scanning host and potential for arbitrary command execution.

Defensive priority

Defenders should prioritize updating PHPCSUtils to version 1.2.3 or later to mitigate this vulnerability.

Recommended defensive actions

  • Update PHPCSUtils to version 1.2.3 or later
  • Review and update any extending sniffs that use AbstractArrayDeclarationSniff
  • Monitor for any suspicious activity related to PHP_CodeSniffer
  • Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up
  • Review compensating controls for exposed systems while remediation is scheduled and verified
  • Check relevant monitoring, detection, and logs for exposed assets that need extra review
  • Track exceptions, retest remediated assets, and close the item only after evidence is documented

Evidence notes

The CVE record and source item provide details on the vulnerability, including its description, affected versions, and fixed version. The issue is reachable via Universal.Arrays.DuplicateArrayKey and Universal.Arrays.MixedArrayKeyTypes. There is no indication of exploitation in the wild, but defenders should verify the vulnerability's impact on their deployments.

Sources and references

Verified primary and authoritative sources

  • CVE-2026-65954 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-65954

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-65954 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-65954

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

  • PHPCSUtils: Remote code execution via eval() in AbstractArrayDeclarationSniff::getActualArrayKey

    Unverified legacy reference

    URL: https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/65xxx/CVE-2026-65954.json

    cve_program_cvelist_v5

  • Source reference

    Unverified legacy reference

    URL: https://github.com/PHPCSStandards/PHPCSUtils/security/advisories/GHSA-r6hr-vr92-vv28

    Supplemental source - x_refsource_CONFIRM

  • Source reference

    Unverified legacy reference

    URL: https://github.com/PHPCSStandards/PHPCSUtils/commit/e8648633ff5b8219b1b3e6346ce85abfc30f1429

    Supplemental source - x_refsource_MISC

  • Source reference

    Unverified legacy reference

    URL: https://github.com/PHPCSStandards/PHPCSUtils/releases/tag/1.2.3

    Supplemental source - x_refsource_MISC

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.