# CVE-2025-27519: Cognita Arbitrary File Write

- Severity: Critical 9.3 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA: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): 1.39%, higher than 73% of CVEs (2026-12-01)
- Published: 2025-03-07T15:36:34.819Z
- Modified: 2026-06-17T09:03:44.887Z
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Cognita is a RAG (Retrieval Augmented Generation) Framework for building modular, open source applications for production by TrueFoundry. A path traversal issue exists at /v1/internal/upload-to-local-directory which is enabled when the Local env variable is set to true, such as when Cognita is setup using Docker. Because the docker environment sets up the backend uvicorn server with auto reload enabled, when an attacker overwrites the /app/backend/__init__.py file, the file will automatically be reloaded and executed. This allows an attacker to get remote code execution in the context of the Docker container. This vulnerability is fixed in commit a78bd065e05a1b30a53a3386cc02e08c317d2243.

(As written by CVE List.)

## Affected

- truefoundry cognita: < a78bd065e05a1b30a53a3386cc02e08c317d2243

## References

- <https://securitylab.github.com/advisories/GHSL-2024-193_GHSL-2024-194_Cognita/>
- <https://github.com/truefoundry/cognita/pull/393>
- <https://github.com/truefoundry/cognita/commit/a78bd065e05a1b30a53a3386cc02e08c317d2243>

## Sources

- CVE List: [CVE-2025-27519](https://www.cve.org/CVERecord?id=CVE-2025-27519), CVE Terms of Use, modified 2025-03-07
- NVD: [CVE-2025-27519](https://nvd.nist.gov/vuln/detail/CVE-2025-27519), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-27519 · Whole record: https://cve.day/CVE-2025-27519.json · Rebuilt by cve.day 2026-11-25T22:58:55.054Z
