CVE-2026-35002·Python vulnerability
Agno versions prior to 2.3.24 contain an arbitrary code execution vulnerability in the model execution component that allows attackers to execute arbitrary Python code by manipulating the field_type parameter passed to eval(). Attackers can influence the field_type value in a FunctionCall to achieve remote code execution.
- Severity
- critical
- Software
- Python
- Fixed in
- 2.3.24
- Published
- 2026-04-02
Affected versions
Until: 2.3.24
Fixed in: 2.3.24
How to fix this CVE
Update Python and the Agno package to version 2.3.24 or later to patch the eval() injection vulnerability in the model execution component. This fix eliminates the ability for attackers to manipulate the field_type parameter and execute arbitrary code through FunctionCall objects. Verify the update is applied and restart all Python-based services that depend on Agno.
sudo dnf update python3 && pip install --upgrade agno>=2.3.24Defensia detects this vulnerability
What an exploitation attempt looks like
Sample log line indicative of exploitation attempts:
POST requests to Agno endpoints with crafted FunctionCall payloads containing shell metacharacters or Python code in the field_type parameter; example: field_type=__import__('os').system('command') or field_type=eval(...)WAF mitigation (if patching is not yet possible)
Add this rule to your WAF to block exploitation attempts while you schedule the patch.
Block or sanitize FunctionCall requests where field_type parameter contains: eval, exec, __import__, os.system, subprocess, or shell metacharacters (|, ;, &, $, backticks). Implement strict whitelist validation for field_type values at the API gateway level.How to check if you are affected
- Check Agno version: pip show agno | grep Version
- Identify exposed Agno instances: grep -r 'from agno' /opt /home /srv --include='*.py' 2>/dev/null
- Search application logs for eval() calls with user-controlled field_type: grep -i 'field_type\|FunctionCall' /var/log/application* /var/log/python* 2>/dev/null
- Verify patch applied: pip show agno | grep 'Version: 2.3.24' && echo 'Patched' || echo 'Vulnerable'
FAQ
What is CVE-2026-35002?
CVE-2026-35002 is a critical remote code execution vulnerability in Agno's model execution component where the field_type parameter is passed unsafely to Python's eval() function, allowing attackers to execute arbitrary code without authentication.
Is CVE-2026-35002 being actively exploited?
No, CVE-2026-35002 is not currently listed on CISA's Known Exploited Vulnerabilities catalog, and no public exploits have been released. However, the low barrier to exploitation makes prompt patching essential.
What versions of Python are affected by CVE-2026-35002?
All versions of Agno prior to 2.3.24 are vulnerable. The vulnerability exists in the model execution component across all affected Agno releases up to and including 2.3.23.
How do I check if my server is vulnerable to CVE-2026-35002?
Run 'pip show agno' and verify the version is 2.3.24 or later. If the version is 2.3.23 or earlier, your system is vulnerable and requires immediate patching.
Does Defensia detect CVE-2026-35002?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Agno is installed on a monitored server, CVE-2026-35002 will appear in your dashboard with remediation steps.
Related Python CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-35002. Free for 1 server.
Get started free