CVE-2025-53512
JSON

6.5medium

Sensitive log retrieval in Juju

Severity
6.5medium CVSS:3.1 by canonical
Exploit likelihood
0.38% (higher than 33% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
canonical
Also known as
GHSA-r64v-82fh-xc63GO-2025-3806

Description

The /log endpoint on a Juju controller lacked sufficient authorization checks, allowing unauthorized users to access debug messages that could contain sensitive information.

Affected

Product or packageVersionsReported by
jujufrom 2.0.0 before 2.9.52, from 3.0.0 before 3.6.8CVE List
github.com/juju/juju (Go)before 0.0.0-20250619024904-402ff008dcc2GitHub Advisory Database, Go Vulnerability Database
canonical jujubefore 2.9.52, from 3.0 before 3.6.8NVD

All scores

canonical6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
GitHub6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Classification

CWE-200CWE-285

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

The /log endpoint on a Juju controller lacked sufficient authorization checks, allowing unauthorized users to access debug messages that could contain sensitive information.

GitHub Advisory Database
Impact

Any user with a Juju account on a controller can read debug log messages from the /log endpoint. No specific permissions are required - it's just sufficient for the user to exist in the controller user database. The log messages may contain sensitive information.

Details

The /log endpoint is accessible at the following endpoints:

  • wss://<controller-ip>/log
  • wss://<controller-ip>/model/<model-uuid>/log

In 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.

To reproduce:

juju bootstrap
juju add-user testuser
juju change-user-password testuser

Run the wscat command below to connect to wss://<controller-ip>:17070/api. Update the JSON payload to include the username and password that were created above.

wscat --no-check -c wss://contorller-ip:17070/model/modelUUID/api
{ "type": "Admin", "request": "Login", "version": 3, "params": { "client-
version": "3.6.1.0", "auth-tag": "user-testuser", "credentials": "
password" } }

Observe that the connection fails due to a lack of permissions.

Run the command below to connect to the log endpoint. Note that the credentials are passed in the --auth flag.

wscat --auth user-testuser:password -H "X-Juju-ClientVersion: 3.6.4" --no-check -c wss://<controller-ip>:17070/log

Observe that the logs are returned in the server’s response.

Code

The /log handlers are registered here https://github.com/juju/juju/blob/3.6/apiserver/apiserver.go#L867 https://github.com/juju/juju/blob/3.6/apiserver/apiserver.go#L980

And the only auth required is that the incoming request be for an authenticated user

https://github.com/juju/juju/blob/3.6/apiserver/apiserver.go#L713

but no specific permission checks are done.

Workarounds

There are no workarounds.

References

F-01

Go Vulnerability Database

Juju vulnerable to sensitive log retrieval via authenticated endpoint without authorization in github.com/juju/juju

NVD (es)

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.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-53512 changed 2025-07-08CVE Terms of Use
GitHub Advisory DatabaseGHSA-r64v-82fh-xc63 changed 2025-07-28CC-BY-4.0
Go Vulnerability DatabaseGO-2025-3806 changed 2026-03-03CC-BY-4.0
NVDCVE-2025-53512 changed 2026-06-17Public domain