CVE-2025-63604
JSON

6.5medium

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

Severity
6.5medium CVSS:3.1 by CISA-ADP
Exploit likelihood
0.38% (higher than 33% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
baryhuang aws_resources_mcp_server0.1.0NVD

Classification

CWE-77

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total.

What each source says

CVE List

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.

NVD (es)

Una vulnerabilidad de inyección de código existe en baryhuang/mcp-server-aws-resources-python 0.1.0 que permite la ejecución remota de código a través de validación de entrada insuficiente en el método execute_query. La vulnerabilidad se origina en la exposición de funciones integradas peligrosas de Python (__import__, getattr, hasattr) en el namespace de ejecución y el uso directo de exec() para ejecutar código proporcionado por el usuario. Un atacante puede elaborar consultas maliciosas para ejecutar código Python arbitrario, lo que lleva al robo de credenciales de AWS (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY), acceso al sistema de archivos, divulgación de variables de entorno y un posible compromiso del sistema. La vulnerabilidad permite a los atacantes eludir los controles de seguridad previstos y obtener acceso no autorizado a recursos y credenciales sensibles de AWS almacenados en el entorno del servidor.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-63604 changed 2025-11-18CVE Terms of Use
NVDCVE-2025-63604 changed 2026-11-05Public domain