CVE-2025-64766
NixOS has hardcoded credentials in Onlyoffice module
Check your servers for CVE-2025-64766
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-64766 affects nixpkgs, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
NixOS's Onlyoffice is a software suite that offers online and offline tools for document editing, collaboration, and management. In versions from 22.11 to before 25.05 and versions before Unstable 25.11, a hard-coded secret was used in the NixOS module for the OnlyOffice document server to protect its file cache. An attacker with knowledge of an existing revision ID could use this secret to obtain a document. In practice, an arbitrary revision ID should be hard to obtain. The primary impact is likely the access to known documents from users with expired access. This issue was resolved in NixOS unstable version 25.11 and version 25.05.
Severity (CVSS)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality low, integrity none, availability none: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.30%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 24.0% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 17 Nov 2025):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-798 Use of Hard-coded Credentials
Affected products
As the CNA lists them.
Is my server affected?
Find the installed version of nixpkgs and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i nixpkgs
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2025-64766 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2025-64766RHEL, Rocky, Alma, Fedora
rpm -q nixpkgs
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2025-64766Alpine
apk list --installed | grep -i nixpkgsWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2025-64766
trivy image --scanners vuln IMAGE | grep CVE-2025-64766
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
Other references
- https://github.com/NixOS/nixpkgs/pull/462100 github.com
- https://github.com/NixOS/nixpkgs/pull/462204 github.com
- https://github.com/NixOS/nixpkgs/commit/8e74d05e3de4ee5ad320cd585a7e0f12a4730869 github.com
- https://github.com/NixOS/nixpkgs/commit/cec38dec00df26a901eb8b424d53bbb3bcc72eec github.com
Source: the record CVE-2025-64766 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse