CVE-2025-64168: Agno Agno Session State Overwrites Between Vulnerability

HIGH
Advisory Identifier: GHSA-vw84-hprm-cxmm
CVSS 7.1
CWE-668 CWE-362
Published
Advisory Summary

CVE-2025-64168 is a HIGH (CVSS 7.1) agno session state overwrites between vulnerability (CWE-668: Exposure of Resource to Wrong Sphere) affecting Agno libraries in the PyPI ecosystem. The issue involves agno session state overwrites between different sessions/users. Remediation is available by upgrading affected packages to version 2.2.2.

CVE-2025-64168 at a Glance

CVE Identifier CVE-2025-64168
GHSA Identifier GHSA-vw84-hprm-cxmm
Severity HIGH
CVSS v3.1 Base Score 7.1
CWE Classification CWE-668: Exposure of Resource to Wrong Sphere
Affected Product Agno
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 7.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2025-64168

To remediate this vulnerability, upgrade all affected Agno dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

agno fixed: 2.2.2
pip install agno>=2.2.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show agno

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2025-64168, inspect your installed packages using pip:

pip show agno

Analyze the terminal output to locate any version of Agno in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.2.2), your application is affected.

Note: The pip show agno command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-668: Exposure of Resource to Wrong Sphere, where the product exposes a resource to the wrong control sphere, providing unintended actors with inappropriate access to the resource. In Agno, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### 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`.

CVE-2025-64168 Affected Agno Versions

1 component(s)
Fixed Versions:
2.2.2
Product / Package Ecosystem Affected Versions Fixed Version
agno
PyPI
≥ 2.0.0
< 2.2.2
2.2.2

References

Frequently Asked Questions

What is CVE-2025-64168?
CVE-2025-64168 is a security vulnerability in Agno involving Agno session state overwrites between different sessions/users under CWE-668: Exposure of Resource to Wrong Sphere.
Which Agno versions are affected?
Affected versions include releases prior to 2.2.2 across affected packages: agno.
What version fixes CVE-2025-64168?
Upgrading to 2.2.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is agno affected?
Yes, agno is affected in releases prior to 2.2.2. Upgrade your dependency to 2.2.2 or later.
What is the CVSS score of CVE-2025-64168?
CVE-2025-64168 has a CVSS v3.1 base score of 7.1 (HIGH) with vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:N.
What CWE is associated with CVE-2025-64168?
CVE-2025-64168 is classified under CWE-668: Exposure of Resource to Wrong Sphere (The product exposes a resource to the wrong control sphere, providing unintended actors with inappropriate access to the resource.).
How can I check PyPI dependencies for CVE-2025-64168?
Run the dependency tree command: 'pip show agno'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-vw84-hprm-cxmm",
  "modified" : "2025-10-31T21:24:53Z",
  "published" : "2025-10-31T21:24:53Z",
  "aliases" : [ "CVE-2025-64168" ],
  "summary" : "Agno session state overwrites between different sessions/users",
  "details" : "### Impact\nUnder 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.\n\n### Patches\nThis has been patched in version 2.2.2. Upgrade with `pip install -U agno`.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "agno"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0"
      }, {
        "fixed" : "2.2.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/agno-agi/agno/security/advisories/GHSA-vw84-hprm-cxmm"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-64168"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/agno-agi/agno"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-362", "CWE-668" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-10-31T21:24:53Z",
    "nvd_published_at" : "2025-10-31T15:15:43Z"
  }
}