Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain or compromise nx-script privileged account
-
DeliveryConfirm nexus.scripts.allowCreation=false is active on target
-
ExploitEnumerate pre-existing stored scripts via GET /v1/script
-
ExecutionPOST /v1/script/{name}/run bypassing administrative enforcement
-
PersistExecute arbitrary Groovy code with server process privileges
-
ImpactExfiltrate credentials and artifacts or pivot laterally
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation completeness
|
| Exploitation Conditions | Exploitation requires all of the following to be simultaneously true: (1) the attacker controls a valid Nexus Repository 3 account with the nx-script (script-execution) permission, corresponding to PR:H; (2) the administrator has explicitly set nexus.scripts.allowCreation=false as a hardening measure - instances without this flag set are not in the specific affected security state described; and (3) at least one Groovy script must have been created and stored on the instance prior to the flag being set, since the bypass enables execution of existing scripts only and does not permit creation of new ones. What limits exploitation: standard user accounts without the script-execution role cannot exploit this; the flag must have been deliberately enabled as a hardening action; and scripts must pre-exist on the instance. Default Nexus installations without the hardening flag are unaffected by the specific security-control bypass described, though they remain exposed to script-execution risks through other means. |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:H/UI:N/VC:H/VI:H/VA:H) accurately captures the central tensions: network-reachable with low exploitation complexity once preconditions are met, but gated behind high-privilege credentials (PR:H) and a specific target condition (AT:P - the administrator must have already enabled the hardening flag and pre-existing scripts must be present). Real-world risk is consequently narrower than the raw impact metrics suggest: the bypass is only exploitable in hardened environments where the flag has been set, meaning default deployments without the flag are not in the specific affected state. The primary threat model is a privileged insider or attacker with compromised credentials undermining an administrator's deliberate hardening decision. No EPSS score is provided in the input data, and the absence of KEV listing indicates no confirmed in-the-wild exploitation at time of analysis. Even a mid-sized enterprise team that set nexus.scripts.allowCreation=false specifically to remove the scripting attack surface should treat this as urgent, since their expected security posture is not in effect until the patch is applied. |
| Exploit ScenarioDerived | An attacker who has compromised or obtained a Nexus account holding the script-execution permission authenticates to the REST API and enumerates stored scripts via GET /service/rest/v1/script, then issues POST /service/rest/v1/script/{name}/run against a suitable pre-existing Groovy script - bypassing the administrator's expectation that nexus.scripts.allowCreation=false had disabled this capability. The Groovy script executes server-side with Nexus process privileges, enabling arbitrary command execution, exfiltration of stored credentials and artifact metadata, or lateral movement within the server environment. No public proof-of-concept code has been identified, but the scripting API mechanics are publicly documented in Sonatype's developer resources. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 02, 2026
Script execution enforcement failure in Sonatype Nexus Repository 3 allows privileged authenticated users to invoke pre-existing Groovy scripts via POST /service/rest/v1/script/{name}/run even after administrators explicitly set nexus.scripts.allowCreation=false to disable the scripting subsystem. The execution endpoint did not consult the administrative flag, meaning a hardening action administrators believed fully blocked script activity was silently ineffective against execution of pre-existing scripts. A vendor-released patch is available in Nexus Repository 3.96.0; no active exploitation has been confirmed in CISA KEV and no public proof-of-concept has been identified.
RemediationAI
Vendor-released patch: Nexus Repository 3.96.0, documented at https://help.sonatype.com/en/sonatype-nexus-repository-3-96-0-release-notes.html. Upgrade to this release or later to restore enforcement of the nexus.scripts.allowCreation=false flag on the execution endpoint. Where immediate patching is not possible, revoke the script-execution role (nx-script) from all non-essential accounts - this eliminates the privileged account class required for exploitation, though it may disrupt automation pipelines. Additionally, audit and delete pre-existing scripts via GET /service/rest/v1/script followed by DELETE requests for each identified script; removing stored scripts closes the execution surface even if the enforcement gap persists. Network-level restriction of the /service/rest/v1/script/* path to trusted administrative subnets at the load-balancer or firewall layer provides an additional containment layer with the trade-off of blocking legitimate API-based administrative workflows from other networks.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Sonatype Nexus Repository 3 (CPE: cpe:2.3:a:sonatype:nexus_repository_3) is an enterprise artifact repository manager exposing a REST API that includes a Groovy scripting endpoint historically used for administrative automation. The property nexus.scripts.allowCreation=false was designed as a kill-switch, but CWE-184 (Incomplete List of Disallowed Inputs) manifests because the enforcement logic was applied only to the script creation endpoint (POST /service/rest/v1/script), not the execution endpoint (POST /service/rest/v1/script/{name}/run). Groovy scripts in Nexus execute with the privileges of the Java server process and have broad access to repository internals, making this scripting surface a high-value and historically targeted attack vector in Nexus deployments.
Know when Nexus Repository 3 gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Network-accessible REST API requires high-privilege script-execution credentials (PR:H); the bypass itself is trivial once preconditions exist (AC:L), yielding full server-side Groovy code execution with no scope change.
Primary rating from Vendor (Sonatype).
CVSS VectorVendor: Sonatype
DescriptionCVE.org
In affected versions of Nexus Repository 3, the script execution endpoint (POST /service/rest/v1/script/{name}/run) did not verify whether script execution had been administratively disabled. An account holding script-execution permission could continue to run previously-created scripts even after an administrator set nexus.scripts.allowCreation=false, undermining the expectation that this setting fully blocks script execution.
Executive ViewAI
Sonatype Nexus Repository 3 administrators' attempts to disable script execution via nexus.scripts.allowCreation=false can be silently bypassed by authenticated privileged users invoking pre-existing Groovy scripts. This control-bypass vulnerability creates supply chain risk, allowing insiders or compromised repository accounts to inject malicious code into software artifacts.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
More in Nexus Repository 3
View allIncorrect authorization in the Nexus Repository 3 CE/Pro repository-creation UI allows an authenticated user with a form
Privilege escalation in Sonatype Nexus Repository 3 allows an authenticated low-privileged user - who holds the 'update
Remote code execution in Sonatype Nexus Repository 3 is achievable by any user holding the nx-datastores-update permissi
Privilege escalation in Sonatype Nexus Repository 3 allows an authenticated user who holds the 'role create' or 'role up
Insufficient session expiration in Sonatype Nexus Repository 3 allows a previously-authenticated user to retain full rep
Privilege escalation in Sonatype Nexus Repository 3 allows an authenticated user holding privilege-management rights to
Authorization bypass in Sonatype Nexus Repository 3's component upload API lets an account holding only read/browse priv
Sonatype Nexus Repository 3 fails to enforce a write-authorization check on the NuGet symbol-package upload path, lettin
Incorrect authorization in Sonatype Nexus Repository 3 allows a low-privileged user holding the `nexus:blobstores:create
Java class-enumeration through the ExtDirect endpoint in Sonatype Nexus Repository 3 allows an unauthenticated, remote a
Unverified password change in Sonatype Nexus Repository 3 allows any account holding the nexus:* permission to overwrite
Stored XSS in Sonatype Nexus Repository 3 enables an authenticated user holding blob store management permissions to inj
EUVD-2026-70229
GHSA-jrwv-32cm-hj63
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB