Skip to main content

Nextflow CVE-2026-142237

| EUVDEUVD-2026-141593 MEDIUM
Creation of Temporary File With Insecure Permissions (CWE-378)
2026-12-02 VulnCheck GHSA-xw4m-rp49-qx29
5.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain unprivileged account on shared filesystem
  2. Delivery
    Watch traversable $NXF_HOME/secrets directory
  3. Exploit
    Race between file create and chmod 0600
  4. Execution
    Read world-readable store.json while mode 0644
  5. Impact
    Exfiltrate plaintext API/cloud credentials

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V5 - File Handling Temp file with insecure permissions
Exploitation Conditions

Exploitation requires a shared multi-user filesystem (HPC login node, CI runner, or shared local host) where an attacker holds an unprivileged local account that can traverse/read the victim's $NXF_HOME or the NXF_SECRETS_FILE parent directory. The victim must invoke 'nextflow secrets set' while running under a permissive umask such as 022, which causes the temporary/.nf secrets store file to be created world-readable (0644) before Nextflow applies chmod 0600. The attacker must win the race window between file creation and the permission tightening, and can only do so during the moment of secret creation. Key LIMITING factors: no remote vector (AV:L); a race that is not attacker-controlled (AC:H/AT:P); a required local account (PR:L); and the vendor's own negative control shows that a restrictive umask (077) makes the file and parent directories non-group/other-readable, defeating the attack entirely.

Impact

This is a genuine but lower-tier priority: a local, confidentiality-only information disclosure, not a remotely exploitable critical. The supplied CVSS 4.0 vector (AV:L/AC:H/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N) and its 5.7 (medium) score are internally consistent with the mechanism - local attack vector, an attacker-uncontrolled race window (AC:H plus AT:P, Present attack requirement), a low-privileged local account needed to traverse the directory (PR:L), and high confidentiality impact with no integrity or availability effect. The vuln.today decision label is 'this_month', not act_now/emergency, which matches a bounded, local-only exposure. No CISA KEV listing and no EPSS score are present in the input, so there is no signal of active or widespread exploitation; this should be read as absence of a feed entry, not as proof of safety. A detailed, working proof-of-concept is published in the GHSA-4cmm-q94h-8g5j advisory (with watcher captures of the secret at mode 0644), so exploitability is well established even though the issue is not weaponized at internet scale. The main thing that elevates real risk above the modest score is impact quality: captured material is plaintext API tokens, service and cloud credentials, which can enable lateral movement far beyond the local host. Net: real and worth patching on a normal cycle, driven by credential sensitivity on shared HPC/CI/multi-user systems rather than by exploitation breadth.

Exploit ScenarioDerived

On a shared HPC, CI, or multi-user Linux host, a victim runs 'nextflow secrets set API_TOKEN ...' with a common umask of 022, causing the store.json (or NXF_SECRETS_FILE) to be created briefly world-readable (0644) before Nextflow chmods it to 0600. A separate unprivileged local user who can traverse the $NXF_HOME or secrets parent directory runs a tight stat/read loop and reads the plaintext token during that race window. A published, demonstrably working PoC in the vendor GHSA advisory shows this capture succeeding; the local attack vector and high complexity (AC:H/AT:P) mean the attacker must already have a local account and must win the timing race.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Dec 02, 2026

Local credential disclosure in Nextflow (through 26.10.7) lets an unprivileged user on a shared multi-user filesystem race-read pipeline secrets that another user writes with nextflow secrets set. Under a permissive umask such as 022, the secrets store is created world-readable (0644) and only afterwards tightened to 0600, so an attacker who can traverse the victim's $NXF_HOME or the NXF_SECRETS_FILE parent directory can open and read the plaintext JSON in that window. The upstream advisory (GHSA-4cmm-q94h-8g5j) publishes a PoC that successfully captured a stored token while the file was still 0644; the vendor's negative control shows that a umask of 077 makes the race unexploitable, and this is tracked as a this-month priority rather than an emergency.

RemediationAI

Upgrade Nextflow to a release at or above the fixed version named in the vendor advisory (GHSA-4cmm-q94h-8g5j lists >=26.09.0-edge; because the CVE text cites 26.10.7 as affected, verify the corrected build for your release channel against the advisory before treating an install as patched). Where upgrading is not immediately possible, the advisory's own negative control supports two specific compensating controls whose effectiveness is documented: first, invoke secret creation under a restrictive umask (run umask 077 before nextflow secrets set, yielding 0700 directories and a 0600 store file with no world-readable window), with the trade-off that the same umask also applies to other files the process creates, so pipeline outputs and work files may land more restrictive than collaborators expect and shared group workflows can break; second, place NXF_HOME or NXF_SECRETS_FILE on a parent path that is not traversable or readable by other local users (e.g. a private home directory or non-shared volume) so no attacker can reach the file during the window, with the trade-off that multi-user HPC shared storage layouts and shared CI workspaces must be redesigned. Neither control removes the underlying write-before-chmod ordering in LocalSecretsProvider, so updating remains the complete fix.

Affected VersionsENISA

nextflow 0 ≤26.10.7

Affected Packages

euvd nextflow no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The flaw lives in Nextflow's local secrets provider (modules/nextflow/src/main/groovy/nextflow/secret/LocalSecretsProvider.groovy). makeStoreFile() resolves the store from NXF_SECRETS_FILE or $NXF_HOME/secrets/store.json, creating parent directories with default process permissions, and storeSecrets() serializes secrets to JSON and writes them with Files.write(...) before calling setPermissions('rw-------') via FilesEx.setPermissions(), which can only apply POSIX permissions after the file already exists. This is fundamentally CWE-378 (creation of a temporary file with insecure default permissions), with the advisory additionally classifying it as CWE-367 (race condition / TOCTOU) and CWE-732 (incorrect permission assignment for a critical resource). Because the file mode is inherited from the process umask, umask 022 yields a brief 0644 window; the advisory's negative control with umask 077 produced only 0700 directories and a 0600 file with zero world-readable observations, confirming the umask as the deciding environmental factor. The vulnerable code is reachable only through local secret storage on shared HPC login nodes, CI runners, or shared local hosts, which is what constrains the assessed vector to AV:L/AC:H/PR:L with confidentiality-only impact.

Know when Nextflow gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 5.7 MEDIUM
CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
vuln.today AI 4.7 MEDIUM

Local shared-host account needed (AV:L/PR:L), exploitation depends on winning a narrow non-attacker-controlled race (AC:H), and only plaintext secret confidentiality is affected (C:H, I:N, A:N).

3.1 AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
4.0 AV:L/AC:H/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Local
Attack Complexity
High
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

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.

Threat Intelligence Overview

Prevalence
Low
leading bioinformatics/HPC pipeline tool, but industry-specific deployment footprint
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS N/A
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

28
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy