CVE-2025-27092
JSON

8.7high

Path Traversal Vulnerability in GHOSTS Photo Retrieval Endpoint

Severity
8.7high CVSS:4.0 by GitHub_M
Exploit likelihood
0.90% (higher than 58% of CVEs)
Published
Last changed
Assigned by
GitHub_M

Description

GHOSTS is an open source user simulation framework for cyber experimentation, simulation, training, and exercise. A path traversal vulnerability was discovered in GHOSTS version 8.0.0.0 that allows an attacker to access files outside of the intended directory through the photo retrieval endpoint. The vulnerability exists in the /api/npcs/{id}/photo endpoint, which is designed to serve profile photos for NPCs (Non-Player Characters) but fails to properly validate and sanitize file paths. When an NPC is created with a specially crafted photoLink value containing path traversal sequences (../, ..\, etc.), the application processes these sequences without proper sanitization. This allows an attacker to traverse directory structures and access files outside of the intended photo directory, potentially exposing sensitive system files. The vulnerability is particularly severe because it allows reading arbitrary files from the server's filesystem with the permissions of the web application process, which could include configuration files, credentials, or other sensitive data. This issue has been addressed in version 8.2.7.90 and all users are advised to upgrade. There are no known workarounds for this vulnerability.

Affected

Product or packageVersionsReported by
cmu-sei GHOSTS>= 8.0.0, < 8.2.7.90CVE List
cmu ghostsfrom 8.0.0 before 8.2.7.90NVD

All scores

GitHub_M8.7high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Classification

CWE-22

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

GHOSTS is an open source user simulation framework for cyber experimentation, simulation, training, and exercise. A path traversal vulnerability was discovered in GHOSTS version 8.0.0.0 that allows an attacker to access files outside of the intended directory through the photo retrieval endpoint. The vulnerability exists in the /api/npcs/{id}/photo endpoint, which is designed to serve profile photos for NPCs (Non-Player Characters) but fails to properly validate and sanitize file paths. When an NPC is created with a specially crafted photoLink value containing path traversal sequences (../, ..\, etc.), the application processes these sequences without proper sanitization. This allows an attacker to traverse directory structures and access files outside of the intended photo directory, potentially exposing sensitive system files. The vulnerability is particularly severe because it allows reading arbitrary files from the server's filesystem with the permissions of the web application process, which could include configuration files, credentials, or other sensitive data. This issue has been addressed in version 8.2.7.90 and all users are advised to upgrade. There are no known workarounds for this vulnerability.

NVD (es)

Ghosts es una simulación de usuario de código abierto framework para la experimentación cibernética, simulación, entrenamiento y ejercicio. Se descubrió una vulnerabilidad Path Traversal en Ghosts versión 8.0.0.0 que permite a un atacante acceder a archivos fuera del directorio previsto a través de la recuperación de fotos endpoint. La vulnerabilidad existe en/API/NPCS/{ID}/endpoint DPOINT, que está diseñada para servir fotos de perfil para NPC (caracteres no jugadores) pero no puede validar correctamente y depurar rutas de archivo. Cuando se crea un NPC con un valor especialmente manipulado Photolink que contiene secuencias Path Traversal (../, .. \, etc.), la aplicación procesa estas secuencias sin apropiado depuración. Esto permite a un atacante recorrer estructuras de directorio y acceder a archivos fuera del directorio de fotos previsto, lo que puede exponer archivos sensibles sistema. La vulnerabilidad es particularmente severa porque permite leer archivos arbitrarios del sistema de archivos del servidor con los permisos del proceso de aplicación web, que podría incluir archivos de configuración, credenciales u otros datos confidenciales. Este problema se ha abordado en la versión 8.2.7.90 y se recomienda a todos los usuarios que actualicen. No se conocen workarounds para esta vulnerabilidad.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-27092 changed 2025-02-20CVE Terms of Use
NVDCVE-2025-27092 changed 2026-06-17Public domain