Vulnerability Details : CVE-2018-20061
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.
Vulnerability category: Sql Injection
Products affected by CVE-2018-20061
- cpe:2.3:a:frappe:erpnext:*:*:*:*:*:*:*:*
- cpe:2.3:a:frappe:erpnext:*:*:*:*:*:*:*:*
- cpe:2.3:a:frappe:erpnext:11.0.3:beta3:*:*:*:*:*:*
- cpe:2.3:a:frappe:erpnext:11.0.3:beta10:*:*:*:*:*:*
- cpe:2.3:a:frappe:erpnext:11.0.3:beta12:*:*:*:*:*:*
- cpe:2.3:a:frappe:erpnext:11.0.3:beta17:*:*:*:*:*:*
- cpe:2.3:a:frappe:erpnext:11.0.3:beta19:*:*:*:*:*:*
- cpe:2.3:a:frappe:erpnext:11.0.3:beta26:*:*:*:*:*:*
- cpe:2.3:a:frappe:erpnext:11.0.3:beta28:*:*:*:*:*:*
- cpe:2.3:a:frappe:erpnext:11.0.3:beta5:*:*:*:*:*:*
- cpe:2.3:a:frappe:erpnext:11.0.3:beta6:*:*:*:*:*:*
- cpe:2.3:a:frappe:erpnext:11.0.3:beta7:*:*:*:*:*:*
- cpe:2.3:a:frappe:erpnext:11.0.3:beta8:*:*:*:*:*:*
- cpe:2.3:a:frappe:erpnext:11.0.3:beta21:*:*:*:*:*:*
- cpe:2.3:a:frappe:erpnext:11.0.3:beta22:*:*:*:*:*:*
- cpe:2.3:a:frappe:erpnext:11.0.3:beta23:*:*:*:*:*:*
- cpe:2.3:a:frappe:erpnext:11.0.3:beta24:*:*:*:*:*:*
- cpe:2.3:a:frappe:erpnext:11.0.3:beta25:*:*:*:*:*:*
- cpe:2.3:a:frappe:erpnext:11.0.3:beta13:*:*:*:*:*:*
- cpe:2.3:a:frappe:erpnext:11.0.3:beta14:*:*:*:*:*:*
- cpe:2.3:a:frappe:erpnext:11.0.3:beta15:*:*:*:*:*:*
- cpe:2.3:a:frappe:erpnext:11.0.3:beta16:*:*:*:*:*:*
- cpe:2.3:a:frappe:erpnext:11.0.3:beta2:*:*:*:*:*:*
- cpe:2.3:a:frappe:erpnext:11.0.3:beta4:*:*:*:*:*:*
- cpe:2.3:a:frappe:erpnext:11.0.3:beta9:*:*:*:*:*:*
- cpe:2.3:a:frappe:erpnext:11.0.3:beta11:*:*:*:*:*:*
- cpe:2.3:a:frappe:erpnext:11.0.3:beta18:*:*:*:*:*:*
- cpe:2.3:a:frappe:erpnext:11.0.3:beta20:*:*:*:*:*:*
- cpe:2.3:a:frappe:erpnext:11.0.3:beta27:*:*:*:*:*:*
- cpe:2.3:a:frappe:erpnext:11.0.3:beta29:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2018-20061
0.12%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 46 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2018-20061
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
5.0
|
MEDIUM | AV:N/AC:L/Au:N/C:P/I:N/A:N |
10.0
|
2.9
|
NIST | |
7.5
|
HIGH | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
3.9
|
3.6
|
NIST |
CWE ids for CVE-2018-20061
-
The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.Assigned by: nvd@nist.gov (Primary)
References for CVE-2018-20061
-
https://github.com/frappe/erpnext/issues/15337
SQL Injection from API? · Issue #15337 · frappe/erpnext · GitHubThird Party Advisory
Jump to