SQL Injection in Frappe Erpnext
CVE-2025-66439
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.
Vulnerability class: SQL Injection
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.004 (31.9th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 32nd percentile — 31.9% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.004 · newest: 0.004 · change: 0.000
Affected products
Weakness classification (CWE)
References
- github.com/frappe/frappe/security (Product)
- iamanc.github.io/post/erpnext-sqli (Exploit, Third Party Advisory)
Frequently asked questions
- What is CVE-2025-66439?
- CVE-2025-66439 is a high-severity vulnerability in Frappe Erpnext, classified under SQL Injection. CVSS score: 8.8/10. Published 2025-12-15.
- How severe is CVE-2025-66439?
- High severity. CVSS v3 base score is 8.8 out of 10.