CVE-2026-17603
JSON

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 packageVersionsReported by
Sonatype Nexus Repository 3from 3.20.0 before 3.95.0CVE List
sonatype nexus_repository_managerfrom 3.20.0 before 3.95.0NVD

All scores

Sonatype8.7high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
NVD8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-94

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

SourceRecordLicence
CVE ListCVE-2026-17603 changed 2026-08-07CVE Terms of Use
NVDCVE-2026-17603 changed 2026-10-23Public domain