{"answers":{"affected":"","exploited":"There is no known exploitation of CVE-2025-27519 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2025-27519 yet. Limit exposure of the affected software until one is available.","what":"CVE-2025-27519 is a critical path traversal vulnerability in truefoundry cognita, published on 7 Mar 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-27519 and fix it if it is affected.\n\nWhat it is: CVE-2025-27519 is a critical path traversal vulnerability in truefoundry cognita, published on 7 Mar 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2025-27519 in the wild and no public exploit code.\n\nAffected product: truefoundry cognita. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-27519/ (Markdown: https://insights.sbomify.com/CVE-2025-27519/index.md)","id":"CVE-2025-27519","markdown":"https://insights.sbomify.com/CVE-2025-27519/index.md","name":"CVE-2025-27519","record":{"aliases":[],"analysis":{"component_type":"server_software","fix_type":"patch","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"RAG framework","requires_auth":"none","summary":"Attackers can achieve remote code execution in Docker containers by exploiting a path traversal vulnerability in the file upload endpoint.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":9.3,"severity":"critical","source":"cna","vector":"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","version":"4.0"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2025-08-22","github_poc":1,"max_poc_stars":2,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-08-22T08:05:13Z","kind":"github_poc","ref":"https://github.com/Diabl0xE/CVE-2025-27519","stars":2,"title":"PoC exploit for Below privilege escalation (CVE-2025-27591) allowing local root access via symlink manipulation in world-writable log directory."}],"tier":"poc_unverified"},"has_fix":false,"headline":"Cognita Arbitrary File Write","id":"CVE-2025-27519","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"path_traversal","year":"2025"},"n_packages":0,"n_references":3,"next":{"headline":"BentoML Allows Remote Code Execution (RCE) via Insecure Deserialization","id":"CVE-2025-27520"},"packages":[],"prev":{"headline":"Cognita CORS misconfiguration in backend API server","id":"CVE-2025-27518"},"products":["cognita"],"published":"2025-03-07","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-03-07","vendors":["truefoundry"]},"summary":"Attackers can achieve remote code execution in Docker containers by exploiting a path traversal vulnerability in the file upload endpoint.","url":"https://insights.sbomify.com/CVE-2025-27519/"}