Cognita Arbitrary File Write
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2025-27519
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 2 Nov 2026, 20:02 UTC · Revision 1
Source evidence
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.
osv:CVE-2025-27519
Complete source record
{
"id": "29eae32c12ced0d85738610bb816d5f1069c74e0514d12f1ced4edef89a8c44e",
"url": "https://osv.dev/vulnerability/CVE-2025-27519",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Cognita Arbitrary File Write",
"summary": "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.",
"evidence": "osv:CVE-2025-27519",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2025-27519",
"aliases": [
"CVE-2025-27519"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "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"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/truefoundry/cognita",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "a78bd065e05a1b30a53a3386cc02e08c317d2243"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "a78bd065e05a1b30a53a3386cc02e08c317d2243"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"fixed": "a78bd065e05a1b30a53a3386cc02e08c317d2243"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-27519.json"
}
}
],
"modified": "2026-10-28T02:30:23.380576609Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/27xxx/CVE-2025-27519.json",
"https://nvd.nist.gov/vuln/detail/CVE-2025-27519",
"https://securitylab.github.com/advisories/GHSL-2024-193_GHSL-2024-194_Cognita/",
"https://github.com/truefoundry/cognita/commit/a78bd065e05a1b30a53a3386cc02e08c317d2243",
"https://github.com/truefoundry/cognita/pull/393"
],
"provider_metadata": {
"cwe_ids": [
"CWE-22"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/27xxx/CVE-2025-27519.json"
}
},
"related_cves": [
{
"value": "CVE-2025-27519",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 489547,
"published_at": "2025-03-07T15:36:34.819+00:00"
}