# CVE-2026-125958: N-able N-central Privilege Escalation via Unsigned Upgrade Packages

N-central's upgrade worker trusts a .sha2 checksum from the same untrusted .nsp package, letting an admin upload a self-signed payload that runs as root.

- Payout: Research
- Severity: high
- Program: N-able N-central
- Found by (vendor credit): Rapid 7
- Write-up by: Stephen Fewer
- Disclosed: 2026-11-30
- CVE: CVE-2026-125958
- Write-up quality: 7/10
- Original: https://www.rapid7.com/blog/post/ve-cve-2026-125958-n-able-n-central-privilege-escalation-via-unsigned-upgrade-packages
- Library page: https://bugbountylibrary.com/r/blog%3Arapid7-com-blog-post-ve-cve-2026-125958-n-able-n-central-privilege-escalation-via-unsigned-upgrade-packages
- Tags: area:cloud domain:infra impact:privesc impact:rce kind:research platform:threat-intel sev:high technique:chained technique:source-review vuln:misconfiguration vuln:privilege-escalation vuln:rce

**Target:** N-central upgrade worker (ManageVersionChild.sh) and version-management REST endpoints
**Root cause:** ManageVersionChild.sh validates the uploaded zstd archive only against a .sha2 file taken from the same attacker-controlled package, with no vendor signature check, then extracts and runs n-central-upgrade/upgrade.sh as root via systemd-run.
**Steps:**
1. Authenticate as an N-central administrator.
2. Build a zstd archive containing `n-central-upgrade/upgrade.sh` with arbitrary payload plus a matching `.sha2` checksum file.
3. Upload it via `POST /dms/rest/nac/version-management/uploadNsp`.
4. Trigger processing via `/dms/rest/nac/version-management/upgrade`.
5. ManageVersionChild.sh runs `sha256sum --check` against the attacker-supplied .sha2, passes, extracts, and launches upgrade.sh as root via `systemd-run --unit=nos-upgrade`.
**How found:** Code review of the upgrade worker script: noticed the integrity check sources its checksum file from the same untrusted package via `find ... -name '*.sha2'`, meaning the attacker controls both data and checksum, and that the extracted upgrade.sh is then run as root.
**Exploitation:** Chain: CVE-2026-86206 and CVE-2026-86207 give unauthenticated access/administrator context (fixed in 2026.3 Hotfix 3), then CVE-2026-125958 converts admin to root by uploading a self-checksummed .nsp whose upgrade.sh is executed as root. PoC demonstrated full unauth RCE against 2026.3.1.10.
**Escalation:** Admin-level access escalated to root OS code execution, completing an unauthenticated RCE chain.
**Insight:** When auditing package/update handlers, check whether the integrity manifest is fetched from the same untrusted artifact rather than a vendor-signed source; a self-referential checksum is equivalent to no verification, and the post-extract script is the root execution sink.

## Proof of concept (copied exactly from the original report)

**ManageVersionChild.sh checksum and root upgrade execution**

```
echo "INFO: Checking NSP integrity ..."
 nc_nsp_checksum_file="$(find "${nc_tmp_folder}" -type f -name '*.sha2' -print | sed "s|${nc_tmp_folder}/||g" | xargs)" # <--- [1] 
 nc_nsp_file_basename="${nc_nsp_checksum_file%%.sha2}" 
 if ! sha256sum --quiet --check "${nc_nsp_checksum_file}"; then
 echo "ERROR: NSP file ${nc_nsp_file_basename}.nsp is corrupted"
 email_subject="ERROR: The N-central upgrade to N-central ${nc_nsp_file_basename} failed"
 email_error_message="The N-central upgrade to N-central ${nc_nsp_file_basename} from: $(rpm -q --qf '%{VERSION}' n-central-release) on: $(gawk '{print tolower($0)}' '/etc/hostname') failed downloading or unpacking the upgrade '.nsp' file, please verify the checksum of the '.nsp' file you have downloaded.\\nIf this issue persists, please contact N-central Technical Support."
 from_email_address="$(psql --username="${nc_db_username=}" --dbname="${nc_db_name}" --tuples-only --no-align --command="SELECT email FROM soemail WHERE customerid = 1;" | xargs)"
 if [[ -z "${from_email_address}" ]] || [[ "${from_email_address}" == '' ]]; then
 from_email_address='[email protected]'
 fi
 send_email "${to_email_address}" "${from_email_address}" "${email_subject}" "${email_error_message}"
 exit 1
 fi
 echo "INFO: Extracting the zstd compressed tarball ..."
 zstd --decompress --stdout --force "${nc_nsp_file_basename}.zstd" | tar --extract --warning=no-timestamp
 next_script="${nc_tmp_folder}/n-central-upgrade/upgrade.sh"
 rm -f "${nc_tmp_folder}/n-central-upgrade.nsp"
 rm -f "${nc_nsp_file_basename}."*
 echo "INFO: Launching the Upgrade : '${next_script}' '${to_email_address}' &"
 systemd_unit_name="nos-upgrade"
 systemd_slice_name="upgrade"
 trap - ERR
 trap - EXIT
 systemctl reset-failed "${systemd_unit_name}" || true
 sleep 5
 systemd-run --unit="${systemd_unit_name}" --slice="${systemd_slice_name}" --property=After=network-online.target --property=Wants=network-online.target bash "${next_script}" "${to_email_address}" & # <--- [2]
```

