CVE-2025-66440
Unknown Unknown - Not Provided
BaseFortify

Publication date: 2025-12-15

Last updated on: 2025-12-16

Assigner: MITRE

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 to_posting_date parameter, which is directly interpolated into the query without proper sanitization or parameter binding.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-12-15
Last Modified
2025-12-16
Generated
2026-05-07
AI Q&A
2025-12-15
EPSS Evaluated
2026-05-05
NVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
frappe erpnext 15.89.0
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-89 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.
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

This vulnerability is a SQL Injection issue in the Frappe ERPNext software, specifically in the function get_outstanding_reference_documents() located in erpnext/accounts/doctype/payment_entry/payment_entry.py. The vulnerability occurs because the to_posting_date parameter is directly inserted into an SQL query without proper sanitization or parameter binding. This allows an attacker to inject malicious SQL code to extract arbitrary data from the database. [1]


How can this vulnerability impact me? :

An attacker exploiting this vulnerability can extract arbitrary data from the database, potentially leading to unauthorized access to sensitive information. This can result in data breaches, data manipulation, or other malicious database-related activities within the ERPNext system. [1]


What immediate steps should I take to mitigate this vulnerability?

To mitigate this vulnerability, you should update Frappe ERPNext to a version later than 15.89.0 where the SQL Injection issue in get_outstanding_reference_documents() is fixed. Additionally, ensure that user inputs, especially the to_posting_date parameter, are properly sanitized and parameterized in SQL queries to prevent injection. Follow any security advisories and patches released by the Frappe security team. [2]


How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:

This vulnerability allows an attacker to extract arbitrary data from the database via SQL Injection, potentially leading to unauthorized access to sensitive information. Such unauthorized data access can result in non-compliance with data protection regulations like GDPR and HIPAA, which require safeguarding personal and sensitive data against breaches and unauthorized disclosures. [2]


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart