CVE-2025-66439 SQL injection in n/a

Critical 9.8 Published Updated

An attacker can extract arbitrary database data via SQL injection in the payment entry module of 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-66439?

CVE-2025-66439 is a critical SQL injection vulnerability in Frappe Erpnext, published on 15 Dec 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

An issue was discovered in Frappe ERPNext through 15.89.0. Function get_outstanding_reference_documents() at erpnext.accounts.doctype.payment_entry.payment_entry.py is vulnerable to SQL Injection. It allows an attacker to extract arbitrary data from the database by injecting SQL payloads via the from_posting_date parameter, which is directly interpolated into the query without proper sanitization or parameter binding.

Weakness: CWE-89

Which versions are affected by CVE-2025-66439?

It affects 1 product.

Products include Frappe Erpnext.

How do I fix CVE-2025-66439?

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

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

All Frappe Erpnext vulnerabilities

Sources

Also known as GHSA-6329-q89j-9c7m.

Is CVE-2025-66439 in your software?

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

Check your SBOMs for free