Daptin CVE-2026-41422
HIGHAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain valid user credentials
-
DeliveryAuthenticate to Daptin API
-
ExploitCraft HTTP request with SQL injection in column parameter
-
ExecutionServer executes raw SQL via goqu.L()
-
PersistExtract arbitrary database content in API response
-
ImpactEscalate privileges using stolen admin credentials
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires valid authentication to the Daptin instance-any user account with permission to access aggregate API endpoints can exploit this vulnerability regardless of privilege level. The |
| Impact | Real-world risk is elevated despite the low-privilege authentication requirement. CVSS 8.3 (High) accurately reflects the broad impact: network-accessible (AV:N), simple exploitation requiring only valid credentials (AC:L/PR:L), no user interaction (UI:N), and high confidentiality/integrity impact with low availability impact (C:H/I:H/A:L). The confidentiality risk is particularly acute-any authenticated user can extract the entire database including credentials of higher-privilege users, enabling vertical privilege escalation. The integrity impact stems from potential data modification via SQL injection techniques like UPDATE injection or stored procedure abuse, though the description focuses on SELECT-based exfiltration. EPSS and KEV data not provided, but the straightforward exploitation path (authenticated users can trivially craft malicious column parameters) suggests this would be exploited if Daptin installations are exposed with weak authentication controls. The absence of scope change (S:U) limits blast radius to the database context. Risk is further elevated by two factors: (1) the vulnerability existed in a core API endpoint likely used by all Daptin deployments, and (2) SQLite's sqlite_master table disclosure allows attackers to map the entire schema before extraction. Mitigating factor: requires valid authentication, so external attackers must first compromise credentials or exploit another auth bypass. The fix is comprehensive (structural parsing + allowlists + schema validation), suggesting low residual risk in v0.11.4+. Confidence high-vendor advisory provides detailed root cause, confirmed local reproduction, and explicit fix version. |
| Exploit ScenarioDerived | An authenticated attacker with valid low-privilege credentials logs into a Daptin instance and crafts a GET request to /aggregate/orders with a malicious column parameter: ?column=(SELECT group_concat(email||':'||password_hash) FROM user_account) as leak. The server inserts this raw SQL fragment into the aggregate query, executing it and returning all user credentials in the API response. The attacker uses extracted admin credentials to escalate privileges or exfiltrates sensitive business data from other tables. Exploitation requires only HTTP client capabilities and understanding of SQL syntax; no specialized tools or exploits needed beyond basic SQLi knowledge. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 23, 2026
SQL injection in Daptin's /aggregate/:typename endpoint allows authenticated low-privilege users to extract arbitrary database content via unsanitized query parameters. The column and group parameters are passed directly to raw SQL literal expressions without validation, enabling data exfiltration from any table including user credentials, database schema disclosure, and cross-table correlation attacks. Patched in version 0.11.4 which replaces all raw SQL construction with parameterized queries and schema-based validation. No evidence of active exploitation or public POC at time of analysis, though exploitation is straightforward for authenticated users.
RemediationAI
Upgrade immediately to Daptin v0.11.4 or later, released at https://github.com/daptin/daptin/releases/tag/v0.11.4. This version eliminates all unsafe goqu.L() calls in the aggregation endpoint, replacing them with schema-validated column name checking, function name allowlisting, and parameterized query construction using safe goqu methods. The patch also fixes two denial-of-service bugs (uuid.MustParse panic and index-out-of-range in sort expression parsing). If immediate upgrade is not feasible, implement these compensating controls with noted trade-offs: (1) Disable the /aggregate/:typename endpoint entirely via reverse proxy URL filtering or API gateway rules-this breaks any application features depending on aggregation queries; (2) Restrict /aggregate endpoint access to admin-only via authentication middleware or network segmentation (allowlist source IPs)-this limits blast radius but does not eliminate risk from compromised admin accounts; (3) Deploy a web application firewall with rules blocking common SQL injection patterns in column/group query parameters (parentheses, SELECT/UNION keywords, sqlite_master references)-this is easily bypassed by obfuscation and provides false security. None of these workarounds are substitutes for patching; all have significant operational or security limitations.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in go
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Daptin is a Go-based headless CMS and API server (pkg:go/github.com_daptin_daptin) that provides dynamic REST endpoints for database operations. The vulnerability exists in the aggregation endpoint handler at server/resource/resource_aggregate.go, which uses the goqu query builder library. The flaw is a classic CWE-89 SQL injection resulting from passing user-controlled input directly to goqu.L(), a raw literal expression constructor designed for trusted SQL fragments. Unlike goqu's safe constructors (goqu.I() for identifiers, goqu.SUM() for functions), goqu.L() treats its argument as a literal SQL string fragment that is embedded verbatim into the generated query. This bypasses all parameterization-the primary defense against SQL injection in prepared statements. The vulnerability is particularly severe because aggregate endpoints often run with elevated database privileges to support cross-table analytics. The fix demonstrates proper defense by replacing raw literals with structural parsing: user input is decomposed into validated components (table names checked against schema, column names verified via TableInfo().GetColumnByName(), function names matched against an exact allowlist), then reassembled using safe constructors that enforce proper escaping and quoting.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L
Primary rating from GitHub Advisory.
CVSS VectorGitHub Advisory
Lifecycle Timeline
2DescriptionGitHub Advisory
Summary
The /aggregate/:typename endpoint accepted column and group query parameters that were passed verbatim to goqu.L() - a raw SQL literal expression builder - without any validation. This bypassed all parameterization and allowed authenticated users with any valid session to inject arbitrary SQL expressions.
Impact
An authenticated low-privilege user could:
- Extract data from any table via subquery:
(SELECT group_concat(email) FROM user_account) as leak - Disclose database internals:
sqlite_version(),(SELECT sql FROM sqlite_master) - Exfiltrate cross-table data via correlated subqueries
The vulnerability was confirmed locally; user_account.email values were extracted via a crafted column parameter by a non-admin user.
Root Cause
goqu.L(userInput) in server/resource/resource_aggregate.go inserted user-supplied query parameters directly into the SQL string with no validation.
Fix (v0.11.4)
All goqu.L() calls on user-controlled input were eliminated and replaced with:
- Structural expression parsing supporting all documented API forms
- Schema-based column validation (column names checked against entity schema via
TableInfo().GetColumnByName()) - Exact-match allowlist for aggregate functions (
count,sum,avg,min,max,first,last) and scalar functions (date,strftime,upper,lower, etc.) - Safe goqu constructors (
goqu.I(),goqu.SUM(),goqu.Func()) for all generated expressions allowedTablesscope enforcement: qualified column refs (table.col) validated against root entity + explicitly joined tables only
Two additional DoS bugs were fixed in the same commit: uuid.MustParse panic on malformed UUID input and an index-out-of-range panic in ToOrderedExpressionArray on empty sort expressions.
Credits
Reported by @VashuVats.
Executive ViewAI
Daptin versions prior to 0.11.4 contain a SQL injection vulnerability in the aggregation endpoint that allows authenticated low-privilege users to extract sensitive data including credentials and database schema from the underlying database. Any organization running Daptin with user accounts should treat this as a priority remediation to prevent unauthorized data disclosure.
Apply vendor patch. If immediate upgrade is not possible: restrict access to the /aggregate/:typename endpoint at the network or API gateway level, enforce principle of least privilege by limiting user account permissions to read-only on non-sensitive tables, and implement detailed logging and alerting on aggregate endpoint requests.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
Affected Products (CPE)GitHub Advisory
Same weakness CWE-89 – SQL Injection
View allVendor StatusVendor
SUSE
Severity: Important| Product | Status |
|---|---|
| SUSE Linux Enterprise Server 16.1 | Affected |
| SUSE Linux Enterprise Server for SAP applications 16.1 | Affected |
| SUSE Linux Enterprise Module for Package Hub 15 SP5 | Affected |
| SUSE Linux Enterprise Module for Package Hub 15 SP6 | Affected |
| openSUSE Leap 15.5 | Affected |
| openSUSE Leap 15.6 | Affected |
GHSA-rw2c-8rfq-gwfv
NVD
CVE.org
EPSS
Exploit-DB