CVE-2026-77367
### Summary An unauthenticated attacker can inject arbitrary SQL through the `sort` query parameter accepted by Daptin's generic entity list endpoint (`GET /api/<entity>`), which every table in a Daptin instance exposes. The parameter is concatenated into raw SQL identifiers with no validation that the referenced column exists, unlike a sibling code path in the same file that received exactly this validation as the fix for a previously published advisory ([GHSA-rw2c-8rfq-gwfv](https://github.com/daptin/daptin/security/advisories/GHSA-rw2c-8rfq-gwfv)). Impact ranges from unauthenticated denial of service (a single crafted request 500s the query) to blind/error-based extraction of data from tables the requester has no permission to read. ### Details `PaginatedFindAllWithoutFilters` in `server/resource/resource_findallpaginated.go` reads the `sort` query parameter directly from the request with no validation: ```go // server/resource/resource_findallpaginated.go:300-302 var sortOrder []string if len(req.QueryParams["sort"]) > 0 { sortOrder = req.QueryParams["sort"] ``` Each entry is then concatenated with the table name and passed to `goqu.I()` (goqu's raw SQL *identifier* constructor) in two separate places, with no check that the referenced column exists on the table: ```go // server/resource/resource_findallpaginated.go:435-449 (SELECT column list) for _, sort := range sortOrder { ... if strings.Index(sort, "(") == -1 { sort = prefix + sort } idQueryCols = append(idQueryCols, goqu.I(sort).As(strings.ReplaceAll(sort, ".", "_"))) } ``` ```go // server/resource/resource_findallpaginated.go:916-943 (ORDER BY clause) for _, so := range sortOrder { ... orders = append(orders, goqu.I(ord).Asc()) } ``` `goqu.I()` renders its argument by wrapping it in the dialect's quote character (a backtick, in this build's configured dialect) **without escaping an embedded quote character of the same kind**. A backtick supplied in `sort` closes
Properties
- Summary
- Daptin: Unauthenticated SQL Injection via the `sort` query parameter on every entity list endpoint
- Severity
- critical
- Nvd fetched at
- 2026-11-22T12:30:49.958423+00:00
- Epss score
- 0.00604
- Cvss score
- 9.4
- Cvss severity
- CRITICAL
- Retrieved at
- 2026-11-22T12:32:28+00:00
- Ghsa published
- 2026-11-20T00:13:19Z
- Source url
- https://github.com/advisories/GHSA-hq2p-f2vj-v3cm
- Ghsa updated
- 2026-11-20T00:13:19Z
- Ghsa id
- GHSA-hq2p-f2vj-v3cm
- Last source
- FIRST EPSS
- Score
- 9.4
- Cvss version
- 3.1
- Cve id
- CVE-2026-77367
- Cvss vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:H
- First seen by Signal
- 2026-11-19T19:29:21+00:00
- Name
- CVE-2026-77367
- Is ghsa only
- false
- Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:H
Related Entities (4)
HAS_WEAKNESS (2)
AFFECTS (1)
VULNERABLE_TO (1)
Related research
Explore deeper with Ninja Signal's threat intelligence graph