CVE-2025-66440
BaseFortify
Publication date: 2025-12-15
Last updated on: 2025-12-16
Assigner: MITRE
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| frappe | erpnext | 15.89.0 |
Helpful Resources
Exploitability
| 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]