Skip to main content

Daptin CVE-2026-41422

HIGH
SQL Injection (CWE-89)
2026-04-22 https://github.com/daptin/daptin GHSA-rw2c-8rfq-gwfv
8.3
CVSS 3.1 · GitHub Advisory
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain valid user credentials
  2. Delivery
    Authenticate to Daptin API
  3. Exploit
    Craft HTTP request with SQL injection in column parameter
  4. Execution
    Server executes raw SQL via goqu.L()
  5. Persist
    Extract arbitrary database content in API response
  6. Impact
    Escalate 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 /aggregate/:typename endpoint must be exposed and accessible (default configuration in Daptin deployments). No special database configuration required; works against default SQLite backend and likely other supported databases. Not exploitable by unauthenticated remote attackers. Limiting factors: attacker must first obtain valid credentials (via phishing, credential stuffing, or another vulnerability), and extracted data is constrained by the SQL dialect of the backend database (SQLite in confirmed reproduction, but Daptin supports PostgreSQL/MySQL with potentially different injection payloads). Organizations not exposing aggregate endpoints externally or limiting them to admin-only roles reduce attack surface, but internal threats and compromised low-privilege accounts remain vectors.

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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

go github.com/daptin/daptin fix: 0.11.4

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

GitHub Advisory PRIMARY 8.3 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L
SUSE HIGH

Primary rating from GitHub Advisory.

CVSS VectorGitHub Advisory

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
Low

Lifecycle Timeline

2
Patch released
Apr 23, 2026 - 02:30 nvd
Patch available
CVE Published
Apr 22, 2026 - 17:38 nvd
HIGH 8.3

DescriptionGitHub 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
  • allowedTables scope 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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.0%
Top 86% exploitable
Threat Intel
1
1 source
Data Quality
3 sources
Confidence: Low
NVD CVE.org EPSS GHSA Vendor GitHub

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

42
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +42
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

Affected Products (CPE)GitHub Advisory

pkg:go/github.com_daptin_daptin

Vendor 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

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy