PT-2025-10095 · Docker+2 · Docker+2

Kevin Stubbings

+1

·

Published

2025-03-07

·

Updated

2025-03-08

·

CVE-2025-27519

CVSS v4.0

9.3

Critical

VectorAV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions Cognita versions (affected versions not specified)
Description A path traversal issue exists at "/v1/internal/upload-to-local-directory" when the Local environment variable is set to true, such as when Cognita is set up using Docker. This allows an attacker to overwrite the /app/backend/ init .py file. Because the Docker environment sets up the backend uvicorn server with auto-reload enabled, the overwritten file will automatically be reloaded and executed, enabling remote code execution in the context of the Docker container.
Recommendations For all affected versions, update to a version that includes the fix from commit a78bd065e05a1b30a53a3386cc02e08c317d2243 to resolve the issue. As a temporary workaround, consider disabling the auto-reload feature of the uvicorn server or restricting access to the "/v1/internal/upload-to-local-directory" endpoint until the issue is resolved.

Exploit

Fix

RCE

Path traversal

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2025-27519

Affected Products

Cognita
Docker
Uvicorn