Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach db_query-backed API endpoint
-
ExploitSubmit crafted fields parameter
-
ExecutionTrigger error-based SQL injection
-
ImpactExtract database information via error messages
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires reaching the affected Frappe endpoint that passes user-controlled query parameters (notably the 'fields' selector) into the DatabaseQuery/db_query layer, whose sanitize_fields validation failed to detect SQL subqueries and blacklisted functions/keywords embedded in field expressions; a crafted field value then reaches the database and produces an error-based injection. Limiting factors: the input CVSS claims PR:N, but Frappe's db_query/get_list/report APIs typically require an authenticated session, so true unauthenticated exploitation depends on whether the specific endpoint is exposed to guests; exploitation is further bounded to installations running Frappe < 14.99.2 or 15.0.0-15.85.x, and the described yield is limited information disclosure (e.g., version) rather than confirmed full database read/write. |
| Impact | The input assigns CVSS 9.8 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H), rating this critical, network-reachable, low-complexity, unauthenticated with full-triad impact. The NVD/GitHub description conflicts with that profile: it describes error-based SQL injection where 'some information like version could be retrieved,' implying limited information disclosure rather than full read/write/destroy of the database. The fix commit supports a confidentiality-leaning read with some integrity reach - the sanitizer failed to catch subqueries and blacklisted functions/keywords (its new test blocks an '(insert into tabUser ...)' subquery), so DML injection was at least partially possible, but the described effect is metadata leakage. Real-world signals are weak: EPSS is 0.04% (13th percentile), there is no CISA KEV listing, and no public exploit was identified. This is a genuinely patch-worthy SQL injection in a widely-used framework endpoint, but low EPSS, no KEV, and no POC combined with a description that undercuts the C:H/I:H/A:H rating mean the practical priority is lower than the headline 9.8 - a high-value patch for Frappe/ERPNext operators rather than imminent mass exploitation. The PR:N claim should be verified: Frappe's db_query-backed APIs generally require an authenticated session, so unauthenticated reachability depends on whether the affected endpoint is guest-exposed. |
| Exploit ScenarioDerived | An attacker able to reach the vulnerable Frappe db_query-backed endpoint submits a crafted 'fields' parameter containing a malicious SQL expression (e.g., a subquery or function) that the sanitizer fails to block, triggering a database error whose message leaks data such as the backend version. No public exploit was identified at time of analysis, though the patch commit (984c641) and added test cases reveal the exact sanitizer-bypass patterns and would materially ease exploit development. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Oct 19, 2026
Error-based SQL injection in Frappe Framework before 15.86.0 and 14.99.2 lets an authenticated low-privileged user who can reach affected query endpoints supply crafted field expressions that bypass sanitization and cause database errors, leaking limited information such as version. The supplied CVSS vector is 9.8 with PR:N, but the assessed vector is CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N because Frappe's db_query/get_list/report APIs typically require an authenticated session, and impact is bounded to information disclosure rather than confirmed full read/write. No public exploit identified at time of analysis and EPSS is 0.04% (13th percentile).
Earlier versions of this analysis (1)
RemediationAI
Upgrade to Frappe Framework 15.86.0 or 14.99.2, which contain the sqlparse-based sanitization fix; apply the vendor advisory GHSA-mp93-8vxr-hqq9 and commit 984c641bff9539b6126a01146096f133db6a955b. If immediate upgrade is not possible, restrict access to db_query/get_list/report endpoints to trusted authenticated users and roles, since exploitation requires reaching an endpoint that passes user-controlled 'fields' expressions into DatabaseQuery; this reduces exposure but does not eliminate the flaw. Review database error logs for anomalous SQL errors and monitor for suspicious field expressions. Disabling or limiting report builder/get_list functionality for untrusted users is a temporary compensating control with the trade-off of reduced reporting capability.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Frappe is a Python-based full-stack web application framework. The flaw is in frappe/model/db_query.py, where DatabaseQuery.sanitize_fields validated user-supplied 'fields' expressions against SQL injection using naive string checks for parentheses and blacklisted keywords/functions. CWE-89 (SQL Injection) applies: crafted field values containing SQL subqueries or blocked functions were not detected and reached the database, producing error-based injection that can disclose limited data such as the database version. The upstream fix replaces the string checks with sqlparse-based tokenization that recursively detects subqueries and blacklisted functions/keywords; the commit is 984c641bff9539b6126a01146096f133db6a955b. Affected CPE is cpe:2.3:a:frappe:frappe:*:*:*:*:*:*:*:*.
Know when Frappe gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Network endpoint with low-complexity injection; PR:L because db_query APIs generally need an authenticated session (PR:N if guest-exposed); C:H for data extraction, I:L for limited DML via subqueries, A:N as no availability impact is described.
Primary rating from NVD.
CVSS VectorNVD
Lifecycle Timeline
5DescriptionNVD
Frappe is a full-stack web application framework. Prior to 15.86.0 and 14.99.2, a certain endpoint was vulnerable to error-based SQL injection due to lack of validation of parameters. Some information like version could be retrieved. This vulnerability is fixed in 15.86.0 and 14.99.2.
Executive ViewAI
A SQL injection vulnerability in Frappe framework versions prior to 15.86.0 and 14.99.2 allows attackers to extract sensitive information including system version details without authentication. Organizations using affected Frappe instances face potential data exposure and reconnaissance risk that could lead to further compromise.
Apply vendor patch. If immediate patching is not feasible, implement Web Application Firewall (WAF) rules to detect and block SQL injection patterns in vulnerable endpoint parameters, restrict network access to Frappe instances to trusted sources only, and enable comprehensive logging and monitoring for suspicious SQL query patterns.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
Related Vulnerabilities in Frappe SQL Injection and Path Traversal
View all 2Stored cross-site scripting leading to code execution in Frappe Framework 15.89.0 (and the ERPNext application built on
An exploitable SQL injection vulnerability exists in the authenticated part of ERPNext v10.1.6. Rated high severity (CVS
An exploitable SQL injection vulnerability exists in the authenticated part of ERPNext v10.1.6. Rated high severity (CVS
An exploitable SQL injection vulnerability exists in the authenticated part of ERPNext v10.1.6. Rated high severity (CVS
An exploitable SQL injection vulnerability exists in the authenticated part of ERPNext v10.1.6. Rated high severity (CVS
Authenticated SQL injection in Frappe ERPNext through 15.89.0 allows low-privilege users to extract arbitrary database c
SQL injection in Frappe ERPNext through 15.89.0 lets an authenticated attacker with a valid session and access to the Pa
Authenticated server-side template injection in Frappe ERPNext through 15.89.0 lets a user who can create or modify an A
An SQL injection vulnerability exists in the frappe.desk.reportview.get functionality of ERPNext 11.1.38. Rated high sev
Arbitrary file read in the Frappe full-stack web application framework allows remote unauthenticated attackers to retrie
SQL injection in Frappe HelpDesk 1.14.0 dashboard functionality allows authenticated attackers to execute arbitrary SQL
In Frappe ERPNext 15.57.5, the function get_rfq_containing_supplier() at erpnext/buying/doctype/request_for_quotation/re
EUVD-2025-200084
NVD
CVE.org
EPSS
GitHub
Exploit-DB