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

llama-stack Updated 02 Oct 2025

Summary

24/09/2025
Yes i
Moderate
5.3

CVE-2025-55178: Llama Stack could potentially allow for remote code execution. Affects llama-stack versions < 0.2.20. Fixed in 0.2.20. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

Llama Stack is a Python package designed for building and managing machine learning models efficiently. It provides a range of functionalities, including data processing, model training, and deployment. However, prior to version 0.2.20, Llama Stack had a critical vulnerability that allowed unverified parameters in its resolve_ast_by_type function, potentially leading to remote code execution.

Vulnerability Detail

The vulnerability in Llama Stack arises from its failure to validate input parameters in the resolve_ast_by_type function. This oversight can be exploited by an attacker to execute arbitrary code remotely, posing significant security risks. The issue is categorized under CWE-20, indicating improper input validation. If exploited, this vulnerability could allow unauthorized access to sensitive data or system control, making it crucial for users to address it promptly.

How To Fix

Latest published version: 0.7.3 as of 22 Oct 2026

pip install --upgrade "llama-stack==0.7.3"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

0.2.20

This is the first release that contains the fix.

pip install --upgrade "llama-stack==0.2.20"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, users can implement input validation checks in their code before passing parameters to the resolve_ast_by_type function. This can help mitigate the risk of remote code execution until the package is updated. Example code for input validation could look like this:

if validate_input(parameters): result = llama_stack.resolve_ast_by_type(parameters) else: raise ValueError('Invalid input parameters')

Conclusion

The Llama Stack vulnerability CVE-2025-55178 poses a significant risk due to its potential for remote code execution. Users are strongly advised to update to version 0.2.20 or later to mitigate this risk. Implementing input validation can serve as a temporary measure until the update is applied.

See every vulnerability recorded for llama-stack →

Share this vulnerability

FAQ

CVE-2025-55178 is a vulnerability in Llama Stack that allows for remote code execution due to unverified parameters in the resolve_ast_by_type function.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

The vulnerability has a CVSS score of 5.3, indicating a moderate severity level.

If you cannot update the package right away, implement input validation checks as a temporary workaround to mitigate the risk.

You can find more information about Llama Stack and its functionalities on its official documentation page or GitHub repository.

Related vulnerabilities

Recent vulnerabilities recorded for llama-stack.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Latest published version: 0.7.3 as of 22 Oct 2026

pip install --upgrade "llama-stack==0.7.3"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

0.2.20

This is the first release that contains the fix.

pip install --upgrade "llama-stack==0.2.20"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback