CVE-2025-52044 SQL injection in n/a

High 7.5 Published Updated

An attacker can extract all database information via SQL injection in the get_stock_balance function of Frappe ERPNext.

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

What is CVE-2025-52044?

CVE-2025-52044 is a high-severity SQL injection vulnerability in Frappe Erpnext, published on 16 Sep 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

In Frappe ERPNext v15.57.5, the function get_stock_balance() at erpnext/stock/utils.py is vulnerable to SQL Injection, which allows an attacker to extract all information from databases by injecting SQL query into inventory_dimensions_dict parameter.

Weakness: CWE-89

Which versions are affected by CVE-2025-52044?

It affects 1 product.

Products include Frappe Erpnext.

How do I fix CVE-2025-52044?

No fix has been published for CVE-2025-52044 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-2025-52044 being exploited?

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

All Frappe Erpnext vulnerabilities

Sources

Also known as GHSA-gpg6-pmh7-x5f7.

Is CVE-2025-52044 in your software?

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

Check your SBOMs for free