Nexus Repository 3 - HikariCP connectionInitSql Injection RCE via DataStore Configuration API
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in Nexus Repository 3.95.0.
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
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Sonatype | Nexus Repository | >=3.20.0 <3.95.0 | 3.95.0 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Nexus Repository, strongest first
Embed
A live severity badge for an advisory, README or ticket