Skip to main content
VulnerabilityPublished

CVE-2025-61489: mcp-shell · A Command Injection

Affects mcp-shellSource CVE Database V5

0

Not known to be exploited · CVSS 6.5 Medium.

Data as of 26 Oct 2026, 12:55 UTC

CVSS 3.1 base score
6.5Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.9% chance of exploitation in 30 days – higher than 61% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 7 Jan 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

Affected software

ProductAffectedFixed in
GitHubsonirico/mcp-shellpkg:github/sonirico/mcp-shellOther threatsAffected
  • =0.3.1
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Immediate mitigation steps include restricting network access to the sonirico mcp-shell service using firewalls or network segmentation to limit exposure. Implement strict input validation and sanitization on all inputs passed to shell_exec or replace the use of shell_exec with safer alternatives that do not invoke the shell directly. Monitor logs and system behavior for unusual command execution patterns indicative of exploitation attempts. Conduct vulnerability scanning and penetration testing focused on command injection vectors. Until an official patch is released, consider deploying application-layer firewalls or intrusion prevention systems with custom rules to detect and block malicious command strings. Educate developers and administrators about secure coding practices to prevent similar injection flaws. Maintain an incident response plan to quickly isolate and remediate affected systems if exploitation is detected.

Description

A command injection vulnerability in the shell_exec function of sonirico mcp-shell v0.3.1 allows attackers to execute arbitrary commands via supplying a crafted command string.

References

Community reviews

Loading reviews…