RCE in Baryhuang AWS Resources Mcp Server
CVE-2025-63604
A code injection vulnerability exists in baryhuang/mcp-server-aws-resources-python 0.1.0 that allows remote code execution through insufficient input validation in the execute_query method. The vulnerability stems from the exposure of dangerous Python built-in functions (__import__, getattr, hasattr) in the execution namespace and the direct use of exec() to execute user-supplied code. An attacker can craft malicious queries to execute arbitrary Python code, leading to AWS credential theft (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY), file system access, environment variable disclosure, and potential system compromise. The vulnerability allows attackers to bypass intended security controls and gain unauthorized access to sensitive AWS resources and credentials stored in the server's environment.
Vulnerability class: Command Injection (OS Command Injection)
EPSS: 0.003 (26.8th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N.
Affected products
- Baryhuang Aws_resources_mcp_server — versions 0.1.0
- N/a — versions n/a
Weakness classification (CWE)
References
- cve@mitre.org (Exploit, Third Party Advisory, Issue Tracking)
Frequently asked questions
- What is CVE-2025-63604?
- CVE-2025-63604 is a medium-severity vulnerability in Baryhuang AWS Resources Mcp Server, classified under Command Injection. CVSS score: 6.5/10. Published 2025-11-18.
- How severe is CVE-2025-63604?
- Medium severity. CVSS v3 base score is 6.5 out of 10.