Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-65954— PHPCSUtils: Remote code execution via eval() in AbstractArrayDeclarationSniff::getActualArrayKey()

Quick assessment

Affected
PHPCSStandards PHPCSUtils
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

PHPCSUtils 是一套用于 PHP_CodeSniffer 的工具函数套件。从版本 1.0.0-alpha1 到 1.2.3,PHPCSUtils\AbstractSniffs\AbstractArrayDeclarationSniff::getActualArrayKey() 方法在处理攻击者可控的数组键表达式时使用了 eval() 函数,从而导致在由扩展嗅探器(extending sniff)扫描的不受信任 PHP 代码中,回调形式的数组键可执行任意命令,影响扫描主机。已知的可达路径包括 Universa

CVSS 8.6 · High

Affected Version Matrix 1

VendorProduct Version RangeStatus
PHPCSStandards PHPCSUtils >= 1.0.0-alpha1, <= 1.2.2 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-65954

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
PHPCSUtils: Remote code execution via eval() in AbstractArrayDeclarationSniff::getActualArrayKey()
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
动态执行代码中指令转义处理不恰当(Eval注入)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
PHPCSStandards PHPCSUtils >= 1.0.0-alpha1, <= 1.2.2 -

II. Public POCs for CVE-2026-65954

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-65954

请登录查看更多情报信息。

Other References for CVE-2026-65954 (3)

IV. Related Vulnerabilities

V. Comments for CVE-2026-65954

No comments yet


Leave a comment