# CVE-2026-55071: MCP-for-Stata: Stata Command Injection via Unsanitized `package` in `ado_package_install`

- Severity: High 8.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/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): 0.42%, higher than 37% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-12T19:23:38.000Z
- Modified: 2026-09-24T21:17:43.237Z
- Also known as: GHSA-49m4-vp58-wgc9, PYSEC-2026-3700
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

MCP-for-Stata is a MCP server for integrating Stata into agent loops with a safety-first design. Prior to version 1.19.0, the ado_package_install MCP tool in stata-mcp concatenates user-controlled input directly into a Stata command string without any validation or sanitization. An attacker who can invoke the MCP tool or the equivalent Python API can embed newline characters in the package argument to inject arbitrary Stata commands. Because Stata supports a shell escape command, this leads to full OS-level arbitrary command execution (RCE) under the account running the Stata-MCP server. The tool is registered in the default all profile, so no non-default configuration is required. This issue has been patched in version 1.19.0.

(As written by CVE List.)

## Affected

- SepineTam mcp-for-stata: < 1.19.0
- stata-mcp (PyPI): before 1.19.0

## Every score

- GitHub_M: CVSS:3.1 8.4 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.4 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 8.4 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/SepineTam/mcp-for-stata/security/advisories/GHSA-49m4-vp58-wgc9> (exploit, web)
- <https://github.com/SepineTam/mcp-for-stata/releases/tag/v1.19.0> (web)
- <https://github.com/SepineTam/mcp-for-stata> (package)
- <https://pypi.org/project/stata-mcp> (package)
- <https://github.com/advisories/GHSA-49m4-vp58-wgc9> (advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-55071> (advisory)

## Sources

- CVE List: [CVE-2026-55071](https://www.cve.org/CVERecord?id=CVE-2026-55071), CVE Terms of Use, modified 2026-09-21
- GitHub Advisory Database: [GHSA-49m4-vp58-wgc9](https://github.com/advisories/GHSA-49m4-vp58-wgc9), CC-BY-4.0, modified 2026-08-19
- NVD: [CVE-2026-55071](https://nvd.nist.gov/vuln/detail/CVE-2026-55071), Public domain, modified 2026-09-24
- PyPA Advisory Database: [PYSEC-2026-3700](https://osv.dev/vulnerability/PYSEC-2026-3700), CC-BY-4.0, modified 2026-08-19

---

Page: https://cve.day/CVE-2026-55071 · Whole record: https://cve.day/CVE-2026-55071.json · Rebuilt by cve.day 2026-11-25T22:59:40.332Z
