Vulnerability Database

405,826

Total vulnerabilities in the database

CVE-2018-20061 — frappe / erpnext

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

A SQL injection issue was discovered in ERPNext 10.x and 11.x through 11.0.3-beta.29. This attack is only available to a logged-in user; however, many ERPNext sites allow account creation via the web. No special privileges are needed to conduct the attack. By calling a JavaScript function that calls a server-side Python function with carefully chosen arguments, a SQL attack can be carried out which allows SQL queries to be constructed to return any columns from any tables in the database. This is related to /api/resource/Item?fields= URIs, frappe.get_list, and frappe.call.

  • Published: Dec 11, 2018
  • Updated: Oct 22, 2026
  • CVE: CVE-2018-20061
  • Severity: Medium
  • Exploit:
  • CISA KEV:

CVSS v2:

  • Severity: Medium
  • Score: 5
  • AV:N/AC:L/Au:N/C:P/I:N/A:N

CWEs:

OWASP TOP 10:

Software Affected versions
frappe / erpnext >= 11.0.0, < 11.0.3
frappe / erpnext >= 10.0.0, <= 10.1.76
frappe / erpnext = 11.0.3-beta10
frappe / erpnext = 11.0.3-beta11
frappe / erpnext = 11.0.3-beta12
frappe / erpnext = 11.0.3-beta13
frappe / erpnext = 11.0.3-beta14
frappe / erpnext = 11.0.3-beta15
frappe / erpnext = 11.0.3-beta16
frappe / erpnext = 11.0.3-beta17
frappe / erpnext = 11.0.3-beta18
frappe / erpnext = 11.0.3-beta19
frappe / erpnext = 11.0.3-beta2
frappe / erpnext = 11.0.3-beta20
frappe / erpnext = 11.0.3-beta21
frappe / erpnext = 11.0.3-beta22
frappe / erpnext = 11.0.3-beta23
frappe / erpnext = 11.0.3-beta24
frappe / erpnext = 11.0.3-beta25
frappe / erpnext = 11.0.3-beta26
frappe / erpnext = 11.0.3-beta27
frappe / erpnext = 11.0.3-beta28
frappe / erpnext = 11.0.3-beta29
frappe / erpnext = 11.0.3-beta3
frappe / erpnext = 11.0.3-beta4
frappe / erpnext = 11.0.3-beta5
frappe / erpnext = 11.0.3-beta6
frappe / erpnext = 11.0.3-beta7
frappe / erpnext = 11.0.3-beta8
frappe / erpnext = 11.0.3-beta9

Is CVE-2018-20061 exposed on your perimeter?

A vulnerability database tells you what is broken. Attack surface management tells you where it is running: it discovers your internet-facing assets and flags the ones affected by issues like this one.

What is attack surface management? →

Frequently Asked Questions

A security vulnerability is a weakness in software, hardware, or configuration that can be exploited to compromise confidentiality, integrity, or availability. Many vulnerabilities are tracked as CVEs (Common Vulnerabilities and Exposures), which provide a standardized identifier so teams can coordinate patching, mitigation, and risk assessment across tools and vendors.

CVSS (Common Vulnerability Scoring System) estimates technical severity, but it doesn't automatically equal business risk. Prioritize using context like internet exposure, affected asset criticality, known exploitation (proof-of-concept or in-the-wild), and whether compensating controls exist. A "Medium" CVSS on an exposed, production system can be more urgent than a "Critical" on an isolated, non-production host.

A vulnerability is the underlying weakness. An exploit is the method or code used to take advantage of it. A zero-day is a vulnerability that is unknown to the vendor or has no publicly available fix when attackers begin using it. In practice, risk increases sharply when exploitation becomes reliable or widespread.

Recurring findings usually come from incomplete Asset Discovery, inconsistent patch management, inherited images, and configuration drift. In modern environments, you also need to watch the software supply chain: dependencies, containers, build pipelines, and third-party services can reintroduce the same weakness even after you patch a single host. Unknown or unmanaged assets (often called Shadow IT) are a common reason the same issues resurface.

Use a simple, repeatable triage model: focus first on externally exposed assets, high-value systems (identity, VPN, email, production), vulnerabilities with known exploits, and issues that enable remote code execution or privilege escalation. Then enforce patch SLAs and track progress using consistent metrics so remediation is steady, not reactive.

SynScan combines attack surface monitoring and continuous security auditing to keep your inventory current, flag high-impact vulnerabilities early, and help you turn raw findings into a practical remediation plan.