Skip to main content

ERPNext EUVDEUVD-2026-50294

| CVE-2026-12895 HIGH
SQL Injection (CWE-89)
2026-07-29 cve-coordination@incibe.es
7.1
CVSS 4.0 · Vendor: incibe
View

Attack ChainAIDerived

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

  1. Access
    Authenticate with low-privilege ERPNext account
  2. Delivery
    Create Supplier with SQL metacharacters in docname
  3. Exploit
    Trigger query built via str.format()
  4. Execution
    Injected SQL executes on database
  5. Impact
    Bypass DocPerm and extract admin hash and credentials

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

Requires an authenticated account with at least low privileges (CVSS PR:L) that can create or set the name/docname of a Supplier record; the attacker embeds SQL metacharacters in that Supplier docname, which the application then interpolates into a query via str.format() instead of a parameterized query. Exploitation is network-reachable with no user interaction and low complexity, but is limited by the need for a valid login and the ability to influence Supplier record naming - it is not exploitable by fully unauthenticated, anonymous internet users against a default configuration.

Impact

The signals are moderately consistent. The CVSS 4.0 base score is 7.1 (High) with AV:N/AC:L/AT:N/PR:L/UI:N and VC:H/VI:N/VA:L - remote, low-complexity, requires an authenticated but low-privilege account, high confidentiality impact and only limited availability impact. No EPSS score, KEV listing, or public POC was provided, so this is not confirmed as actively exploited and should be treated as a real-but-not-emergency priority: exploitation requires a valid low-privilege login and the ability to create/name a Supplier record, which limits opportunistic mass exploitation but is very realistic for insider or post-account-compromise abuse. The primary caveat is data completeness - the only reference is an INCIBE advisory notice and no exact fixed version or vendor patch advisory URL is provided, so remediation specifics could not be independently confirmed.

Exploit ScenarioDerived

A user with a low-privilege ERPNext account (for example a vendor-portal or junior procurement account) creates or edits a Supplier record and sets its name to a string containing SQL metacharacters crafted to alter the backend query. When the application interpolates that docname into a str.format() query, the attacker's SQL executes with the app's database privileges, letting them dump the administrator password hash and other DocTypes while bypassing DocPerm - all over the network with low attack complexity and no user interaction. No public exploit code was identified at time of analysis.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Jul 29, 2026

SQL injection in Frappe's ERPNext (ERPNext 15.107.0, Frappe framework 15.107.2) lets an authenticated low-privilege user run arbitrary SQL by placing SQL metacharacters in the name (docname) of a Supplier record, which is later interpolated into a query via str.format() instead of being parameterized. Because the injected query runs with the application's database privileges, an attacker can bypass Frappe's DocPerm access controls and read data they should not see, including fragments of the administrator's password hash, stored credentials, integration tokens, and financial records. Per the CVSS 4.0 vector the flaw is network-reachable with low attack complexity and only low privileges (PR:L), and there is no public exploit identified at time of analysis.

RemediationAI

No vendor-released patch version was identified at time of analysis; consult the INCIBE-CERT notice (https://www.incibe.es/en/incibe-cert/notices/aviso/sql-injection-frappes-erpnext) and the Frappe/ERPNext security channel for the fixed release and upgrade to it once published, since the underlying fix is to replace the str.format()-based query construction with Frappe's parameterized frappe.db.sql bindings. As compensating controls until a patched build is deployed, restrict who can create or rename Supplier records by tightening DocPerm/role permissions on the Supplier DocType (trade-off: may block legitimate procurement workflows), enforce strict input validation or a naming series that rejects SQL metacharacters in Supplier names, minimize the number of accounts with any authenticated access, and increase database and application query logging to detect anomalous Supplier docnames or unexpected query patterns.

Affected VersionsENISA

ERPNext 0 <16.22.0
ERPNext 0 <15.111.0

Affected Packages

euvd erpnext fix: 15.111.0, 16.22.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 full-stack web framework and ERPNext is the ERP application built on top of it; both share a MariaDB/MySQL-backed document (DocType) data model where each record has a 'name' primary key (docname). The root cause is CWE-89 (SQL Injection): a query is assembled by direct string interpolation using Python's str.format() rather than the framework's parameterized query API (frappe.db.sql with bound parameters), so a Supplier docname carrying SQL metacharacters escapes its intended string context and is parsed as SQL. Because the query executes under the ORM/database connection rather than through Frappe's DocPerm permission layer, the injection also acts as an authorization bypass, exposing data across DocTypes the low-privilege user could not normally read.

Know when the next one hits your stack

  • 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 (incibe) PRIMARY 7.1 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:L/SC:N/SI:N/SA:N
vuln.today AI 7.1 HIGH

Network-reachable with a low-privilege authenticated account (PR:L, AV:N, AC:L); high confidentiality from arbitrary data extraction, no integrity impact stated, limited availability impact from arbitrary SQL.

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

Primary rating from Vendor (incibe).

CVSS VectorVendor: incibe

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

Lifecycle Timeline

2
Patch available
Jul 29, 2026 - 12:02 EUVD
CVE Published
Jul 29, 2026 - 11:16 cve.org
HIGH 7.1

DescriptionCVE.org

SQL injection in Frappe's ERPNext, versions ERPNext 15.107.0 and Frappe 15.107.2. The application constructs SQL queries through direct string interpolation using str.format() without employing parameterized queries, allowing the name (docname) of a Supplier record containing SQL metacharacters to be interpreted as part of the query. Exploitation of this vulnerability could allow an authenticated user with low privileges to execute arbitrary SQL queries, bypass Frappe’s access restrictions (DocPerm), extract confidential information from the database-including fragments of the administrator’s password hash-and access other sensitive data, such as credentials, integration tokens, or financial information.

Executive ViewAI

Why It Matters

ERPNext 15.107.0 (Frappe 15.107.2) contains a SQL injection vulnerability accessible to any authenticated low-privilege user-such as employees and vendors-enabling unauthorized access to sensitive financial records, administrative credentials, and integration tokens beyond their authorization scope. This creates immediate data breach and credential compromise risk for organizations using affected versions, with no current vendor patch available. Interim defensive measures are required.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) restrict Supplier record creation/editing permissions to administrative users only; (2) implement input validation to block SQL metacharacters in Supplier docname fields; (3) enable database query audit logging with alerts for injection-pattern detection; (4) review Supplier records created or modified by low-privilege users within the past 90 days to identify unauthorized data access.

Threat Intelligence Overview

EPSS Score
0.2%
Top 88% exploitable
Prevalence
Medium
popular open-source ERP, common in SMBs but not ubiquitous
Social Media
1
Sightings
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 HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

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

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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