
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-17603 is a code injection vulnerability in Sonatype Nexus Repository 3 that allows an authenticated user with the nx-datastores-update permission to achieve remote code execution by abusing the DataStore configuration API. The vulnerability affects Nexus Repository 3 versions 3.20.0 through 3.94.x (fixed in 3.95.0), disclosed on August 7, 2026. It carries a CVSS v4.0 base score of 8.7 (High), assigned by Sonatype (GitHub Advisory, Sonatype Release Notes).
The root cause is insufficient restriction of HikariCP connection-pool properties exposed through the DataStore configuration API (CWE-94: Improper Control of Generation of Code). Specifically, the connectionInitSql property — intended to run SQL on each new database connection — was not blocked from being set via the API. An attacker with the nx-datastores-update permission can set this property to arbitrary SQL, which is then executed against the configured database on every new connection. On the default H2 embedded database backend, H2's INIT script feature supports executing Java code via RUNSCRIPT or similar mechanisms, enabling escalation from SQL injection to full OS-level code execution as the Nexus process user (GitHub Advisory, Sonatype Release Notes).
Successful exploitation grants an attacker arbitrary code execution as the operating system user running the Nexus Repository process, resulting in full compromise of confidentiality, integrity, and availability of the affected system. An attacker can read or exfiltrate all repository data (including credentials, artifacts, and configuration), modify or destroy repository contents, and use the compromised server as a pivot point for lateral movement within the network. The impact is most severe on default H2 database deployments, which are common in smaller or development environments (GitHub Advisory, Sonatype Release Notes).
As of the disclosure date (August 7, 2026), there is no public proof-of-concept exploit and no evidence of active in-the-wild exploitation. CISA's SSVC assessment classifies exploitation as "none" and the attack as non-automatable, reflecting the requirement for a privileged authenticated account. The EPSS score is approximately 0.387% (32nd percentile), indicating a relatively low near-term exploitation probability. The vulnerability is not currently listed in the CISA Known Exploited Vulnerabilities (KEV) catalog (GitHub Advisory, Feedly).
nx-datastores-update permission — this may be through phishing, credential reuse, insider access, or compromise of an administrative account.PUT or POST request to the DataStore configuration endpoint (e.g., /service/rest/v1/datastores/{name}) to update the HikariCP connection pool properties.connectionInitSql: Set the connectionInitSql property to a malicious SQL payload. On H2, this can leverage H2's built-in capabilities (e.g., CREATE ALIAS EXEC AS $$ ... $$; CALL EXEC('...')) to execute OS commands as the Nexus process user./service/rest/v1/datastores/ endpoints from unfamiliar source IPs.sh, bash, cmd.exe, powershell, curl, wget); new listening ports opened by the Nexus process user.Sonatype has addressed this vulnerability in Nexus Repository 3.95.0, released August 5, 2026. Organizations should upgrade to version 3.95.0 or later as the primary remediation (Sonatype Release Notes). As interim mitigations: restrict the nx-datastores-update permission to only highly trusted administrators; audit all accounts currently holding this permission and remove it where not strictly necessary; consider migrating from the default H2 database backend to PostgreSQL, which does not support OS-level code execution via SQL in the same manner; and monitor the DataStore configuration API for unauthorized changes.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."