NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · Agno

CVE-2025-64168: Agno session state overwrites between different sessions/users

highCVSS 3.1 7.1GHSA-vw84-hprm-cxmm

Agno, the Python agent framework, has a race condition: under high concurrency, a session_state passed to Agent or Team run or arun calls can be assigned and saved to the wrong session. One user's data can then show up in another user's session. Fixed in agno 2.2.2.

Published Oct 31, 2025 · Updated Nov 5, 2025 · Analysis Nov 1, 2026

What an attacker can do

When session_state is passed into run or arun on an Agent or Team, concurrent calls can mix up which session the state is attached to. The advisory classes this as a race condition (CWE-362) with exposure of a resource to the wrong sphere (CWE-668). The wrong state is also persisted, so the mix-up does not disappear with the request.

The attacker does not need to craft anything special. The CVSS vector shows network access, high attack complexity and low privileges: an ordinary user of a multi-user service built on Agno who sends requests while others do too. The result is that data from another user's session, such as stored preferences, personal details or earlier context kept in session state, can be returned in their own agent responses. The persisted state can also overwrite the other session's state.

Single-user scripts and services that never pass session_state per call are not in the described scenario. The advisory does not say how much concurrency is needed.

Who is affected

agno on PyPI from 2.0.0 before 2.2.2, in applications that serve several users or sessions at once and pass session_state to run or arun. The advisory page's lower bound is unclear, and the structured data says 2.0.0.

pip show agno

Then search your code for calls that pass session_state= to an Agent or Team.

agno

Ecosystem
PyPI
Affected
>= 2.0.0, < 2.2.2
Fixed in
2.2.2
Check
pip show agno

How to fix it

Upgrade to agno 2.2.2:

pip install -U agno

The advisory names no workaround. If you cannot upgrade immediately, one option, which is our suggestion rather than the vendor's, is to avoid passing session_state per call and to run one agent instance per session. Test this first.

After upgrading, check stored sessions in your database for entries that contain data from a different user.

How to tell if you were hit

Compare stored session records with the users who own them. Look for session_state values that mention another user's identifiers, or that changed without that user making a request. Review agent responses and logs from high-traffic periods for answers that cite details the current user never supplied. The advisory gives no log signature.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Impact

Under certain conditions (under high concurrency), when session_state is passed to an Agent or Team during run or arun calls, a race condition can occur, causing a session_state to be assigned and persisted to the incorrect session. This may result in user data from one session being exposed to another user.

Patches

This has been patched in version 2.2.2. Upgrade with pip install -U agno.

Credited to JasonLovesDoggo, dirkbrnd.

Questions

What triggers the Agno session_state race condition?

Passing session_state to an Agent or Team in run or arun calls under high concurrency. The advisory does not say how much load is needed.

Which Agno version fixes CVE-2025-64168?

agno 2.2.2. Upgrade with pip install -U agno. The structured data lists versions from 2.0.0 up to but not including 2.2.2 as vulnerable.

Is there a workaround?

The advisory lists none. Upgrading is the only vendor-given remediation.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More Agno vulnerabilities

All Agno entries