Skip to main content

Nexus Repository 3 CVE-2026-17603

| EUVDEUVD-2026-54513 HIGH
Code Injection (CWE-94)
2026-08-07 Sonatype GHSA-65xx-g4qc-4g4m
8.7
CVSS 4.0 · Vendor: Sonatype
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as user with nx-datastores-update permission
  2. Delivery
    Send crafted DataStore API request
  3. Exploit
    Set connectionInitSql to malicious H2 SQL
  4. Execution
    HikariCP opens new connection, executes injected SQL
  5. Persist
    H2 invokes Java Runtime.exec() call
  6. Impact
    Execute 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Nexus Repository 3 3.20.0 <3.95.0

Affected Packages

euvd nexus_repository_3 fix: 3.95.0

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

Vendor (Sonatype) PRIMARY 8.7 HIGH
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
vuln.today AI 8.8 HIGH

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.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (Sonatype).

CVSS VectorVendor: Sonatype

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.4%
Top 68% exploitable
Prevalence
High
widely deployed artifact repository manager in enterprise DevOps and CI/CD pipelines
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

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.

CVE-2026-17594 HIGH POC
8.2 Aug 07

Incorrect authorization in the Nexus Repository 3 CE/Pro repository-creation UI allows an authenticated user with a form

CVE-2026-17601 HIGH
8.9 Aug 07

Privilege escalation in Sonatype Nexus Repository 3 allows an authenticated low-privileged user - who holds the 'update

CVE-2026-97712 HIGH
8.7 Oct 15

Privilege escalation in Sonatype Nexus Repository 3 allows an authenticated user who holds the 'role create' or 'role up

CVE-2026-17600 HIGH
8.7 Aug 07

Insufficient session expiration in Sonatype Nexus Repository 3 allows a previously-authenticated user to retain full rep

CVE-2026-14644 HIGH
8.6 Aug 07

Privilege escalation in Sonatype Nexus Repository 3 allows an authenticated user holding privilege-management rights to

CVE-2026-14504 HIGH
8.2 Jul 14

Authorization bypass in Sonatype Nexus Repository 3's component upload API lets an account holding only read/browse priv

CVE-2026-77124 HIGH
7.5 Sep 02

Script execution enforcement failure in Sonatype Nexus Repository 3 allows privileged authenticated users to invoke pre-

CVE-2026-97665 HIGH
7.1 Oct 15

Sonatype Nexus Repository 3 fails to enforce a write-authorization check on the NuGet symbol-package upload path, lettin

CVE-2026-77125 HIGH
7.1 Sep 02

Incorrect authorization in Sonatype Nexus Repository 3 allows a low-privileged user holding the `nexus:blobstores:create

CVE-2026-97666 MEDIUM
6.9 Oct 15

Java class-enumeration through the ExtDirect endpoint in Sonatype Nexus Repository 3 allows an unauthenticated, remote a

CVE-2026-17599 MEDIUM
6.9 Aug 07

Unverified password change in Sonatype Nexus Repository 3 allows any account holding the nexus:* permission to overwrite

CVE-2026-17596 MEDIUM
6.3 Aug 07

Stored XSS in Sonatype Nexus Repository 3 enables an authenticated user holding blob store management permissions to inj

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy