Security Advisory

CVE-2025-27092: GHOSTS Path Traversal in NPC Photo Retrieval

Path traversal in the GHOSTS photo retrieval endpoint allows arbitrary file reads through crafted NPC photoLink values.

Overview

GHOSTS is an open source user simulation framework from Carnegie Mellon's SEI, used in cyber training and exercises. The /api/npcs/{id}/photo endpoint serves profile images for simulated users and reads the file named in each NPC's photoLink field without sanitizing it.

An attacker creates an NPC with traversal sequences in photoLink and then requests its photo. The server returns any file the application process can read. GHOSTS 8.2.7.90 fixes the issue. There is no workaround.

Affected products

  • GHOSTS 8.0.0.0 through 8.2.7.89

Disclosure timeline

18 Feb 2025
CVE-2025-27092 reserved
19 Feb 2025
GitHub advisory and CVE published; fix released in GHOSTS 8.2.7.90