Description
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.
Published: 2026-07-10
Score: 2.3 Low
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A flaw in Frappe’s input sanitisation allowed the execution of SELECT INTO OUTFILE statements when the check_safe_sql_query function was used. The vulnerability is a classic SQL injection (CWE‑89) that, if exploited, could let an attacker write files to the database server’s filesystem, enabling data exfiltration, creation of arbitrary files, or compromise of system integrity. The impact level is limited to environments where the application runs with MySQL users that have FILE privileges.

Affected Systems

The issue affects all self‑hosted installations of Frappe using releases older than 16.18.3 or 15.108.0. These versions are identified under the vendor identifier frappe:frappe; any deployment of those older releases is susceptible, while newer releases have the flaw corrected.

Risk and Exploitability

The published CVSS score of 2.3 indicates low overall risk, and the vulnerability is not listed in CISA’s KEV catalog. The EPSS score of <1% indicates a very low probability of exploitation in practice. Based on the description, it is inferred that the exploitation requires a database account with FILE privileges and the application to accept unsanitised SQL input. The attack vector is therefore a local SQL injection that leverages database permission misconfiguration in self‑hosted deployments.

Generated by OpenCVE AI on July 29, 2026 at 09:58 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to Frappe version 16.18.3 or later, or to version 15.108.0 or later, where the select query sanitisation has been corrected.
  • If an upgrade cannot be performed immediately, remove FILE privileges from the MySQL user accounts that the application uses, which blocks the SELECT INTO OUTFILE statement from creating files.
  • Implement a database proxy or web application firewall that rejects or logs attempts to execute SELECT INTO OUTFILE statements and terminate the connection if such a pattern is detected.

Generated by OpenCVE AI on July 29, 2026 at 09:58 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 13 Jul 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 10 Jul 2026 22:45:00 +0000

Type Values Removed Values Added
First Time appeared Frappe
Frappe frappe
Vendors & Products Frappe
Frappe frappe

Fri, 10 Jul 2026 21:30:00 +0000

Type Values Removed Values Added
Description 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.
Title Frappe: check_safe_sql_query Permits SELECT INTO OUTFILE
Weaknesses CWE-89
References
Metrics cvssV4_0

{'score': 2.3, 'vector': '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-13T15:59:34.730Z

Reserved: 2026-05-18T22:07:37.436Z

Link: CVE-2026-47199

cve-icon Vulnrichment

Updated: 2026-07-13T15:59:30.764Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-29T10:00:15Z

Weaknesses
  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')