{"id":"CVE-2026-31040","aliases":["EUVD-2026-20475","GHSA-jpcj-7wfg-mqxv","PYSEC-2026-3076"],"status":"published","title":"stata-mcp has insufficient validation of user-supplied Stata do-file content that can lead to command execution","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.","severity":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"adp","from":"cve"},"epss":{"day":"2026-11-11","score":0.00567,"percentile":0.47486,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-20","CWE-94"],"published":"2026-04-08T00:00:00Z","modified":"2026-10-28T02:31:13Z","fixes":[{"ecosystem":"PyPI","package":"stata-mcp","fixed_in":["1.13.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"stata-mcp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.13.0"}]}]},{"source":"osv","ecosystem":"PyPI","package":"stata-mcp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.13.0"}]}],"versions":["0.1.0","1.10.0","1.10.1","1.10.2","1.11.0","1.11.1","1.12.0","1.12.1","1.3.10","1.3.2","1.3.3","1.3.4","1.3.5","1.3.6","1.3.7","1.3.8","1.4.0","1.4.1","1.5.1","1.5.2","1.5.3","1.6.0","1.6.1","1.6.2","1.6.3","1.7.0","1.7.1","1.7.2","1.7.3","1.7.4","1.8.0","1.8.1","1.8.2","1.9.0","1.9.1"]},{"source":"osv","ecosystem":"PyPI","package":"stata-mcp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.13.0"}]}],"versions":["0.1.0","1.10.0","1.10.1","1.10.2","1.11.0","1.11.1","1.12.0","1.12.1","1.3.10","1.3.2","1.3.3","1.3.4","1.3.5","1.3.6","1.3.7","1.3.8","1.4.0","1.4.1","1.5.1","1.5.2","1.5.3","1.6.0","1.6.1","1.6.2","1.6.3","1.7.0","1.7.1","1.7.2","1.7.3","1.7.4","1.8.0","1.8.1","1.8.2","1.9.0","1.9.1"]}],"products":[{"vendor":"statamcp","product":"stata-mcp"}],"references":[{"url":"https://github.com/SepineTam/stata-mcp/issues/20","tags":["exploit","Issue Tracking","Vendor Advisory","report","web"]},{"url":"https://github.com/SepineTam/stata-mcp/pull/21","tags":["Issue Tracking","fix","web"]},{"url":"https://github.com/SepineTam/stata-mcp/commit/52413ce","tags":["Patch","fix","web"]},{"url":"https://github.com/SepineTam/stata-mcp/releases/tag/v1.13.0","tags":["Release Notes","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31040","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-jpcj-7wfg-mqxv","tags":["advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31040.json","tags":["advisory"]},{"url":"https://github.com/sepinetam/stata-mcp","tags":["package"]},{"url":"https://pypi.org/project/stata-mcp","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2026-31040","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.","status":"published","published":"2026-04-08T00:00:00Z","modified":"2026-04-09T20:19:10.339Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"adp"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T14:19:51.277563Z"}],"euvd":[{"id":"EUVD-2026-20475","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.","status":"published","published":"2026-04-08T00:00:00Z","modified":"2026-04-09T20:19:10Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T19:24:30.341772Z"}],"ghsa":[{"id":"GHSA-jpcj-7wfg-mqxv","title":"stata-mcp has insufficient validation of user-supplied Stata do-file content that can lead to command execution","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.","status":"published","published":"2026-04-08T18:34:06Z","modified":"2026-04-08T19:24:12Z","cvss":[{"version":"4.0","score":8.7,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","level":"high"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T14:39:51.193071Z"}],"nvd":[{"id":"CVE-2026-31040","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.","status":"published","published":"2026-04-08T16:16:22.977Z","modified":"2026-07-25T10:10:00.167Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"secondary"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T14:12:13.535987Z"}],"osv":[{"id":"CVE-2026-31040","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.","status":"published","published":"2026-04-08T00:00:00Z","modified":"2026-10-28T02:31:13.936264587Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:45:00.861953Z"},{"id":"GHSA-jpcj-7wfg-mqxv","title":"stata-mcp has insufficient validation of user-supplied Stata do-file content that can lead to command execution","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.","status":"published","published":"2026-04-08T18:34:06Z","modified":"2026-07-13T16:43:50.804416396Z","cvss":[{"version":"4.0","score":8.7,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","level":"high"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T15:46:50.687609Z"},{"id":"PYSEC-2026-3076","title":"stata-mcp has insufficient validation of user-supplied Stata do-file content that can lead to command execution","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.","status":"published","published":"2026-07-13T14:36:49.980423Z","modified":"2026-07-13T16:33:12.96965226Z","cvss":[{"version":"4.0","score":8.7,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","level":"high"}],"updated_at":"2026-11-02T15:52:56.429374Z"}]}}
