Skip to main content

Frappe Framework EUVDEUVD-2025-200084

| CVE-2025-66205 CRITICAL
SQL Injection (CWE-89)
2025-12-01 security-advisories@github.com
9.8
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach db_query-backed API endpoint
  2. Exploit
    Submit crafted fields parameter
  3. Execution
    Trigger error-based SQL injection
  4. Impact
    Extract 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – 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)
v1 Mar 15, 2026 - 13:34 CVSS 7.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

frappe < 14.99.2
frappe 15.0.0, < 15.86.0

Affected Packages

euvd frappe fix: 14.99.2, 15.86.0

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

NVD PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 7.1 HIGH

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.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

5
Severity Changed
Oct 19, 2026 - 13:23 NVD
HIGH CRITICAL
CVSS changed
Oct 19, 2026 - 13:23 NVD
7.1 (HIGH) 9.8 (CRITICAL)
Patch released
Mar 15, 2026 - 13:34 nvd
Patch available
CVE Published
Dec 01, 2025 - 21:15 nvd
CRITICAL 9.8
CVE Published
Dec 01, 2025 - 21:15 nvd
HIGH 7.1

DescriptionNVD

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

Why It Matters

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.

Business Impact: Medium
Compensating Controls

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

EPSS Score
0.0%
Top 87% exploitable
Prevalence
Medium
popular open-source framework behind ERPNext, common but not ubiquitous
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
Medium

Priority Score

49
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +49
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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 2

More in Frappe

View all
CVE-2025-67289 CRITICAL POC
9.6 Dec 22

Stored cross-site scripting leading to code execution in Frappe Framework 15.89.0 (and the ERPNext application built on

CVE-2018-3885 HIGH POC
8.8 Sep 12

An exploitable SQL injection vulnerability exists in the authenticated part of ERPNext v10.1.6. Rated high severity (CVS

CVE-2018-3884 HIGH POC
8.8 Sep 12

An exploitable SQL injection vulnerability exists in the authenticated part of ERPNext v10.1.6. Rated high severity (CVS

CVE-2018-3883 HIGH POC
8.8 Sep 12

An exploitable SQL injection vulnerability exists in the authenticated part of ERPNext v10.1.6. Rated high severity (CVS

CVE-2018-3882 HIGH POC
8.8 Sep 12

An exploitable SQL injection vulnerability exists in the authenticated part of ERPNext v10.1.6. Rated high severity (CVS

CVE-2025-66440 HIGH POC
8.8 Dec 15

Authenticated SQL injection in Frappe ERPNext through 15.89.0 allows low-privilege users to extract arbitrary database c

CVE-2025-66439 HIGH POC
8.8 Dec 15

SQL injection in Frappe ERPNext through 15.89.0 lets an authenticated attacker with a valid session and access to the Pa

CVE-2025-66437 HIGH POC
8.8 Dec 15

Authenticated server-side template injection in Frappe ERPNext through 15.89.0 lets a user who can create or modify an A

CVE-2020-6145 HIGH POC
8.8 Aug 10

An SQL injection vulnerability exists in the frappe.desk.reportview.get functionality of ERPNext 11.1.38. Rated high sev

CVE-2026-39352 HIGH POC
8.7 May 20

Arbitrary file read in the Frappe full-stack web application framework allows remote unauthenticated attackers to retrie

CVE-2025-10655 HIGH POC
8.6 Dec 09

SQL injection in Frappe HelpDesk 1.14.0 dashboard functionality allows authenticated attackers to execute arbitrary SQL

CVE-2025-52042 HIGH POC
8.2 Oct 01

In Frappe ERPNext 15.57.5, the function get_rfq_containing_supplier() at erpnext/buying/doctype/request_for_quotation/re

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy