Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to Frappe as low-privileged user
-
DeliveryIdentify SQL query execution surface (report builder or API)
-
ExploitCraft SELECT INTO OUTFILE statement bypassing check_safe_sql_query filter
-
ExecutionMySQL executes write using FILE privilege
-
ImpactArbitrary file written to attacker-chosen server path
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 three concurrent non-default conditions: the Frappe deployment must be self-hosted (not Frappe Cloud managed), the database backend must be MySQL (not PostgreSQL), and the MySQL database user configured for Frappe must hold the FILE privilege - which is not granted by default in MySQL and contradicts least-privilege hardening. The attacker must additionally be authenticated to Frappe with at least low-level user privileges (PR:L per CVSS 4.0 AT vector). Exploitation is further constrained by the need for the attacker to reach a Frappe interface that exposes query execution to non-administrative users. The combination of required authentication, a non-default MySQL privilege grant, and self-hosted deployment is what yields the very low CVSS 4.0 score of 2.3. Exploitability is substantially reduced in any of these conditions: Frappe Cloud, PostgreSQL backend, or a MySQL user without FILE privilege. |
| Impact | The CVSS 4.0 score of 2.3 (AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N) accurately reflects real-world risk. The AT:P metric is the critical limiting factor: successful exploitation requires the MySQL database user to hold the FILE privilege, a configuration that contradicts the principle of least privilege and should not be present in production deployments following standard hardening guidance. PR:L confirms that unauthenticated exploitation is not possible. Impact is confined to low integrity (VI:L) - arbitrary file writes - with no confidentiality or availability impact, meaning data exfiltration or service disruption are not direct outcomes. EPSS data was not provided in the source intelligence. No KEV listing exists, no POC has been identified, and the vulnerability is reported by GitHub (not a major threat intelligence source indicating active exploitation campaigns). Real-world priority is LOW for managed or cloud Frappe deployments and for PostgreSQL-backed instances; it warrants attention specifically for self-hosted MySQL deployments where FILE privilege grants have not been audited. |
| Exploit ScenarioDerived | An authenticated Frappe user with low-level access submits a crafted SELECT INTO OUTFILE SQL query through an exposed query interface such as a custom report builder, query form, or API endpoint that invokes check_safe_sql_query. The filter bypass allows the statement to reach the MySQL engine, which - if the Frappe database user holds the FILE privilege - writes the query output to a server path chosen by the attacker, such as a web-accessible directory. No public exploit code has been identified at time of analysis, but the SELECT INTO OUTFILE file-write technique is well-documented in SQL injection offensive literature and requires no novel tooling once the filter bypass is confirmed. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 10, 2026
Frappe framework's check_safe_sql_query function fails to block SELECT INTO OUTFILE statements, allowing authenticated low-privileged users to write arbitrary files to the server filesystem on self-hosted MySQL deployments where the database user holds the MySQL FILE privilege. Affected branches are v15 prior to 15.108.0 and v16 prior to 16.18.3; fixes are released at both version targets. No public exploit code has been identified and this vulnerability is not listed in the CISA KEV catalog, with a CVSS 4.0 base score of 2.3 reflecting the narrow, non-default exploitation conditions captured by AT:P.
RemediationAI
Upgrade Frappe to version 16.18.3 (v16 branch) or 15.108.0 (v15 branch), both of which resolve the check_safe_sql_query bypass; release artifacts are available at https://github.com/frappe/frappe/releases/tag/v16.18.3 and https://github.com/frappe/frappe/releases/tag/v15.108.0, with underlying fixes landed via PRs #39345 and #39346 (commits 628e103f and 91d3ded0). As an immediate compensating control for environments that cannot patch promptly, revoke the MySQL FILE privilege from the Frappe database user (REVOKE FILE ON *.* FROM 'frappe_db_user'@'host'); this directly eliminates the exploitation pathway for SELECT INTO OUTFILE and is low-risk since the FILE privilege is not required for standard Frappe or ERPNext operation. Additionally, audit all MySQL user grants on self-hosted instances to confirm FILE is absent across all application-tier accounts - a best-practice baseline independent of this CVE.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Frappe (cpe:2.3:a:frappe:frappe:*:*:*:*:*:*:*:*) is a Python-based full-stack web framework underlying ERPNext and other applications. It exposes a check_safe_sql_query function intended to act as a safety filter, blocking dangerous SQL constructs before execution. CWE-89 (SQL Injection) identifies the root cause: an incomplete denylist that failed to intercept the SELECT INTO OUTFILE statement variant. SELECT INTO OUTFILE is a MySQL-specific extension that directs query output to a server-side file path, requiring the MySQL FILE privilege on the database user account - a non-default grant not present in cloud-managed or hardened deployments. PostgreSQL and MariaDB configurations do not expose this specific MySQL FILE privilege pathway.
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
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
AC:H reflects the non-default MySQL FILE privilege prerequisite; PR:L confirms authentication required; no confidentiality or availability impact applies.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
Frappe is a full-stack web application framework. Prior to 16.18.3 and 15.108.0, check_safe_sql_query permitted SELECT INTO OUTFILE queries, which could potentially work on self-hosted sites if database permissions are not well aligned and MySQL FILE privileges are available. This issue is fixed in versions 16.18.3 and 15.108.0.
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.
Stored 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-2026-43101
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB