CVE-2026-129995 CVSS 8.8 — HIGH other เผยแพร่: 2026-11-20

ช่องโหว่ Command Injection — CVE-2026-129995 (CVSS 8.8)

⚠️ EMERGENCY ระดับสูง (CVSS 8.8) — แก้ไขทันที Command Injection มีความอันตรายเทียบเท่า RCE

📋 สรุปช่องโหว่

ช่องโหว่ Command Injection ถูกค้นพบโดยมี CVSS Score สูงถึง 8.8 ระดับ "สูง" ช่องโหว่ประเภทนี้ทำให้ผู้โจมตีสามารถฉีดคำสั่ง OS เข้าไปในระบบผ่านข้อมูลที่ส่งเข้ามา ส่งผลให้สามารถรันคำสั่งบน shell ของระบบปฏิบัติการได้โดยตรง

ความรุนแรงเทียบเท่า RCE เพราะผู้โจมตีได้รับการควบคุม OS shell ซึ่งสามารถทำได้ทุกอย่างที่ process นั้นมีสิทธิ์ทำ

💥 ผลกระทบที่อาจเกิดขึ้น

ผลกระทบจาก Command Injection:

• รันคำสั่ง OS ได้ตามต้องการ: ls, cat /etc/passwd, wget, curl
• ขโมย Configuration Files: อ่านไฟล์ config ที่มี database credentials, API keys
• Reverse Shell: สร้าง shell กลับหาผู้โจมตีเพื่อควบคุมระยะยาว
• Pivot Attack: โจมตีเครื่องอื่นในเครือข่ายเดียวกัน
• Ransomware/Cryptominer: ติดตั้ง malware บนระบบ

🖥️ ซอฟต์แวร์และระบบที่ได้รับผลกระทบ

ตรวจสอบรายละเอียดจาก https://nvd.nist.gov/vuln/detail/CVE-2026-129995

🔧 แนวทางการแก้ไขและป้องกัน

  • ขั้นตอนแก้ไข:
  • 1. อัพเดต Patch ทันที: ติดตั้งเวอร์ชันที่แก้ไขแล้วจาก vendor
  • 2. Input Validation: ตรวจสอบและ sanitize ข้อมูลทุกค่าก่อนนำไปประกอบคำสั่ง OS
  • 3. ใช้ Parameterized Commands: แทนการต่อ string ด้วย system() ควรใช้ escapeshellarg()
  • 4. Principle of Least Privilege: รัน application ด้วย user ที่มีสิทธิ์น้อยที่สุด
  • 5. ตรวจสอบ Logs: ค้นหา command ที่น่าสงสัยใน system log
  • 6. Firewall Outbound: บล็อก outbound connection ที่ไม่จำเป็นเพื่อป้องกัน reverse shell

📄 รายละเอียดต้นฉบับ (ภาษาอังกฤษ)

mcp-ssh-manager is an MCP server for managing servers over SSH with human approval, an encrypted vault, and a live audit trail. Prior to 3.8.5, ssh_backup_create, ssh_backup_restore, ssh_backup_schedule, and ssh_backup_list build remote shell commands from caller-controlled values in src/backup-manager.js and inline backup handlers in src/index.js without neutralizing shell metacharacters. Crafted database, connection, backup directory, path, exclusion, schedule, or comment arguments can therefore execute arbitrary OS commands on managed remote servers as the configured SSH user. ssh_backup_schedule can persist execution through cron. ssh_backup_list does not pass through the server policy check and remains available in readonly and restricted modes, allowing command execution despite those restrictions. Tool arguments can be supplied by a malicious or compromised MCP client or steered through indirect prompt injection; fully trusted benign arguments do not trigger the issue. The earlier database-helper remediation for CVE-2026-77383 applied shell quoting to src/database-manager.js but did not cover these parallel backup builders. This issue is fixed in version 3.8.5.

🔗 แหล่งอ้างอิง