CVE-2025-52039 SQL injection in n/a

High 8.2 Published Updated

An attacker can extract all database information by injecting SQL queries into the txt parameter of the material request function.

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-52039?

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

Official description

In Frappe ERPNext 15.57.5, the function get_material_requests_based_on_supplier() at erpnext/stock/doctype/material_request/material_request.py is vulnerable to SQL Injection, which allows an attacker to extract all information from databases by injecting a SQL query into the txt parameter.

Weakness: CWE-89

Which versions are affected by CVE-2025-52039?

It affects 1 product.

Products include Frappe Erpnext.

How do I fix CVE-2025-52039?

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

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-52039 exists.

All Frappe Erpnext vulnerabilities

Sources

Also known as GHSA-p27p-9h7f-gjj8.

Is CVE-2025-52039 in your software?

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

Check your SBOMs for free