CVE-2026-31231
Last modified
CVE-2026-31231 is a critical-severity vulnerability rated 9.8/10 on the CVSS scale. 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. EPSS estimates a 0.64% chance of exploitation in the next 30 days.
Description
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-31231?
How severe is CVE-2026-31231?
How do I fix CVE-2026-31231?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-31224The snorkel library thru v0.10.0 contains an insecure deseri…8.8
- CVE-2026-31225The superduper project thru v0.10.0 contains a critical remo…8.8
- CVE-2026-31226The TinyZero project thru commit 6652a63c57fa7e5ccde3fc9c598…9.8
- CVE-2026-31228The Adversarial Robustness Toolbox (ART) thru 1.20.1 contain…9.8
- CVE-2026-31229The Adversarial Robustness Toolbox (ART) thru 1.20.1 contain…9.8
- CVE-2026-31230The Adversarial Robustness Toolbox (ART) thru 1.20.1 contain…9.8
- CVE-2026-31232The CosyVoice project thru commit 6e01309e01bc93bbeb83bdd996…8.8
- CVE-2026-31233Guardrails AI thru 0.6.7 contains a code injection vulnerabi…9.8
- CVE-2026-31234Horovod thru 0.28.1 contains an insecure deserialization vul…9.8
- CVE-2026-31235The imgaug library thru 0.4.0 contains an insecure deseriali…9.8
- CVE-2026-31236The llm CLI tool thru 0.27.1 contains a critical code inject…9.8
- CVE-2026-31237The Ludwig framework thru 0.10.4 is vulnerable to insecure d…9.8
Are you affected by CVE-2026-31231?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
