What’s Vulnerable › Vulnerabilities
CVE-2021-30124
- Severity: critical (CVSS 9.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 3.0% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2021-07-30 · updated 2026-06-17
Description
The unofficial vscode-phpmd (aka PHP Mess Detector) extension before 1.3.0 for Visual Studio Code allows remote attackers to execute arbitrary code via a crafted phpmd.command value in a workspace folder.
Affected products
- Vscode-Phpmd Project Vscode-Phpmd: before 1.3.0 — fixed in 1.3.0
How to fix
Upgrade to a fixed version: Vscode-Phpmd Project Vscode-Phpmd 1.3.0. Check the vendor advisory for mitigations.
References
- https://github.com/sandhje/vscode-phpmd/commit/c462bf5c6f0160d0199855d5f8ed76be8d9beac0
- https://marketplace.visualstudio.com/items?itemName=ecodes.vscode-phpmd
- https://vuln.ryotak.me/advisories/25
- https://github.com/sandhje/vscode-phpmd/commit/c462bf5c6f0160d0199855d5f8ed76be8d9beac0
- https://marketplace.visualstudio.com/items?itemName=ecodes.vscode-phpmd
- https://vuln.ryotak.me/advisories/25
Get alerted when CVE-2021-30124 or the next vulnerability affects your stack