CVE-2020-6145 SQL injection in ERPNext

Medium 6.4 Published Updated

An authenticated attacker can execute arbitrary SQL commands via the reportview.get endpoint in ERPNext, potentially accessing or modifying database contents.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2020-6145?

CVE-2020-6145 is a medium-severity SQL injection vulnerability in Frappe Erpnext, published on 10 Aug 2020. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

An SQL injection vulnerability exists in the frappe.desk.reportview.get functionality of ERPNext 11.1.38. A specially crafted HTTP request can cause an SQL injection. An attacker can make an authenticated HTTP request to trigger this vulnerability.

Weakness: CWE-89

Which versions are affected by CVE-2020-6145?

It affects 1 product.

Products include Frappe Erpnext.

How do I fix CVE-2020-6145?

No fix has been published for CVE-2020-6145 yet. Limit exposure of the affected software until one is available.

Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.

Is CVE-2020-6145 being exploited?

There is no known exploitation of CVE-2020-6145 in the wild and no public exploit code.

All Frappe Erpnext vulnerabilities

Sources

Also known as GHSA-v9h6-785v-rc7j.

Is CVE-2020-6145 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free