CVE Explorer
CVE-2026-31231
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 w
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
1
Preserved source conflicts
No provider value was silently selected as the winner.
cwe · 2 assertions
{"description":"n/a","lang":"en","type":"text"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:259608619bf7c786aa505207b1490752b67f0e916ddd99c518d074534c56895e · sha256:142627caea91bfd1… · /containers/cna/problemTypes/0/descriptions/0
{"cweId":"CWE-94","description":"CWE-94 Improper Control of Generation of Code ('Code Injection')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:259608619bf7c786aa505207b1490752b67f0e916ddd99c518d074534c56895e · sha256:142627caea91bfd1… · /containers/adp/0/problemTypes/0/descriptions/0
Affected products and versions
1 source assertion{"product":"n/a","vendor":"n/a","versions":[{"status":"affected","version":"n/a"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:259608619bf7c786aa505207b1490752b67f0e916ddd99c518d074534c56895e · sha256:142627caea91bfd1… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:259608619bf7c786aa505207b1490752b67f0e916ddd99c518d074534c56895e · sha256:142627caea91bfd1… · /containers/adp/0/metrics/0/cvssV3_1
CWE assertions
2 source assertions{"description":"n/a","lang":"en","type":"text"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:259608619bf7c786aa505207b1490752b67f0e916ddd99c518d074534c56895e · sha256:142627caea91bfd1… · /containers/cna/problemTypes/0/descriptions/0
{"cweId":"CWE-94","description":"CWE-94 Improper Control of Generation of Code ('Code Injection')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:259608619bf7c786aa505207b1490752b67f0e916ddd99c518d074534c56895e · sha256:142627caea91bfd1… · /containers/adp/0/problemTypes/0/descriptions/0
Source references
2 source assertions{"url":"https://github.com/topoteretes/cognee"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:259608619bf7c786aa505207b1490752b67f0e916ddd99c518d074534c56895e · sha256:142627caea91bfd1… · /containers/cna/references/0
{"url":"https://www.notion.so/CVE-2026-31231-35d1e13931888178a963ef9efeb29113"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:259608619bf7c786aa505207b1490752b67f0e916ddd99c518d074534c56895e · sha256:142627caea91bfd1… · /containers/cna/references/1
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.