CVE-2025-55178: Llama stack Remote Code Execution Vulnerability
MODERATECVE-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
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).
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.
pip install llama-stack>=0.2.20
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
CVE-2025-55178 Affected Llama stack Versions
1 component(s)| 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?
Which Llama stack versions are affected?
What version fixes CVE-2025-55178?
Is llama-stack affected?
What is the CVSS score of CVE-2025-55178?
What CWE is associated with CVE-2025-55178?
How can I check PyPI dependencies for CVE-2025-55178?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}