📧 info@ciso.sa | 📱 +966550939344 | Riyadh, Kingdom of Saudi Arabia
🔧 Scheduled Maintenance — Saturday 2:00-4:00 AM AST. Some features may be temporarily unavailable.    ●   
💎
Pro Plan 50% Off Unlock all AI features, unlimited reports, and priority support. Upgrade
Search Center
ESC to close
Global vulnerability Artificial Intelligence and Technology HIGH 2h Global general Technology and Artificial Intelligence MEDIUM 5h Global general Technology and Artificial Intelligence HIGH 6h Global vulnerability Higher Education CRITICAL 15h Global data_breach Government HIGH 16h Global supply_chain Software Development and Open Source Communities CRITICAL 16h Global malware Software Development CRITICAL 16h Global phishing Multiple Sectors HIGH 17h Global vulnerability Web Applications CRITICAL 17h Global apt Critical Infrastructure CRITICAL 17h Global vulnerability Artificial Intelligence and Technology HIGH 2h Global general Technology and Artificial Intelligence MEDIUM 5h Global general Technology and Artificial Intelligence HIGH 6h Global vulnerability Higher Education CRITICAL 15h Global data_breach Government HIGH 16h Global supply_chain Software Development and Open Source Communities CRITICAL 16h Global malware Software Development CRITICAL 16h Global phishing Multiple Sectors HIGH 17h Global vulnerability Web Applications CRITICAL 17h Global apt Critical Infrastructure CRITICAL 17h Global vulnerability Artificial Intelligence and Technology HIGH 2h Global general Technology and Artificial Intelligence MEDIUM 5h Global general Technology and Artificial Intelligence HIGH 6h Global vulnerability Higher Education CRITICAL 15h Global data_breach Government HIGH 16h Global supply_chain Software Development and Open Source Communities CRITICAL 16h Global malware Software Development CRITICAL 16h Global phishing Multiple Sectors HIGH 17h Global vulnerability Web Applications CRITICAL 17h Global apt Critical Infrastructure CRITICAL 17h
Vulnerabilities

CVE-2024-58339

High ⚡ Exploit Available
LlamaIndex (run-llama/llama_index) versions up to and including 0.12.2 contain an uncontrolled resource consumption vulnerability in the VannaPack VannaQueryEngine implementation. The custom_query() l
CWE-770 — Weakness Type
Published: Jan 12, 2026  ·  Modified: Feb 28, 2026  ·  Source: NVD
CVSS v3
7.5
🔗 NVD Official
📄 Description (English)

LlamaIndex (run-llama/llama_index) versions up to and including 0.12.2 contain an uncontrolled resource consumption vulnerability in the VannaPack VannaQueryEngine implementation. The custom_query() logic generates SQL statements from a user-supplied prompt and executes them via vn.run_sql() without enforcing query execution limits In downstream deployments where untrusted users can supply prompts, an attacker can trigger expensive or unbounded SQL operations that exhaust CPU or memory resources, resulting in a denial-of-service condition. The vulnerable execution path occurs in llama_index/packs/vanna/base.py within custom_query().

🤖 AI Executive Summary

LlamaIndex versions up to 0.12.2 contain an uncontrolled resource consumption vulnerability in the VannaPack VannaQueryEngine that allows attackers to trigger expensive SQL operations through user-supplied prompts, causing denial-of-service conditions. This vulnerability is particularly critical for Saudi organizations deploying AI-powered database query systems without proper input validation. With exploit code available and affecting widely-used LLM frameworks, immediate patching is essential to prevent service disruptions.

📄 Description (Arabic)

