Summary
Daptin versions <= 0.12.29 allow an unauthenticated attacker to inject SQL through the `sort` parameter of the generic entity list endpoint. Severity is critical (CVSS 9.4), and the vendor fixed the flaw in version 0.12.30.
What happened
The `sort` query parameter of the generic list endpoint (`GET /api/<entity>`), available for every table in a Daptin instance, is incorporated into SQL identifiers without checking that the referenced column exists. According to the description, a quote character included in the value closes the identifier early and the rest of the string is parsed as SQL. The same class of bug was previously fixed in another code path of the same file (GHSA-rw2c-8rfq-gwfv), but that validation was not applied to the handling of the `sort` parameter. The associated weaknesses are CWE-20 and CWE-89.
Why it matters
The source states that the impact ranges from unauthenticated denial of service (a single crafted request makes the query fail with a 500 error) to blind or error-based extraction of data from tables the requester has no permission to read. The CVSS 3.1 vector is CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:H, with a score of 9.4 (critical). According to CISA's KEV catalog, no active exploitation of this vulnerability is recorded.
Affected products and versions
github.com/daptin/daptin (Go ecosystem): versions <= 0.12.29. Fixed in 0.12.30.
| Product | Versions | Fixed in |
|---|---|---|
| github.com/daptin/daptin | <= 0.12.29 | 0.12.30 |
| daptin daptin | < 0.12.30 | — |
Action recommended by the source
The vendor fixes the issue in version 0.12.30 of github.com/daptin/daptin. The source references the v0.12.30 release and a commit containing the fix. It does not state any other mitigations.
Fixed in: 0.12.30
Sources and references
- https://github.com/advisories/GHSA-hq2p-f2vj-v3cm — GHSA
- https://github.com/daptin/daptin/security/advisories/GHSA-hq2p-f2vj-v3cm — GHSA
- https://nvd.nist.gov/vuln/detail/CVE-2026-77367 — GHSA
- https://github.com/daptin/daptin/commit/b0bcc1318832b9055781f032853ef9d2264652cf — GHSA
- https://github.com/daptin/daptin/releases/tag/v0.12.30 — GHSA
Weaknesses (CWE): CWE-20, CWE-89
Relevant change history
Published
Advisory published.