All vulnerabilities

Go

CVE-2026-77367

Daptin: Unauthenticated SQL Injection via the `sort` query parameter on every entity list endpoint

Severity
Critical 9.4
Published
20 Nov 2026
Last changed
20 Nov 2026
Added to UpHeron
23 Nov 2026
Fixed in
0.12.30
Exploit chance
0.6% in the next 30 daysHigher than 49% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
Improper input validation (CWE-20)SQL injection (CWE-89)
Attack
Over the network · No login needed · No user action needed
Attacker can
Read data · Change some data · Take it down
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:H
Also known as
GHSA-hq2p-f2vj-v3cm
Sources
OSV.dev and GitHub

Description

An unauthenticated attacker can inject arbitrary SQL through the sort query parameter accepted by Daptin's generic entity list endpoint (GET /api/), 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). 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.

PaginatedFindAllWithoutFilters in server/resource/resource_findallpaginated.go reads the sort query parameter directly from the request with no validation:

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…

From the GitHub Advisory Database, CC BY 4.0. Shortened; the full text is there.

Affected software

SoftwareAffected versions
github.com/daptin/daptinGo · osv:Go:github.com/daptin/daptin
  • Every version before 0.12.30

About github.com/daptin/daptin

References