🤖 AI Intelligence Analysis Analyzed: May 1, 2026 21:54
🇸🇦 Saudi Arabia Impact Assessment
This vulnerability poses significant risk to Saudi financial institutions (SAMA-regulated banks) using LlamaIndex for AI-powered financial analysis and reporting systems, potentially causing service disruptions during critical trading hours. Government agencies (NCA oversight) deploying LLM-based document processing systems face operational disruption risks. Healthcare organizations using AI-driven clinical decision support systems could experience system unavailability. Energy sector (ARAMCO, SEC) and telecommunications (STC, Mobily) companies leveraging LlamaIndex for data analytics are vulnerable to resource exhaustion attacks. The vulnerability is particularly dangerous in multi-tenant SaaS deployments common in Saudi Arabia where untrusted users can submit prompts.
🏢 Affected Saudi Sectors
Banking and Financial Services (SAMA-regulated institutions) Government and Public Administration (NCA oversight) Healthcare and Medical Services Energy and Petroleum (ARAMCO, SEC) Telecommunications (STC, Mobily, Zain) Technology and Software Development E-commerce and Retail Insurance and Financial Technology
⚖️ Saudi Risk Score (AI)
7.8
/ 10.0
🔧 Remediation Steps (English)
IMMEDIATE ACTIONS:
1. Identify all systems running LlamaIndex versions 0.12.2 or earlier by scanning deployment inventories and dependency manifests
2. Isolate affected systems from untrusted user input sources or implement strict network access controls
3. Enable database query logging and monitoring for unusual SQL patterns

PATCHING GUIDANCE:
1. Upgrade LlamaIndex to version 0.12.3 or later immediately
2. For VannaPack implementations, update to the patched version that includes query execution limits
3. Test patches in non-production environments before deployment
4. Implement automated dependency scanning to prevent future vulnerable versions

COMPENSATING CONTROLS (if immediate patching not possible):
1. Implement database query timeouts (set max_execution_time to 30 seconds or less)
2. Configure database connection pooling with resource limits
3. Implement rate limiting on custom_query() API endpoints (max 10 requests per minute per user)
4. Deploy Web Application Firewall (WAF) rules to detect SQL injection patterns in prompts
5. Restrict database user permissions to read-only access where possible
6. Implement CPU and memory limits at container/process level using cgroups or similar mechanisms

DETECTION RULES:
1. Monitor for SQL queries with execution time exceeding 60 seconds
2. Alert on database CPU usage spikes correlating with custom_query() calls
3. Track memory consumption patterns in LlamaIndex processes
4. Log all prompts submitted to custom_query() for forensic analysis
5. Monitor for repeated failed or timeout queries from same user/IP
🔧 خطوات المعالجة (العربية)
الإجراءات الفورية:
1. تحديد جميع الأنظمة التي تقوم بتشغيل إصدارات LlamaIndex 0.12.2 أو أقدم من خلال مسح قوائم الجرد والمكتبات المعتمدة
2. عزل الأنظمة المتأثرة عن مصادر المدخلات غير الموثوقة أو تطبيق عناصر تحكم صارمة في الوصول إلى الشبكة
3. تفعيل تسجيل الاستعلامات وقواعد البيانات ومراقبة أنماط SQL غير العادية

إرشادات التصحيح:
1. ترقية LlamaIndex إلى الإصدار 0.12.3 أو أحدث على الفور
2. لتطبيقات VannaPack، قم بالتحديث إلى الإصدار المصحح الذي يتضمن حدود تنفيذ الاستعلام
3. اختبر التصحيحات في بيئات غير الإنتاج قبل النشر
4. تطبيق المسح التلقائي للمكتبات المعتمدة لمنع الإصدارات الضعيفة في المستقبل

عناصر التحكم البديلة (إذا لم يكن التصحيح الفوري ممكنًا):
1. تطبيق مهلات زمنية لاستعلامات قاعدة البيانات (تعيين max_execution_time إلى 30 ثانية أو أقل)
2. تكوين تجميع اتصالات قاعدة البيانات بحدود الموارد
3. تطبيق تحديد معدل على نقاط نهاية API custom_query() (بحد أقصى 10 طلبات في الدقيقة لكل مستخدم)
4. نشر قواعد جدار حماية تطبيقات الويب (WAF) للكشف عن أنماط حقن SQL في الموجهات
5. تقييد أذونات مستخدم قاعدة البيانات للوصول للقراءة فقط حيث أمكن
6. تطبيق حدود CPU والذاكرة على مستوى الحاوية/العملية باستخدام cgroups أو آليات مماثلة

قواعد الكشف:
1. مراقبة استعلامات SQL بوقت تنفيذ يتجاوز 60 ثانية
2. تنبيهات على ارتفاع استخدام CPU في قاعدة البيانات المرتبط باستدعاءات custom_query()
3. تتبع أنماط استهلاك الذاكرة في عمليات LlamaIndex
4. تسجيل جميع الموجهات المقدمة إلى custom_query() للتحليل الجنائي
5. مراقبة الاستعلامات المتكررة الفاشلة أو المنتهية من نفس المستخدم/IP
📋 Regulatory Compliance Mapping
🟢 NCA ECC 2024
ECC 2024 A.12.6.1 - Management of technical vulnerabilities ECC 2024 A.14.2.1 - Secure development policy ECC 2024 A.12.2.1 - Change management procedures ECC 2024 A.12.1.2 - Monitoring and review of system access and resources
🔵 SAMA CSF
SAMA CSF ID.RA-1 - Asset management and identification SAMA CSF PR.IP-12 - Software development and quality assurance SAMA CSF DE.CM-1 - Detection and analysis of anomalies SAMA CSF RS.MI-2 - Incident response and recovery procedures
🟡 ISO 27001:2022
ISO 27001:2022 A.12.2.1 - Change management ISO 27001:2022 A.12.6.1 - Management of technical vulnerabilities ISO 27001:2022 A.14.2.1 - Secure development policy ISO 27001:2022 A.8.1.1 - Inventory of assets
🟣 PCI DSS v4.0.1
PCI DSS 6.2 - Security patches and updates PCI DSS 6.3.1 - Vulnerability identification and remediation PCI DSS 11.2 - Vulnerability scanning
📦 Affected Products / CPE 1 entries
llamaindex:llamaindex
📊 CVSS Score
7.5
/ 10.0 — High
📊 CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Attack VectorN — None / Network
Attack ComplexityL — Low / Local
Privileges RequiredN — None / Network
User InteractionN — None / Network
ScopeU — Unchanged
ConfidentialityN — None / Network
IntegrityN — None / Network
AvailabilityH — High
📋 Quick Facts
Severity High
CVSS Score7.5
CWECWE-770
EPSS0.12%
Exploit ✓ Yes
Patch ✓ Yes
Published 2026-01-12
Source Feed nvd
Views 5
🇸🇦 Saudi Risk Score
7.8
/ 10.0 — Saudi Risk
Priority: HIGH
🏷️ Tags
exploit-available CWE-770
Share this CVE

💬 Comments

0
Loading comments
📣 Found this valuable?
Share it with your cybersecurity network
in LinkedIn 𝕏 X / Twitter 💬 WhatsApp ✈ Telegram
🍪 Privacy Preferences
CISO Consulting — Compliant with Saudi Personal Data Protection Law (PDPL)
We use cookies and similar technologies to provide the best experience on our platform. You can choose which types you accept.
🔒
Essential Always On
Required for the website to function properly. Cannot be disabled.
📋 Sessions, CSRF tokens, authentication, language preferences
📊
Analytics
Help us understand how visitors use the site and improve performance.
📋 Page views, session duration, traffic sources, performance metrics
⚙️
Functional
Enable enhanced features like content personalization and preferences.
📋 Dark/light theme, font size, custom dashboards, saved filters
📣
Marketing
Used to deliver content and ads relevant to your interests.
📋 Campaign tracking, retargeting, social media analytics
Privacy Policy →
CISO AI Assistant
Ask anything · Documents · Support
🔐

Introduce Yourself

Enter your details to access the full assistant

Your info is private and never shared
💬
CyberAssist
Online · responds in seconds
5 / 5
🔐 Verify Your Identity

Enter your email to receive a verification code before submitting a support request.

Enter to send · / for commands 0 / 2000
CISO AI · Powered by Anthropic Claude
✦ Quick Survey Help Us Improve CISO Consulting Your feedback shapes the future of our platform — takes less than 2 minutes.
⚠ Please answer this question to continue

How would you rate your overall experience with our platform?

Rate from 1 (poor) to 5 (excellent)

🎉
Thank you!
Your response has been recorded.