{"id":"CVE-2026-31040","aliases":["CVE-2026-31040","GHSA-jpcj-7wfg-mqxv","PYSEC-2026-3076"],"related":[],"kind":"vulnerability","state":"published","title":"stata-mcp has insufficient validation of user-supplied Stata do-file content that can lead to command execution","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Se identificó una vulnerabilidad en stata-mcp anterior a la v1.13.0 donde la validación insuficiente del contenido de archivos do de Stata proporcionados por el usuario puede llevar a la ejecución de comandos.","source":"nvd"}],"published":"2026-04-08T00:00:00.000Z","modified":"2026-07-25T10:10:00.167Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:4.0","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","rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","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"}],"cwes":["CWE-20","CWE-94"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.13.0"}],"ecosystem":"PyPI","package":"stata-mcp","purl":"pkg:pypi/stata-mcp","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.13.0"}],"vendor":"statamcp","product":"stata-mcp","cpe":"cpe:2.3:a:statamcp:stata-mcp:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.13.0"}],"ecosystem":"PyPI","package":"stata-mcp","purl":"pkg:pypi/stata-mcp","source":"pysec"}],"references":[{"url":"https://github.com/SepineTam/stata-mcp/issues/20","tags":["exploit","issue-tracking","vendor-advisory","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/SepineTam/stata-mcp/pull/21","tags":["issue-tracking","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/SepineTam/stata-mcp/commit/52413ce","tags":["patch","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/SepineTam/stata-mcp/releases/tag/v1.13.0","tags":["release-notes","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31040","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/sepinetam/stata-mcp","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/stata-mcp","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-jpcj-7wfg-mqxv","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"total","date":"2026-04-09T18:23:38.978Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31040","url":"https://www.cve.org/CVERecord?id=CVE-2026-31040","licence":"CVE Terms of Use","modified":"2026-04-09T20:19:10.339Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-jpcj-7wfg-mqxv","url":"https://github.com/advisories/GHSA-jpcj-7wfg-mqxv","licence":"CC-BY-4.0","modified":"2026-07-13T16:43:50.804Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31040","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31040","licence":"Public domain","modified":"2026-07-25T10:10:00.167Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-3076","url":"https://osv.dev/vulnerability/PYSEC-2026-3076","licence":"CC-BY-4.0","modified":"2026-07-13T16:33:12.969Z"}],"updatedAt":"2026-11-25T22:59:18.284Z","epss":{"score":0.0058,"percentile":0.49061,"date":"2026-12-01T12:00:22.000Z"}}