{"id":"CVE-2026-31231","aliases":["CVE-2026-31231"],"related":[],"kind":"vulnerability","state":"published","title":"Cognee thru v0.4.0 contains a critical remote code execution vulnerability in its notebook cell execution API endpoint.","summary":"Cognee thru v0.4.0 contains a critical remote code execution vulnerability in its notebook cell execution API endpoint. The endpoint is designed to execute arbitrary Python code provided by the user, but it does so using the unsafe exec() function without any sandboxing, validation, or security controls. An attacker can exploit this by sending a specially crafted POST request containing malicious Python code to the execution endpoint. This leads to arbitrary code execution on the Cognee server with the privileges of the server process, allowing complete compromise of the system.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Cognee thru v0.4.0 contains a critical remote code execution vulnerability in its notebook cell execution API endpoint. The endpoint is designed to execute arbitrary Python code provided by the user, but it does so using the unsafe exec() function without any sandboxing, validation, or security controls. An attacker can exploit this by sending a specially crafted POST request containing malicious Python code to the execution endpoint. This leads to arbitrary code execution on the Cognee server with the privileges of the server process, allowing complete compromise of the system.","source":"cvelist"},{"lang":"es","text":"Cognee hasta la v0.4.0 contiene una crítica vulnerabilidad de ejecución remota de código en su endpoint de API de ejecución de celdas de notebook. El endpoint está diseñado para ejecutar código Python arbitrario proporcionado por el usuario, pero lo hace usando la función insegura exec() sin ningún sandboxing, validación o controles de seguridad. Un atacante puede explotar esto enviando una solicitud POST especialmente diseñada que contiene código Python malicioso al endpoint de ejecución. Esto conduce a la ejecución de código arbitrario en el servidor Cognee con los privilegios del proceso del servidor, permitiendo el compromiso completo del sistema.","source":"nvd"}],"published":"2026-05-12T00:00:00.000Z","modified":"2026-10-19T22:10:00.130Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-94"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"}],"references":[{"url":"https://github.com/topoteretes/cognee","tags":[],"sources":["cvelist","nvd"]},{"url":"https://www.notion.so/CVE-2026-31231-35d1e13931888178a963ef9efeb29113","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2026-05-15T17:18:25.166Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31231","url":"https://www.cve.org/CVERecord?id=CVE-2026-31231","licence":"CVE Terms of Use","modified":"2026-05-15T18:05:30.352Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31231","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31231","licence":"Public domain","modified":"2026-10-19T22:10:00.130Z"}],"updatedAt":"2026-11-25T22:59:21.386Z","epss":{"score":0.00635,"percentile":0.51753,"date":"2026-12-01T12:00:22.000Z"}}