CVE-2025-63604 Code injection in n/a
Attackers can execute arbitrary Python code via malicious queries, leading to AWS credential theft and system compromise in the MCP server library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2025-63604?
CVE-2025-63604 is a medium-severity code injection vulnerability in n/a, published on 18 Nov 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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.
Weakness: CWE-77
Which versions are affected by CVE-2025-63604?
It affects 1 product.
Products include Baryhuang Aws Resources Mcp Server.
How do I fix CVE-2025-63604?
No fix has been published for CVE-2025-63604 yet. Limit exposure of the affected software until one is available.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2025-63604 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-63604 exists.
Sources
Also known as GHSA-fxw5-f8vf-f238.