CVE-2025-55178: Llama stack Remote Code Execution Vulnerability

MODERATE
Advisory Identifier: GHSA-x75h-m6jj-6cj2
CVSS 5.3
CWE-20
Published
Advisory Summary

CVE-2025-55178 is a MODERATE (CVSS 5.3) remote code execution vulnerability (CWE-20: Improper Input Validation) affecting Llama stack libraries in the PyPI ecosystem. The issue involves llama stack could potentially allow for remote code execution. Remediation is available by upgrading affected packages to version 0.2.20.

CVE-2025-55178 at a Glance

CVE Identifier CVE-2025-55178
GHSA Identifier GHSA-x75h-m6jj-6cj2
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-20: Improper Input Validation
Affected Product Llama stack
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 5.3

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

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

How to Fix CVE-2025-55178

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

llama-stack fixed: 0.2.20
pip install llama-stack>=0.2.20
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 llama-stack

How to Check if You Are Affected

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

pip show llama-stack

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

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

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Llama stack, 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

Llama Stack prior to version v0.2.20 accepted unverified parameters in the resolve_ast_by_type function which could potentially allow for remote code execution.

CVE-2025-55178 Affected Llama stack Versions

1 component(s)
Fixed Versions:
0.2.20
Product / Package Ecosystem Affected Versions Fixed Version
llama-stack
PyPI
< 0.2.20
0.2.20

References

Frequently Asked Questions

What is CVE-2025-55178?
CVE-2025-55178 is a security vulnerability in Llama stack involving Llama Stack could potentially allow for remote code execution under CWE-20: Improper Input Validation.
Which Llama stack versions are affected?
Affected versions include releases prior to 0.2.20 across affected packages: llama-stack.
What version fixes CVE-2025-55178?
Upgrading to 0.2.20 (or the latest patched release for your respective branch) resolves the vulnerability.
Is llama-stack affected?
Yes, llama-stack is affected in releases prior to 0.2.20. Upgrade your dependency to 0.2.20 or later.
What is the CVSS score of CVE-2025-55178?
CVE-2025-55178 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N.
What CWE is associated with CVE-2025-55178?
CVE-2025-55178 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check PyPI dependencies for CVE-2025-55178?
Run the dependency tree command: 'pip show llama-stack'. 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-x75h-m6jj-6cj2",
  "modified" : "2025-09-24T22:15:36Z",
  "published" : "2025-09-24T21:30:37Z",
  "aliases" : [ "CVE-2025-55178" ],
  "summary" : "Llama Stack could potentially allow for remote code execution",
  "details" : "Llama Stack prior to version v0.2.20 accepted unverified parameters in the resolve_ast_by_type function which could potentially allow for remote code execution.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "llama-stack"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.2.20"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-55178"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/llamastack/llama-stack/pull/3281"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/llamastack/llama-stack/commit/efdb5558b8dcab4d141678bfed0a405e2f312b6f"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/llamastack/llama-stack"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/llamastack/llama-stack/releases/tag/v0.2.20"
  }, {
    "type" : "WEB",
    "url" : "https://www.facebook.com/security/advisories/cve-2025-55178"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-09-24T22:15:36Z",
    "nvd_published_at" : "2025-09-24T19:15:36Z"
  }
}