Live threats

All CVEs / PHPCSStandards

CVE-2026-65954PHPCSStandards PHPCSUtils

High 8.6

Priority
52
CVSS 3.1
8.6
EPSS
—
Auth required
Yes
Published
Oct 12, 2026
Updated
Oct 16, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-95
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: total
Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H

What happens

PHPCSUtils is a suite of utility functions for use with PHP_CodeSniffer. From 1.0.0-alpha1 until 1.2.3, PHPCSUtils\AbstractSniffs\AbstractArrayDeclarationSniff::getActualArrayKey() 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. Known reachable paths include Universal.Arrays.DuplicateArrayKey and Universal.Arrays.MixedArrayKeyTypes. This issue is fixed in version 1.2.3.

Original NVD text.

What to do

  1. Apply the vendor's security update for PHPCSUtils.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Packagist phpcsstandards/phpcsutils ≥ 1.0.0-alpha1 < 1.2.3 1.2.3 composer require "phpcsstandards/phpcsutils:^1.2.3"

Per OSV / GitHub Advisories (GHSA-r6hr-vr92-vv28). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official sources

References

Links published by the sources. Open them with care.