{"id":"CVE-2025-53512","aliases":["CVE-2025-53512","GHSA-r64v-82fh-xc63","GO-2025-3806"],"related":[],"kind":"vulnerability","state":"published","title":"Sensitive log retrieval in Juju","summary":"The /log endpoint on a Juju controller lacked sufficient authorization checks, allowing unauthorized users to access debug messages that could contain sensitive information.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"The /log endpoint on a Juju controller lacked sufficient authorization checks, allowing unauthorized users to access debug messages that could contain sensitive information.","source":"cvelist"},{"lang":"en","text":"### Impact\nAny user with a Juju account on a controller can read debug log messages from the `/log` endpoint.\nNo specific permissions are required - it's just sufficient for the user to exist in the controller user database.\nThe log messages may contain sensitive information.\n\n### Details\n\nThe `/log` endpoint is accessible at the following endpoints:\n- `wss://<controller-ip>/log`\n- `wss://<controller-ip>/model/<model-uuid>/log`\n\nIn order to connect to these endpoints, the client must pass an X-Juju-Client-Version header that matches the current version and pass credentials in a Basic Authorization header. Once connected, the service will stream log events even though the user is not authorised to view them.\n\nTo reproduce:\n\n```\njuju bootstrap\njuju add-user testuser\njuju change-user-password testuser\n```\nRun the [wscat](https://github.com/websockets/wscat) command below to\nconnect to `wss://<controller-ip>:17070/api`. Update the JSON payload to include the username and password that were created above.\n\n```\nwscat --no-check -c wss://contorller-ip:17070/model/modelUUID/api\n{ \"type\": \"Admin\", \"request\": \"Login\", \"version\": 3, \"params\": { \"client-\nversion\": \"3.6.1.0\", \"auth-tag\": \"user-testuser\", \"credentials\": \"\npassword\" } }\n```\n\nObserve that the connection fails due to a lack of permissions.\n\nRun the command below to connect to the log endpoint. Note that the credentials are passed in the --auth flag.\n\n```\nwscat --auth user-testuser:password -H \"X-Juju-ClientVersion: 3.6.4\" --no-check -c wss://<controller-ip>:17070/log\n```\n\nObserve that the logs are returned in the server’s response.\n\n### Code\n\nThe `/log` handlers are registered here\nhttps://github.com/juju/juju/blob/3.6/apiserver/apiserver.go#L867\nhttps://github.com/juju/juju/blob/3.6/apiserver/apiserver.go#L980\n\nAnd the only auth required is that the incoming request be for an authenticated user\n\nhttps://github.com/juju/juju/blob/3.6/apiserver/apiserver.go#L713\n\nbut no specific permission checks are done.\n\n### Workarounds\nThere are no workarounds.\n\n### References\n[F-01](https://drive.google.com/file/d/1pHRNiaA8LyMVJYwIyTqelsqJ9FmImDf0/view)","format":"markdown","source":"ghsa"},{"lang":"en","text":"Juju vulnerable to sensitive log retrieval via authenticated endpoint without authorization in github.com/juju/juju","format":"markdown","source":"go"},{"lang":"es","text":"El endpoint /log de un controlador Juju carecía de suficientes verificaciones de autorización, lo que permitía que usuarios no autorizados accedieran a mensajes de depuración que podrían contener información confidencial.","source":"nvd"}],"published":"2025-07-08T16:47:44.427Z","modified":"2026-06-17T09:38:21.513Z","severity":{"scorer":"canonical","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"canonical","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-200","CWE-285"],"affected":[{"ranges":[{"type":"semver","introduced":"2.0.0","fixed":"2.9.52","status":"affected"},{"type":"semver","introduced":"3.0.0","fixed":"3.6.8","status":"affected"}],"vendor":"Canonical","product":"Juju","package":"juju","repo":"https://github.com/juju/juju","platforms":["Linux"],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.0.0-20250619024904-402ff008dcc2"}],"ecosystem":"Go","package":"github.com/juju/juju","purl":"pkg:golang/github.com/juju/juju","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.0.0-20250619024904-402ff008dcc2"}],"ecosystem":"Go","package":"github.com/juju/juju","purl":"pkg:golang/github.com/juju/juju","source":"go"},{"ranges":[{"status":"affected","fixed":"2.9.52"},{"status":"affected","introduced":"3.0","fixed":"3.6.8"}],"vendor":"canonical","product":"juju","cpe":"cpe:2.3:a:canonical:juju:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/juju/juju/security/advisories/GHSA-r64v-82fh-xc63","tags":["advisory","exploit","vendor-advisory","web"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-53512","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/juju/juju/commit/402ff008dcc2cb57f4441968628637efb5c2a662","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://github.com/juju/juju/commit/c91a1f4046956874ba77c8b398aecee3d61a2dc3","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://github.com/juju/juju","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"canonical","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2025-07-08T19:09:11.652Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-53512","url":"https://www.cve.org/CVERecord?id=CVE-2025-53512","licence":"CVE Terms of Use","modified":"2025-07-08T19:09:24.844Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-r64v-82fh-xc63","url":"https://github.com/advisories/GHSA-r64v-82fh-xc63","licence":"CC-BY-4.0","modified":"2025-07-28T20:42:15.788Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2025-3806","url":"https://pkg.go.dev/vuln/GO-2025-3806","licence":"CC-BY-4.0","modified":"2026-03-03T04:57:21.905Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-53512","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-53512","licence":"Public domain","modified":"2026-06-17T09:38:21.513Z"}],"updatedAt":"2026-11-25T22:59:00.957Z","epss":{"score":0.00378,"percentile":0.33857,"date":"2026-12-01T12:00:22.000Z"}}