Security Resilience

CVE-2025-61489

Command Injection in Sonirico Mcp-Shell 0.3.1

Published
07 January 2026
Modified
29 January 2026
Patch / advisory
CVSS Score v3.1 6.5
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
EPSS Score 0.0097 62th percentile
Risk Priority 61 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2025-61489 is a medium-severity Command Injection (CWE-77) vulnerability in Sonirico Mcp-Shell. Its CVSS base score is 6.5 (Medium).

Operationally, ranked in the top 38% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.

This vulnerability is AI-related — categorised as AI Agent Protocols and Integrations; in the Supply Chain and Deployment risk domain.

The strongest mitigations our analysis identified map to SA-11 (Developer Testing and Evaluation) and SI-10 (Information Input Validation) — see the control section below for these in your framework.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

CVE-2025-61489 is a command injection vulnerability (CWE-77) affecting the shell_exec function in sonirico mcp-shell version 0.3.1. Published on 2026-01-07, it allows attackers to execute arbitrary commands by supplying a crafted command string. The vulnerability carries a CVSS v3.1 base score of 6.5 (AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N), indicating network accessibility with low attack complexity.

Unauthenticated remote attackers can exploit this vulnerability over the network without requiring user interaction or privileges. Exploitation involves crafting a malicious command string that triggers arbitrary command execution via shell_exec, potentially leading to limited impacts on confidentiality and integrity, such as unauthorized access to certain data or modifications, while availability remains unaffected.

Mitigation details and patches are referenced in the project's GitHub repository at https://github.com/sonirico/mcp-shell and the associated issue tracker at https://github.com/sonirico/mcp-shell/issues/4. Security practitioners should review these sources for updates, workarounds, or remediation steps specific to the affected version.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

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.

CWE(s)

AI Security AnalysisAI

AI Category
AI Agent Protocols and Integrations
Risk Domain
Supply Chain and Deployment
OWASP Top 10 for LLMs 2025
None mapped
Classification Reason
Matched keywords: mcp

Related Threats

CVEs Like This One

CVE-2025-53107Shared CWE-77
CVE-2025-63603Shared CWE-77
CVE-2026-22688Shared CWE-77
CVE-2025-53355Shared CWE-77
CVE-2025-66404Shared CWE-77
CVE-2025-58358Shared CWE-77
CVE-2025-53372Shared CWE-77
CVE-2025-53098Shared CWE-77
CVE-2026-30625Shared CWE-77
CVE-2025-54424Shared CWE-77

Affected Assets

sonirico
mcp-shell
0.3.1

Mitigating Controls

Mitigating Controls (NIST 800-53 r5) AI

Developer testing and evaluation can discover command-construction flaws before deployment.

Input validation directly stops construction of commands from untrusted data containing special elements.

Secure engineering principles include proper neutralization and safe command construction practices.

Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.

finds

Security testing in development catches command-injection vulnerabilities before release.

prevents

Secure coding standards require proper escaping and parameterization of commands, directly eliminating CWE-77.

Hardening callouts derived

DISA STIG baselines are authored against specific weaknesses. Where this CVE cites a broad weakness class, the mapping is not asserted at that abstraction (owner ruling, 2026-09-25: grade only at Base and below), so no rule is shown here rather than a rule shown against the wrong grain.

  • No fine-grained STIG row for CWE-77, a class-level weakness, and none of its children carries one either.

References