CVE-2026-142237: Nextflow through 26.10.7 Race Condition Exposes Secrets via Temporary Secrets File
Nextflow through 26.10.7 contains a race condition in LocalSecretsProvider.makeTempSecretsFile that allows local users to read pipeline secrets by opening the temporary .nf-<hash>.secrets file before permissions are restricted. Attackers who can traverse the secrets directory can open the file between creation with the process umask and the chmod to 0600, then read plaintext secret exports once written.
Affected Software
Event History
Frequently Asked Questions
Who can exploit this issue?
A local user who can traverse the directory used for secrets files is required. Remote access alone is not described as sufficient, and exploitation also depends on winning the interval before the file permissions are changed to 0600.
What information could be exposed if exploitation succeeds?
The attacker can read plaintext secret exports written to the temporary .nf-<hash>.secrets file. The described impact is confidentiality only; integrity and availability impacts are not indicated.
Are affected temporary files permanently world-readable?
No. The exposure exists during the race window after creation under the process umask and before the file is chmodded to 0600. An attacker must open the file during that window.
What can be done while patching is not immediately possible?
Restrict traversal access to the secrets directory so untrusted local users cannot access it. This directly removes the directory-access prerequisite described for exploitation.