CVE-2026-17603: CWE-94 Improper Control of Generation of Code ('Code Injection') in Sonatype Nexus Repository 3
CVE-2026-17603 is a high-severity vulnerability in Sonatype Nexus Repository 3 version 3.20.0. It involves improper control of code generation (CWE-94) due to insufficient restrictions on HikariCP connection-pool properties via the DataStore configuration API. A user with 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 can lead to remote code execution as the Nexus process user.
AI Analysis
Technical Summary
Nexus Repository 3 version 3.20.0 does not sufficiently restrict which HikariCP connection-pool properties can be set through its DataStore configuration API. Specifically, a user with the nx-datastores-update permission can manipulate the connectionInitSql property, causing arbitrary SQL execution on each new database connection. On the default H2 database backend, this vulnerability can be exploited to achieve remote code execution with the privileges of the Nexus process user. This is classified as CWE-94 (Improper Control of Generation of Code) and carries a CVSS 4.0 base score of 8.7, indicating high severity. No official patch or remediation level has been provided yet, and no known exploits are reported in the wild.
Potential Impact
An attacker with the nx-datastores-update permission can execute arbitrary SQL commands on the Nexus Repository 3 database. When the default H2 database is used, this can escalate to remote code execution as the Nexus process user, potentially compromising the system hosting Nexus Repository 3. This could lead to unauthorized data access, modification, or full system compromise depending on the environment and privileges.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, restrict the nx-datastores-update permission to trusted users only and avoid using the default H2 database backend in production environments if possible.
CVE-2026-17603: CWE-94 Improper Control of Generation of Code ('Code Injection') in Sonatype Nexus Repository 3
Description
CVE-2026-17603 is a high-severity vulnerability in Sonatype Nexus Repository 3 version 3.20.0. It involves improper control of code generation (CWE-94) due to insufficient restrictions on HikariCP connection-pool properties via the DataStore configuration API. A user with 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 can lead to remote code execution as the Nexus process user.
CVSS v4.0
Score 8.7high
Affected software
pkg:maven/com.sonatype.nexus/nexus-repository-managercpe:2.3:a:sonatype:nexus_repository_manager:3.20.0:*:*:*:*:*:*:*cpe:2.3:a:sonatype:nexus_repository_manager:3.20.1:*:*:*:*:*:*:*cpe:2.3:a:sonatype:nexus_repository_manager:3.20.2:*:*:*:*:*:*:*cpe:2.3:a:sonatype:nexus_repository_manager:3.20.3:*:*:*:*:*:*:*cpe:2.3:a:sonatype:nexus_repository_manager:3.21.0:*:*:*:*:*:*:*cpe:2.3:a:sonatype:nexus_repository_manager:3.21.1:*:*:*:*:*:*:*Run 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
Nexus Repository 3 version 3.20.0 does not sufficiently restrict which HikariCP connection-pool properties can be set through its DataStore configuration API. Specifically, a user with the nx-datastores-update permission can manipulate the connectionInitSql property, causing arbitrary SQL execution on each new database connection. On the default H2 database backend, this vulnerability can be exploited to achieve remote code execution with the privileges of the Nexus process user. This is classified as CWE-94 (Improper Control of Generation of Code) and carries a CVSS 4.0 base score of 8.7, indicating high severity. No official patch or remediation level has been provided yet, and no known exploits are reported in the wild.
Potential Impact
An attacker with the nx-datastores-update permission can execute arbitrary SQL commands on the Nexus Repository 3 database. When the default H2 database is used, this can escalate to remote code execution as the Nexus process user, potentially compromising the system hosting Nexus Repository 3. This could lead to unauthorized data access, modification, or full system compromise depending on the environment and privileges.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, restrict the nx-datastores-update permission to trusted users only and avoid using the default H2 database backend in production environments if possible.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Sonatype
- Date Reserved
- 2026-07-27T16:30:54.196Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a760747bf8831d5399dcb83
Added to database: 08/07/2026, 16:26:47 UTC
Last enriched: 08/07/2026, 16:41:09 UTC
Last updated: 08/07/2026, 16:41:09 UTC
Views: 4
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.