Critical· 9.8official fix available
CVE-2026-31040
A vulnerability in stata-mcp versions prior to v1.13.0 allows attackers to execute arbitrary commands by supplying malicious Stata do-file content due to insufficient validation. The flaw is rated critical with a CVSS base score of 9.8. No known exploitation or public exploit has been reported.
publishedApr 8, 2026
last modifiedJul 25, 2026
sourcesNVD
severity · cvss
9.8
critical · how bad it is
exploitation · epss
<1%
43th percentile · chance of exploitation in 30 days
(ai-assisted) A model wrote this summary from the official data, so double-check it against the source before you act on it. Read the official advisory →
auto-deletes from the system
counting…on Aug 25, 2026
An official fix is available, so this entry is kept for 30 days and then removed automatically.
01
Who is affected
statamcp stata-mcp
02
Real-world impact
An attacker could run arbitrary commands on systems running vulnerable stata-mcp, potentially leading to full compromise.
03
Why this severity
CVSS 9.8 reflects network‑accessible, low‑complexity attack requiring no privileges or user interaction, with high impact on confidentiality, integrity, and availability.
04
What to do about it
official fix available
recommended steps
- 01Upgrade stata-mcp to version v1.13.0 or later.
NVD-referenced vendor advisory
05
Timeline
- Apr 8, 2026 · Apr 8, 2026PublishedDisclosed and added to the National Vulnerability Database.
- Jul 25, 2026 · 11d agoAdvisory updatedThe NVD record was last revised.
- Jul 26, 2026 · 10d agoOfficial fix availableA vendor patch or mitigation now exists — see the remediation steps above.
06
How it’s attacked
Attack vectorNetwork (remote)
Attack complexityLow
Privileges requiredNone
User interactionNone needed
ScopeUnchanged
Confidentiality impactHigh
Integrity impactHigh
Availability impactHigh
07
References & advisories
- github.com/SepineTam/stata-mcp/commit/…patch
- github.com/SepineTam/stata-mcp/issues/…issue trackingvendor advisory
- github.com/SepineTam/stata-mcp/pull/21issue tracking
- github.com/SepineTam/stata-mcp/release…release notes
(ai-assisted) A model wrote this summary from the official data, so double-check it against the source before you act on it. Read the official advisory →