# CVE-2021-30124: The unofficial vscode-phpmd (aka PHP Mess Detector) extension before 1.3.0 for Visual Studio Code allows remote attackers to execute arbitr…

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.05%, higher than 87% of CVEs (2026-12-01)
- Published: 2021-07-29T10:27:18.000Z
- Modified: 2026-06-17T03:49:42.547Z
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- vscode-phpmd_project vscode-phpmd: before 1.3.0

## Every score

- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://marketplace.visualstudio.com/items?itemName=ecodes.vscode-phpmd> (product)
- <https://vuln.ryotak.me/advisories/25> (third-party-advisory)
- <https://github.com/sandhje/vscode-phpmd/commit/c462bf5c6f0160d0199855d5f8ed76be8d9beac0> (patch, third-party-advisory)

## Sources

- CVE List: [CVE-2021-30124](https://www.cve.org/CVERecord?id=CVE-2021-30124), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-30124](https://nvd.nist.gov/vuln/detail/CVE-2021-30124), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-30124 · Whole record: https://cve.day/CVE-2021-30124.json · Rebuilt by cve.day 2026-11-25T22:58:02.889Z
