8.7high
Nexus Repository 3 - HikariCP connectionInitSql Injection RCE via DataStore Configuration API
- Severity
- 8.7high CVSS:4.0 by Sonatype
- Exploit likelihood
- 0.48% (higher than 43% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Sonatype
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Sonatype Nexus Repository 3 | from 3.20.0 before 3.95.0 | CVE List |
| sonatype nexus_repository_manager | from 3.20.0 before 3.95.0 | NVD |
All scores
| Sonatype | 8.7high CVSS:4.0 | 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 |
| NVD | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
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.
NVD (es)
Nexus Repository 3 no restringía suficientemente qué propiedades del pool de conexiones de HikariCP podían configurarse a través de la API de configuración de DataStore. Un usuario con el permiso nx-datastores-update podía establecer la propiedad connectionInitSql para ejecutar SQL arbitrario contra la base de datos configurada en cada nueva conexión. En el backend de base de datos H2 predeterminado, esto podría aprovecharse para lograr ejecución remota de código como el usuario del proceso de Nexus.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-17603 changed 2026-08-07 | CVE Terms of Use |
| NVD | CVE-2026-17603 changed 2026-10-23 | Public domain |