Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2025-62292 Overview
CVE-2025-62292 is an information exposure vulnerability in SonarQube that allows authenticated low-privileged users to retrieve user fields intended for administrators. The flaw affects the /api/v2/users-management/users endpoint, which returns sensitive attributes such as email addresses of other accounts to any authenticated caller. The issue is tracked under [CWE-669: Incorrect Resource Transfer Between Spheres] and is fixed in SonarQube 25.6, 2025.3 Commercial, and 2025.1.3 LTA.
Critical Impact
Any authenticated SonarQube user, regardless of role, can enumerate email addresses and other administrator-only user fields across all accounts in the instance.
Affected Products
- SonarQube Community and Developer editions before 25.6
- SonarQube 2025.3 Commercial (Enterprise and Data Center editions) prior to the fix
- SonarQube 2025.1.3 LTA (Long-Term Active) and earlier LTA builds
Discovery Timeline
- 2025-10-10 - CVE-2025-62292 published to NVD
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-62292
Vulnerability Analysis
The vulnerability resides in the SonarQube REST API endpoint /api/v2/users-management/users. This endpoint was designed to return user management data to administrators. Due to insufficient authorization enforcement, the endpoint also serves the same data payload to users holding only standard, low-privileged roles.
The response includes fields that should remain restricted to administrative principals. The most sensitive leaked attribute is the email address associated with every user account on the instance. An authenticated attacker can enumerate the entire user directory and harvest contact identifiers for downstream social engineering, credential stuffing, or targeted phishing campaigns.
The weakness maps to CWE-669, which describes incorrect transfer of resources across trust boundaries. In this case, data intended for the administrative sphere crosses into the general authenticated-user sphere without appropriate access checks. SonarSource has tracked remediation under issue identifier SONAR-24830.
Root Cause
The root cause is a missing or incomplete authorization check on the response serializer for the /api/v2/users-management/users endpoint. The server-side logic authenticates the caller but does not filter the returned field set based on the caller's role.
Attack Vector
Exploitation requires network access to the SonarQube instance and a valid low-privileged account. The attacker issues an authenticated HTTP GET request to /api/v2/users-management/users and parses the JSON response for email fields and other administrator-only attributes. No user interaction is required, and no additional privileges are needed beyond basic authentication.
See the SonarSource issue SONAR-24830 for the vendor-tracked remediation record.
Detection Methods for CVE-2025-62292
Indicators of Compromise
- Repeated authenticated HTTP GET requests to /api/v2/users-management/users originating from non-administrative accounts.
- Unusual volume of API calls from a single session token or service account targeting the users-management path.
- Follow-on phishing emails sent to SonarQube users whose addresses were not otherwise publicly listed.
Detection Strategies
- Enable SonarQube access logs and alert on /api/v2/users-management/users requests where the caller does not hold the admin role.
- Correlate SonarQube API logs with identity provider logs to identify low-privileged accounts enumerating user directories.
- Baseline normal API usage per account and flag deviations such as sudden broad reads of user management endpoints.
Monitoring Recommendations
- Forward SonarQube application and reverse-proxy logs to a centralized analytics platform for retention and query.
- Track response sizes for the users-management endpoint; large payloads to non-admin principals indicate successful exploitation.
- Monitor for new or dormant service accounts suddenly issuing API calls to administrative endpoints.
How to Mitigate CVE-2025-62292
Immediate Actions Required
- Upgrade SonarQube to version 25.6, 2025.3 Commercial, or 2025.1.3 LTA, matching your current release train.
- Audit existing user accounts and remove inactive, shared, or unnecessary low-privileged accounts that could be abused for enumeration.
- Rotate any email-derived secrets or password reset tokens if exposure of the user directory is suspected.
Patch Information
SonarSource addressed the issue in SonarQube 25.6, 2025.3 Commercial, and 2025.1.3 LTA. The fix enforces role-based filtering on the /api/v2/users-management/users endpoint so that administrator-only fields, including email, are omitted from responses served to non-administrative callers. Refer to SonarSource issue SONAR-24830 for vendor remediation details.
Workarounds
- Restrict network access to the SonarQube instance to trusted CI/CD networks and VPN clients while planning the upgrade.
- Place a reverse proxy or web application firewall rule in front of SonarQube that blocks non-administrative principals from reaching /api/v2/users-management/users.
- Disable or reduce the privileges of anonymous and self-registered accounts to limit the pool of potential authenticated attackers.
# Example reverse-proxy rule (NGINX) to restrict the vulnerable endpoint
# until the SonarQube upgrade is deployed.
location = /api/v2/users-management/users {
allow 10.0.0.0/24; # admin bastion subnet
deny all;
proxy_pass http://sonarqube_upstream;
}
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

