Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-102491 Overview
CVE-2026-102491 is a SQL injection vulnerability in the mahonelau kykms project, affecting builds up to commit 8f130c2d85842d5b44caae78cc46d65e505949f7. The flaw resides in the QueryGenerator.doMultiFieldsOrder function within QueryGenerator.java, part of the SqlInjectionUtil component. Attackers can manipulate the column argument to inject arbitrary SQL statements over the network without authentication. A public exploit has been disclosed, increasing the likelihood of opportunistic exploitation. The project follows a rolling release model, so no fixed version identifier is available, and the vendor did not respond to disclosure attempts.
Critical Impact
Remote, unauthenticated attackers can inject SQL through the column parameter, exposing database contents and potentially enabling data tampering.
Affected Products
- mahonelau kykms (rolling release)
- Builds up to commit 8f130c2d85842d5b44caae78cc46d65e505949f7
- Component: SqlInjectionUtil / QueryGenerator.java
Discovery Timeline
- 2026-09-29 - CVE-2026-102491 published to NVD
- 2026-09-29 - Last updated in NVD database
Technical Details for CVE-2026-102491
Vulnerability Analysis
The vulnerability is a classic SQL injection [CWE-74] in the doMultiFieldsOrder method of QueryGenerator.java. The method builds an ORDER BY clause using the caller-supplied column argument without sufficient sanitization or parameterization. Because ORDER BY targets typically cannot be bound as prepared-statement parameters, developers often concatenate them directly into SQL, which is the pattern this component follows.
An attacker who controls the column value can append SQL fragments that the database engine executes as part of the query. Depending on the database and query context, this can enable data extraction through UNION-based or boolean-based techniques, out-of-band retrieval, or stacked statements.
Root Cause
The root cause is improper neutralization of special elements passed to a downstream SQL query. Inputs intended to represent a sortable column name are treated as trusted identifiers and concatenated into the SQL string generated by SqlInjectionUtil. No allowlist of legitimate column names is enforced before the value reaches the query builder.
Attack Vector
Exploitation is remote and requires no authentication or user interaction. An attacker sends an HTTP request to an endpoint that reaches QueryGenerator.doMultiFieldsOrder, supplying a crafted column parameter that contains SQL syntax. The manipulated identifier flows into the generated query and is executed by the backend database. Public proof-of-concept material is referenced in the GitHub CVE documentation and the VulDB entry for CVE-2026-102491.
Detection Methods for CVE-2026-102491
Indicators of Compromise
- HTTP requests containing SQL metacharacters, comment sequences, or UNION keywords within a column or sort parameter targeting kykms endpoints.
- Database logs showing malformed or unusually structured ORDER BY clauses referencing subqueries or nested SELECT statements.
- Unexpected error responses from the application referencing SQL syntax errors tied to sort or ordering operations.
Detection Strategies
- Deploy WAF rules that inspect query and body parameters used for column ordering and block SQL keywords, quotes, and parenthesized subqueries.
- Enable database query logging and alert on ORDER BY clauses that contain function calls, subselects, or conditional expressions.
- Perform static analysis of QueryGenerator.java for string concatenation involving the column argument to confirm exposure of local builds.
Monitoring Recommendations
- Monitor authentication-free API endpoints for spikes in requests to list, search, or table-view resources that accept sort parameters.
- Correlate application access logs with database audit logs to identify anomalous query patterns originating from a single source.
- Track outbound network activity from the database server that could indicate out-of-band exfiltration attempts.
How to Mitigate CVE-2026-102491
Immediate Actions Required
- Restrict network access to kykms instances until a vendor-supplied fix or in-house patch is applied.
- Enforce a strict allowlist of permitted column names in doMultiFieldsOrder before the value is used to build SQL.
- Deploy a WAF signature to block SQL metacharacters in parameters that map to ordering or column selection.
Patch Information
No vendor patch is available. The vendor was contacted but did not respond, and the project uses rolling releases without version identifiers. Operators should apply a local code change to validate the column argument against a fixed set of allowed identifiers, or rewrite the ordering logic to map user input to server-side constants. Track updates through the VulDB vulnerability record #411276.
Workarounds
- Wrap doMultiFieldsOrder calls with an input validator that rejects any column value not matching ^[A-Za-z0-9_]+$ and not present in an allowlist.
- Run the application with a database account limited to read-only access on required tables to reduce impact of successful injection.
- Disable or remove exposed endpoints that expose sortable list operations if they are not required for business operations.
# Example nginx rule to block SQL keywords in the 'column' parameter
if ($args ~* "column=[^&]*(union|select|sleep|--|/\*|;)") {
return 403;
}
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

