CVE•Published 2026-04-08•Modified 2026-07-25•1 article on news•5 live references•NVD data
CVE-2026-31040Statamcp · Stata-mcp
Vulnerability data via NVD (ingested)
CVSS v3.1
9.8
CRITICAL
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS percentile
43
Exploit Prediction Scoring System · top 57% of all CVEs
Weaknesses (CWE)
Description
A vulnerability was identified in stata-mcp prior to v1.13.0 where insufficient validation of user-supplied Stata do-file content can lead to command execution.
Timeline
Published 2026-04-08
Modified 2026-07-25
External references
Search for exposed instances
Shodan + Censys queries derived from NVD's CPE data. The vuln tag catches assets Shodan has explicitly linked to this CVE; the product / banner fingerprints find exposed instances even when the vuln tag was never applied (which is common).
Shodan · vuln tag0 hosts
vuln:CVE-2026-31040Hosts Shodan has explicitly fingerprinted as vulnerable.
Shodan · product
product:"Statamcp Stata-mcp"All exposed Statamcp Stata-mcp instances — cross-reference with the CVE's affected-version range.
Shodan · banner/body mention
http.html:"Stata-mcp"HTTP body or banner mentions "Stata-mcp" — catches deploys Shodan didn't identify as a product.
More intel sources (5)
Shodan report
vuln:CVE-2026-31040Country / ASN / product breakdown for the vuln query.
Censys
vulnerabilities.cve_id: CVE-2026-31040Censys host search filtered to this CVE id.
grep.app
CVE-2026-31040Public source-code mentions — fast PoC discovery.
GitHub code
CVE-2026-31040GitHub code search for direct mentions.
Google dork
"CVE-2026-31040" exploit -site:nvd.nist.govWrite-ups and news, NVD excluded.
Known PoCs on GitHub (2)
CVE-2026-310402 repos
SepineTam/mcp-for-stataPython
Stata-MCP: A MCP server for integrating Stata into your agent loop with a safety-first design.
54cwh/mcp-for-stata-winePython
Wine-enabled fork of SepineTam/stata-mcp: drive a Windows Stata build (Stata 18 MP) from Linux via wine. AGPL-3.0; not affiliated with the upstream project or StataCorp.