# CVE-2025-63604: A code injection vulnerability exists in baryhuang/mcp-server-aws-resources-python 0.1.0 that allows remote code execution through insuffic…

- Severity: Medium 6.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.38%, higher than 33% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-11-18T00:00:00.000Z
- Modified: 2026-11-05T23:10:00.150Z
- Weaknesses: CWE-77
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- baryhuang aws_resources_mcp_server: 0.1.0

## References

- <https://github.com/baryhuang/mcp-server-aws-resources-python/issues/8> (exploit, issue-tracking, third-party-advisory)

## Sources

- CVE List: [CVE-2025-63604](https://www.cve.org/CVERecord?id=CVE-2025-63604), CVE Terms of Use, modified 2025-11-18
- NVD: [CVE-2025-63604](https://nvd.nist.gov/vuln/detail/CVE-2025-63604), Public domain, modified 2026-11-05

---

Page: https://cve.day/CVE-2025-63604 · Whole record: https://cve.day/CVE-2025-63604.json · Rebuilt by cve.day 2026-11-25T22:59:07.773Z
