Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as user with nx-datastores-update permission
-
DeliverySend crafted DataStore API request
-
ExploitSet connectionInitSql to malicious H2 SQL
-
ExecutionHikariCP opens new connection, executes injected SQL
-
PersistH2 invokes Java Runtime.exec() call
-
ImpactExecute arbitrary OS command as Nexus process user
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires a valid Nexus Repository 3 account with the nx-datastores-update permission explicitly granted - anonymous or standard read-only users cannot exploit this vulnerability. The DataStore configuration API must be reachable over the network (standard in most deployments). Full RCE escalation specifically requires the target instance to be running the default H2 embedded database backend; if an external database is configured, the attacker can still inject arbitrary SQL against that database (subject to its execution capabilities and the configured user's privileges), but OS-level command execution is not guaranteed. No user interaction by a victim is required beyond the attacker's own API call - the malicious SQL fires automatically when HikariCP opens a new connection. Limiting factors include: the nx-datastores-update permission is not granted to all authenticated users by default (CVSS PR:L implies at least some role assignment is required); instances using hardened external databases with restricted SQL privileges reduce the RCE impact. |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N, score 8.7) accurately reflects the risk profile. PR:L correctly captures that exploitation requires the nx-datastores-update permission - not anonymous access, but a non-administrative role that may be broadly assigned in large DevOps teams or misconfigured RBAC environments. Attack complexity is genuinely low: once the permission is held, the technique requires only a single API request to set the property, and the SQL fires automatically on the next connection pool event. No EPSS data was provided, and this CVE does not appear in the CISA KEV catalog, so active exploitation is unconfirmed at time of analysis. The absence of a KEV listing should not be treated as a signal of low risk - the attack technique leverages H2's well-documented Java execution capabilities, meaning a capable attacker could weaponize this without novel research. The practical priority is high for organizations where Nexus Repository 3 is internet-exposed or where the nx-datastores-update permission is broadly assigned; it is medium for air-gapped or tightly RBAC-controlled deployments. |
| Exploit ScenarioDerived | An attacker with a Nexus account holding the nx-datastores-update role permission sends a crafted PUT or POST request to the DataStore configuration API, embedding a connectionInitSql value containing malicious H2 SQL that invokes a Java Runtime.exec() call. On the next HikariCP connection pool event - triggered automatically by normal Nexus operation - the SQL executes against the H2 backend, spawning an OS process as the Nexus service account. No public proof-of-concept has been identified at time of analysis, but the H2 SQL-to-JVM-execution technique is well-documented in prior CVEs affecting other products using H2. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 07, 2026
Remote code execution in Sonatype Nexus Repository 3 is achievable by any user holding the nx-datastores-update permission, who can exploit an insufficiently restricted HikariCP connection-pool property passthrough in the DataStore configuration API to inject arbitrary SQL via the connectionInitSql property. On the default H2 embedded database backend - common in non-production and smaller deployments - H2's ability to invoke Java methods from SQL allows this injection to escalate to OS-level command execution as the Nexus process user. No public exploit has been identified at time of analysis, but the H2-to-RCE escalation path is a well-understood Java ecosystem technique that lowers the practical skill bar significantly.
RemediationAI
Upgrade to Sonatype Nexus Repository 3.95.0 or later, which restricts the set of HikariCP connection-pool properties that can be set through the DataStore configuration API. The vendor security advisory is available at https://support.sonatype.com/hc/en-us/articles/53890127489427/ and the release notes documenting the fix are at https://help.sonatype.com/en/sonatype-nexus-repository-3-95-0-release-notes.html. As a compensating control prior to patching, audit all role assignments and remove the nx-datastores-update permission from any principal that does not strictly require DataStore reconfiguration capabilities - this directly eliminates the attack surface for unprivileged accounts, though it does not fix the underlying API flaw. Organizations running the default H2 embedded database should treat this as an elevated priority given the RCE escalation path; migrating to an external PostgreSQL backend reduces but does not eliminate risk (SQL injection still applies). Network-level ACLs restricting access to the Nexus API management port to trusted administrator hosts are a useful defence-in-depth measure but should not substitute for the patch.
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
HikariCP is a high-performance Java JDBC connection pool library that accepts a connectionInitSql property - a SQL statement executed on every newly opened connection, intended for session-level initialization. Nexus Repository 3 (CPE: cpe:2.3:a:sonatype:nexus_repository_3:*:*:*:*:*:*:*:*) exposes a DataStore configuration API that passes properties to the underlying HikariCP pool without adequately allowlisting which properties are permissible. CWE-94 (Improper Control of Generation of Code - Code Injection) is the root cause class: user-supplied input is accepted into a property that directly controls runtime SQL execution against the database engine. The default H2 embedded database is particularly dangerous because H2 SQL supports CALL and CSVREAD functions as well as direct Java class instantiation through INIT scripts, enabling SQL injection to pivot into arbitrary JVM code execution. External database backends such as PostgreSQL would still be vulnerable to the SQL injection primitive, but the RCE escalation path depends on the configured database user's privileges and the target engine's feature set.
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:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Network-accessible API (AV:N), no special conditions (AC:L), requires nx-datastores-update permission (PR:L), no user interaction needed (UI:N), full C/I/A triad via SQL injection to OS RCE; scope unchanged as OS impact is within the Nexus process boundary.
Primary rating from Vendor (Sonatype).
CVSS VectorVendor: Sonatype
DescriptionCVE.org
Nexus Repository 3 did not sufficiently restrict which HikariCP connection-pool properties could be set through the DataStore configuration API. A user holding the nx-datastores-update permission could set the connectionInitSql property to execute arbitrary SQL against the configured database on every new connection. On the default H2 database backend, this could be leveraged to achieve remote code execution as the Nexus process user.
Executive ViewAI
Sonatype Nexus Repository 3 contains a remote code execution vulnerability (CVE-2026-17603) affecting organizations using the default H2 embedded database backend, particularly smaller deployments. Any authenticated user with nx-datastores-update permission can inject SQL through the DataStore configuration API and escalate to OS-level command execution, potentially compromising the entire repository system and supply chain integrity.
Apply vendor patch. As interim mitigations pending patch deployment, restrict nx-datastores-update permission to trusted administrators only and monitor DataStore configuration API activity logs for unauthorized access attempts.
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
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
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
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
Script execution enforcement failure in Sonatype Nexus Repository 3 allows privileged authenticated users to invoke pre-
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-54513
GHSA-65xx-g4qc-4g4m
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB