CVE-2026-17603: CWE-94 Improper Control of Generation of Code ('Code Injection') in Sonatype Nexus Repository 3
Nexus Repository 3 contains a vulnerability where the DataStore configuration API does not sufficiently restrict which HikariCP connection-pool properties can be set. A user with the nx-datastores-update permission can set the connectionInitSql property to execute arbitrary SQL on every new database connection. When using the default H2 database backend, this flaw can lead to remote code execution as the Nexus process user.
AI Analysis
Technical Summary
The vulnerability in Nexus Repository 3 arises from insufficient restrictions on the HikariCP connection-pool properties configurable via the DataStore API. Specifically, the connectionInitSql property can be set by users with the nx-datastores-update permission, allowing arbitrary SQL execution on each new database connection. This can be exploited to achieve remote code execution on the default H2 database backend, compromising the Nexus process user privileges.
Potential Impact
An attacker with the nx-datastores-update permission can execute arbitrary SQL commands on the Nexus database. On the default H2 backend, this can escalate to remote code execution with the privileges of the Nexus process user, potentially leading to full system compromise.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict the nx-datastores-update permission to trusted users only to limit exploitation potential.
CVE-2026-17603: CWE-94 Improper Control of Generation of Code ('Code Injection') in Sonatype Nexus Repository 3
Description
Nexus Repository 3 contains a vulnerability where the DataStore configuration API does not sufficiently restrict which HikariCP connection-pool properties can be set. A user with the nx-datastores-update permission can set the connectionInitSql property to execute arbitrary SQL on every new database connection. When using the default H2 database backend, this flaw can lead to remote code execution as the Nexus process user.
CVSS v4.0
Score 8.7high
Affected software
pkg:maven/org.sonatype.nexus/nexus-repositoryRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in Nexus Repository 3 arises from insufficient restrictions on the HikariCP connection-pool properties configurable via the DataStore API. Specifically, the connectionInitSql property can be set by users with the nx-datastores-update permission, allowing arbitrary SQL execution on each new database connection. This can be exploited to achieve remote code execution on the default H2 database backend, compromising the Nexus process user privileges.
Potential Impact
An attacker with the nx-datastores-update permission can execute arbitrary SQL commands on the Nexus database. On the default H2 backend, this can escalate to remote code execution with the privileges of the Nexus process user, potentially leading to full system compromise.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict the nx-datastores-update permission to trusted users only to limit exploitation potential.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-65xx-g4qc-4g4m
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-17603"]
- Ecosystems
- []
- Database Specific Severity
- HIGH
- Cvss Version
- 4.0
Threat ID: 6a7742a2bf8831d539b08786
Added to database: 08/08/2026, 14:52:18 UTC
Last enriched: 08/08/2026, 15:17:48 UTC
Last updated: 08/09/2026, 03:40:59 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.