Ameeba Security Research

Defensive CVE and exploit intelligence

Ameeba Blog Search
TRENDING · 1 WEEK
Attack Vector
Vendor
Severity

CVE-2025-52044: SQL Injection Vulnerability in Frappe ERPNext

Overview

This report delves into the details of a critical SQL Injection vulnerability, identified as CVE-2025-52044, present in Frappe ERPNext version 15.57.5. This vulnerability directly affects all enterprises and organizations utilizing this specific version of the software. The potential SQL Injection attack can lead to severe consequences like system compromise and data leakage, making it a significant cybersecurity concern.

Vulnerability Summary

CVE ID: CVE-2025-52044
Severity: High (7.5 CVSS Score)
Attack Vector: Network
Privileges Required: Low
User Interaction: None
Impact: System compromise or data leakage

Affected Products

Ameeba Chat Icon A new way to communicate

Ameeba Chat is built on encrypted identity, not personal profiles.

Message, call, share files, and coordinate with identities kept separate.

  • • Encrypted identity
  • • Ameeba Chat authenticates access
  • • Aliases and categories
  • • End-to-end encrypted chat, calls, and files
  • • Secure notes for sensitive information

Private communication, rethought.

Product | Affected Versions

Frappe ERPNext | v15.57.5

How the Exploit Works

The vulnerability resides in the function `get_stock_balance()` at `erpnext/stock/utils.py`. The function’s `inventory_dimensions_dict` parameter is vulnerable to SQL Injection. An attacker can craft malicious SQL queries and inject them into this parameter. Upon execution, the attacker can extract all information from the system’s databases, leading to potential compromise of sensitive data.

Conceptual Example Code

The following conceptual example demonstrates how this vulnerability could potentially be exploited. The malicious SQL command is injected through the `inventory_dimensions_dict` parameter.

POST /api/stock/utils/get_stock_balance HTTP/1.1
Host: target.example.com
Content-Type: application/json
{
"inventory_dimensions_dict": "' OR '1'='1'; SELECT * FROM users; --"
}

Mitigation

To mitigate this vulnerability, it is recommended to apply the vendor-provided patch as soon as possible. In the interim, organizations can use Web Application Firewalls (WAF) or Intrusion Detection Systems (IDS) to detect and prevent attempts to exploit this vulnerability. Regular monitoring and auditing of system logs can provide early detection of any nefarious activities.

Want to discuss this further? Join the Ameeba Cybersecurity Group Chat.

Disclaimer:

The information and code presented in this article are provided for educational and defensive cybersecurity purposes only. Any conceptual or pseudocode examples are simplified representations intended to raise awareness and promote secure development and system configuration practices.

Do not use this information to attempt unauthorized access or exploit vulnerabilities on systems that you do not own or have explicit permission to test.

Ameeba and its authors do not endorse or condone malicious behavior and are not responsible for misuse of the content. Always follow ethical hacking guidelines, responsible disclosure practices, and local laws.
Ameeba Chat