Skip to main content

Frappe Framework CVE-2026-47199

| EUVDEUVD-2026-43101 LOW
SQL Injection (CWE-89)
2026-07-10 GitHub_M
2.3
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Authenticate to Frappe as low-privileged user
  2. Delivery
    Identify SQL query execution surface (report builder or API)
  3. Exploit
    Craft SELECT INTO OUTFILE statement bypassing check_safe_sql_query filter
  4. Execution
    MySQL executes write using FILE privilege
  5. Impact
    Arbitrary 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.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.4% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – 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

frappe 16.0.0-beta.1, < 16.18.3
frappe < 15.108.0

Affected Packages

euvd frappe fix: 15.108.0
euvd frappe_16_0_0_beta_1 fix: 16.18.3

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

Vendor (GitHub_M) PRIMARY 2.3 LOW
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
vuln.today AI 3.1 LOW

AC:H reflects the non-default MySQL FILE privilege prerequisite; PR:L confirms authentication required; no confidentiality or availability impact applies.

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

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Jul 10, 2026 - 23:02 EUVD

DescriptionCVE.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

EPSS Score
0.4%
Top 68% exploitable
Prevalence
Medium
open-source ERP framework broadly used across SMB and developer self-hosted environments
Data Quality
6 sources
Confidence: High

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 LOW
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
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
Defer
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

12
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +12
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.

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