Skip to main content

CVE-2026-65954: CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') in PHPCSStandards PHPCSUtils

0
High
VulnerabilityCVE-2026-65954cvecve-2026-65954cwe-95
Published: 10/12/2026 (10/12/2026, 18:51:01 UTC)
Source: CVE Database V5
Vendor/Project: PHPCSStandards
Product: PHPCSUtils

Description

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.

CVSS v3.1

Score 8.6high

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H

Affected software

PHPCSStandards

PHPCSUtils

Affected versions
>=1.0.0-alpha1 <=1.2.2

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-07-23T18:15:14.578Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6ace5a0a2cdf04f65685c314

Added to database: 10/13/2026, 16:19:22 UTC

Last updated: 10/13/2026, 16:19:22 UTC

Views: 1

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses