Frappe ERPNext 4.3.0 before 15.121.6 SQL Injection in Selling and Buying Modules
Frappe ERPNext 4.3.0 before 15.121.6 and 16.x before 16.37.0 contains an SQL injection vulnerability in an endpoint of the Selling and Buying modules, where a request value validated early can be overridden by caller-supplied data that reaches a database query unvalidated. Any authenticated user, including a portal user with no roles, can send crafted requests to extract sensitive data, including active session data, and take over other accounts such as administrators.
Improper Neutralization of Special Elements used in an SQL Command CWE-89
An attacker can send database commands through a form or address, to read, change or delete the data behind a site.
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.
Weakness data: MITRE Common Weakness Enumeration.
New to this? Read how to keep your software updated.
The products and versions NIST lists as vulnerable, 2 products in all. If what you run is not listed it is probably not affected, but ask your provider if you are unsure.
| Product | Type | Vulnerable versions | Fixed in |
|---|---|---|---|
| Frappe Erpnext | Software | from 4.3.0, before 15.121.6 | 15.121.6 |
| Frappe Erpnext | Software | from 16.0.0, before 16.37.0 | 16.37.0 |
The 8.3 severity score (high) from vulncheck.com, broken into what it means in practice. Red means it makes the flaw easier or worse.
| How it is reached | Network | Can be attacked from anywhere on the internet, with no need to be near the target. |
| How hard it is | Low | Easy to carry out. No special conditions have to line up. |
| Setup needed on the target | None | No special setup on the target is needed. |
| Login needed | Low | The attacker needs an ordinary user account. |
| Someone has to act | None | Nobody has to click or open anything. It can happen on its own. |
| Data exposed | High | Total loss of confidentiality: the attacker can read all the data the program can reach. |
| Data changed | None | Nothing can be changed. |
| Service disrupted | None | The service keeps running. |
| Other systems: data exposed | High | Total loss of confidentiality in other systems the vulnerable one connects to: everything they hold can be read. |
Scorers can disagree. NIST scores every flaw the same way; the reporting company knows its own product best.
NIST lists 2 sources for this flaw, none tagged as a vendor patch.