Advisory

PYSEC-2026-1554

Also known as: CVE-2025-1752, GHSA-7c85-87cp-mr6g

Summary

LlamaIndex Vulnerable to Denial of Service (DoS)

Details

A Denial of Service (DoS) vulnerability has been identified in the KnowledgeBaseWebReader class of the run-llama/llama_index project, affecting version ~ latest(v0.12.15). The vulnerability arises due to inappropriate secure coding measures, specifically the lack of proper implementation of the max_depth parameter in the get_article_urls function. This allows an attacker to exhaust Python's recursion limit through repeated function calls, leading to resource consumption and ultimately crashing the Python process.

Severity

High Basis: CVSS v3 score 7.5, vector CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Dates

Published
2026-07-07 16:02 UTC
Modified
2026-07-07 17:46 UTC

Affected packages and fixes

llama-index

PyPI · All systems

Affected

  • introduced 0.12.15, fixed 0.12.21 (ecosystem)

Fixed versions

0.12.21

Fix

  • Fixed version 0.12.21
    pip install --upgrade llama-index==0.12.21

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences