/

CVE-2026-32954

Severity:

HIGH RISK

(7.1)

SQL Injection in ERP Application Endpoints

CVE-2026-32954

Analyzed

Vulnerability type

Category:

SQL Injection

CWE:

CWE-89

Impact:

Confidentiality Breach and Database Enumeration

Severity:

HIGH RISK

(7.1)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

The ERP application contained blind SQL injection flaws in certain HTTP endpoints where user-supplied parameters were not properly validated or constrained.

An attacker could leverage time-based or boolean-based probing to infer sensitive database information without directly seeing query results, turning the application into an oracle for data extraction.

Affected context

The vulnerability occurs in ERP deployments exposing affected web endpoints that build SQL queries using request parameters.

It becomes relevant when:

  • User-controlled values are embedded into SQL statements without robust validation or parameterization
  • The application's HTTP responses or timing behavior differ based on the underlying query result
  • The database is reachable from the application server and contains sensitive business data

Exploit preconditions

  • Attack surface: Public or internal web endpoints of the ERP application
  • Required access: Network-level access to the ERP HTTP interface (typically unauthenticated or low-privilege access to affected routes)
  • Trigger point: Submission of crafted request parameters that influence SQL query predicates
  • Why exploitation is possible: The server constructs SQL statements directly from user input without using safe parameter binding or strict input constraints, allowing attackers to infer query outcomes through boolean-based responses or measurable timing differences

Why this happens

This issue stems from constructing SQL queries by concatenating or interpolating user-provided parameters into query strings.

Instead of using prepared statements with bound parameters or rigorously validated input, the application passes attacker-controlled values into WHERE clauses or conditional expressions.

Under CWE-89 (SQL Injection), this pattern allows an attacker to alter query logic and, in a blind context, observe differences in response content or timing to gradually recover data.

Potential impact

  • Extraction of sensitive records (users, customers, financial data) via blind inference techniques
  • Enumeration of database schema elements (tables, columns, indexes)
  • Discovery of credential hashes or API keys stored in the database
  • Pivoting to more impactful SQL injection paths if additional injectable statements are reachable
  • Potential compliance violations due to unauthorized data disclosure

General mitigation guidance

Effective mitigation focuses on removing direct trust in user input when constructing SQL:

  • Prefer parameterized queries or ORM query builders that separate query structure from data values
  • Apply strict server-side validation and whitelisting for all query-influencing inputs (e.g., IDs, enums, fixed sets)
  • Avoid dynamic string-based query construction, especially for filters, ordering, and limits
  • Centralize database access patterns behind a well-reviewed data access layer
  • Minimize database privileges for the application account to reduce the blast radius if injection occurs
  • Implement generic error handling and normalize response times to reduce side channels where practical

How teams detect issues like this

Teams can detect similar vulnerabilities by combining static and dynamic approaches:

  • Static analysis rules that flag string concatenation or interpolation used in SQL query construction
  • Code review checklists that focus on database access layers and verify use of prepared statements/ORM APIs
  • Automated tests with security scanners or fuzzers that probe endpoints for boolean-based and time-based response patterns
  • Logging and monitoring for unusual query shapes, long-running queries, or repeated patterned requests against the same endpoint
  • Policy enforcement in CI/CD requiring that all new database interactions use approved query abstractions

Sources

SourceLink
github.comgithub.com/frappe/erpnext/releases/tag/v15.100.0
github.comgithub.com/frappe/erpnext/releases/tag/v16.8.0
github.comgithub.com/frappe/erpnext/security/advisories/GHSA-j669-ghv2-gmqg

Frequently asked

questions

Yes. If the ERP endpoints are reachable over the network, an attacker can remotely send crafted requests and observe the responses or timing behavior to carry out blind SQL injection.

Typically, only network access to the vulnerable endpoints is required. In some deployments, attackers may also need valid but low-privilege credentials if the affected routes are behind authentication.

The most robust fix is to enforce parameterized queries or safe ORM patterns everywhere, removing any direct string concatenation of user input into SQL, and to strictly validate and constrain all query parameters.

Standardize on secure database access libraries, establish coding guidelines that forbid ad-hoc SQL construction, integrate static analysis and security tests into CI, and conduct focused reviews on all changes that touch data access code.

Find out what's already
exploitable in your codebase.