BuildRiot
Sign in

Article · Backend

Patch every affected Nomad client: a guide to CVE-2026-107347

CVE-2026-107347 allows certain Nomad writes to escape allocation directories through symlinks. This guide covers fleet inventory, permission review, client upgrades and verification, with a per-client worksheet that separates patch completion from historical exposure.

A sunlit miniature workbench shows wooden file compartments, escaping red ribbons, blue replacement fittings, inspection tools, and a worksheet tracking repairs separately from historical exposure.
Illustration: BuildRiot (AI-generated)

Key takeaway

Installing a fixed binary does not prove that every client is running it or establish whether earlier host-file modification occurred. Operators need separate evidence for remediation and exposure assessment, including clients that are offline or replaced.

Select the fix and track exposure separately

HashiCorp released fixes for CVE-2026-107347, which lets symlinks redirect Nomad client writes outside allocation directories with the agent’s privileges. Its October 29, 2026 bulletin describes dispatch-payload and executor-log write paths affecting Nomad and Nomad Enterprise through 2.0.7. Create a record for every client, with separate outcomes for verifying a running fix and investigating historical exposure. Sources: HashiCorp

Select the target by edition: HashiCorp lists Community 2.1.0 and Enterprise 2.1.0, 1.11.12 and 1.10.18 as fixes. A simple comparison against 2.1.0 would misclassify the Enterprise backports. GitHub rates the vulnerability High, with a score of 8.4, but marks its advisory Unreviewed. Its structured version fields say Unknown, although the prose names the fixes. Use HashiCorp’s bulletin for release selection. Sources: HashiCorp, GitHub

Inventory every region, page and replacement source

Begin with registered clients. Use the correct address and credentials for each cluster. Node status defaults to the contacted agent’s local region, and verbose listing includes client versions. With access control lists (ACLs) enabled, the inventory identity needs node:read access. The following ACL policy grants it. Sources: HashiCorp

node {
  policy = "read"
}

Run the following collection for every region, saving timestamped output and full client IDs. The first commands provide verbose and JSON listings, followed by details for an exact client ID. Continue through every returned page using the pagination controls shown below. Avoid filters that hide unhealthy clients. Sources: HashiCorp

nomad node status -region="$REGION" -verbose
nomad node status -region="$REGION" -json
nomad node status -region="$REGION" -verbose "$NODE_ID"
nomad node status -region="$REGION" -verbose -per-page=100
nomad node status -region="$REGION" -verbose -per-page=100 \
  -page-token="$NEXT_TOKEN"

Registered-node output cannot account for hosts that never registered. Reconcile it against cloud instances, hypervisors, bare-metal records and configuration management across datacenters and node pools. Record machine images, autoscaling templates and bootstrap package pins that could recreate vulnerable clients. Keep offline, missing and unreachable clients unresolved until verified upgraded or demonstrably retired. Link replacements to their predecessors without discarding earlier exposure records. Sources: HashiCorp

Review effective permissions and agent privileges

Review developers, continuous integration (CI) and automation by owner, namespace and effective access. The payload path requires job submission and dispatch plus relevant symlink placement. The executor-log path requires submission of Linux exec or java jobs plus relevant symlinks. Inspect all applicable ACL policies, including wildcard namespaces. Namespace write policy includes submit-job and dispatch-job; explicit capabilities merge with that shorthand. The shorter list below therefore does not narrow access. Sources: HashiCorp

namespace "production" {
  policy       = "write"
  capabilities = ["read-job"]
}

An explicit capability list can instead define a restricted inspection policy, as below. Review other grants and workflow requirements before adopting it, then validate allowed and denied operations in a controlled namespace. Namespace deny takes precedence across policies but blocks broadly rather than selectively subtracting dispatch access. Removing dispatch alone does not address the executor-log path. Sources: HashiCorp

namespace "production" {
  capabilities = ["list-jobs", "read-job"]
}

Record the agent’s actual user ID (UID) separately from task users. For Linux hosts with a systemd unit named nomad, the following inspection captures service settings and process identity. Confirm that the process ID (PID) is nonzero and belongs to the intended agent. Adapt collection for containers or other service managers, preserving the executable path, effective UID and process-start evidence.

systemctl show nomad -p MainPID -p User -p ExecStart

agent_pid=$(systemctl show nomad -p MainPID --value)
ps -p "$agent_pid" -o pid=,ruid=,euid=,user=,lstart=,args=

Map parameterized jobs using dispatch_payload.file and Linux exec/java allocations to namespaces, task users and client IDs. Dispatch payloads are written before task startup relative to the task’s local directory. Allocation directories normally sit beneath data_dir/alloc/<allocation-id>. These configurations alone do not indicate exploitation. Because redirected writes use agent privileges, a root agent’s write could lead to root execution if it reaches material consumed by a privileged execution mechanism. Sources: HashiCorp

Check compatibility and choose the rollout method

Check every intervening version’s requirements, then upgrade servers before clients as HashiCorp recommends. For 2.1.0, review the compatibility items below before scheduling client upgrades. Enterprise backports may reduce immediate migration scope, but support planning remains a separate decision. Release notes list October 31, 2026 as the 1.11.x support end and April 30, 2027 for 1.10.x long-term support. Sources: HashiCorp

  • Server joining requires agent:write when ACLs are enabled.
  • Deprecated retry_join, retry_interval, retry_max and start_join fields in the server block prevent startup; move them into server_join.
  • Transport Layer Security (TLS) error-message changes can affect alert matching.
  • Allocation API consumers must use AllocatedResources instead of removed resource fields.
  • Restoring client state databases older than 0.9 is unsupported. Sources: HashiCorp

Choose between binary replacement with restart and draining workloads onto replacement hosts. The table below separates operational benefits from costs. Plan recovery first: HashiCorp does not support downgrades. Its guidance describes client downgrade as requiring draining and data-directory removal, while server downgrade requires reprovisioning. Sources: HashiCorp

Table

Client upgrade approaches and operational trade-offs

ApproachOperational benefitCost or limitation
Incremental binary replacement and restartCan preserve running allocationsRestart delays and service configuration can disrupt workloads
Drain and replace hostsExercises the replacement image and bootstrap pathRequires spare capacity and workload migration
Replace a suspicious host after evidence collectionEstablishes a fresh host baselineDoes not explain or reverse prior compromise
Choose around workload migration and evidence preservation; replacing a suspicious host is an incident-response recommendation.Source: HashiCorp

HashiCorp warns that client restarts exceeding heartbeat_grace, 10 seconds by default, may cause allocations to be rescheduled. Treat this as a planning warning, not a universal failure deadline. Workload disconnect settings can change whether allocations become unknown, are replaced or reconnect. Inspect those settings before predicting disruption, then install the selected binary through the fleet’s deployment mechanism. For systemd, the following example restarts the service and checks whether it is active. Sources: HashiCorp

sudo systemctl restart nomad
systemctl is-active nomad

For a drain-based rollout, the commands below provide an operational example. Wait for migration and validate workload health before retiring a host. For retained clients, restore intended scheduling state after verification, including an explicit eligibility check.

nomad node drain -enable -yes "$NODE_ID"
nomad node status "$NODE_ID"

Verify each running client and retain the worksheet

Make completion depend on the running process and its exact client record. Capture post-change PID, UID and start time, then repeat the regional query for that client ID. Match its reported version against the selected fixed edition and build. Check connectivity, driver health, scheduling eligibility and expected allocation behavior before marking the fix verified. Sources: HashiCorp

Use the worksheet below as a proposed record for each client incarnation. A local version check alone should not count as evidence that the service restarted onto the installed binary. Verify replacement images and package settings, repeat fleet collection and reconcile counts again. Save evidence and reviewer identity while preserving unresolved clients and predecessor records.

Table

Per-client remediation and exposure worksheet

FieldRequired entry
Client identity and locationFull client ID; hostname; infrastructure instance ID; cluster; region; datacenter; node pool
AvailabilityRunning, offline, missing, retired; last observation
VersionsPrevious version/edition; target; current reported version
Agent identityActual UID and effective UID; PID; executable; observation timestamp
Relevant workloadsNamespaces/jobs/allocations; payload filenames; Linux exec/java; task users
Permission ownerDeveloper/CI/automation owner; policy references; effective submit/dispatch rights
Upgrade method and replacement sourceIn-place or replacement; change record; predecessor/successor; image/template ID; package pin; validation evidence
Restart verificationRestart time; new process evidence; node report; workload checks
Patch statusPending / installed awaiting restart / running fix verified / retired / unresolved
Exposure intervalEarliest/latest supported vulnerable dates; uncertainty
Historical activitySubmitters; dispatches; job changes; allocation placement
Host investigationSymlinks; unexpected file changes; evidence references
Investigation statusNot started / underway / no evidence found within stated scope / suspicious / confirmed / insufficient evidence
AccountabilityRemediation owner; investigator; reviewer; next action
Maintain one record per client incarnation, with independent patch and investigation states.

Investigate the vulnerable period separately

Reconstruct exposure intervals from deployment records, process history and image provenance. Do not use the disclosure date as the starting point. Map historical submitters, dispatch activity and job revisions to namespaces and allocation placement. Before cleanup or replacement, preserve allocation symlinks, their targets, filesystem metadata, agent logs, available audit records, CI records and disk evidence.

Compare unexpected host-file changes with trusted baselines and authorized changes. HashiCorp’s advisory does not establish exploitation in the wild or provide a definitive detection procedure, reliable exploit sequence or complete forensic signatures. Record retention gaps, collection scope and the time range behind any no-evidence finding. A client can have a verified running fix while its historical investigation remains unresolved. Assign the remaining evidence work an owner and next action. Sources: HashiCorp

Attribution

Sources

  1. 1HashiCorpHCSEC-2026-52 — Nomad dispatch payload writes can escape the allocation directory through symlinksSource published (UTC)
  2. 2HashiCorpnomad node status command reference
  3. 3HashiCorpACL policy overview
  4. 4HashiCorpUpgrade Nomad
  5. 5GitHubCVE-2026-107347 — GitHub Advisory Database
  6. 6HashiCorpdispatch_payload block in the job specification
  7. 7HashiCorpAllocation Filesystems
  8. 8HashiCorpNomad version-specific upgrade guides
  9. 9HashiCorpNomad v2.1.x release notes
  10. 10HashiCorpdisconnect block in the job specification

Read the original source for full details and context.

Report a problem

Links, dates or what you expected. Do not include passwords or private data.

More on Backend

All Backend stories

Review · Backend

Review: PostgreSQL 19, a relational database with new maintenance controls

PostgreSQL 19 adds concurrent table repacking that permits access during most of the work. The PostgreSQL Global Development Group released this version of its open-source relational database on November 19, 2026. According to the project, pg_plan_advice influences planner choices, while pg_stash_advice stores and applies guidance by query identifier. The release also adds logical replication of sequence values, get-or-create operations and JSON export.

PostgreSQL

Review · Frontend

Review: MoonBit 1.0 release candidate, a language for WebAssembly and native apps

MoonBit released its 1.0 release candidate on November 26, 2026, freezing compiler changes to bug fixes until 1.0. Its primary targets are native code and WebAssembly, with JavaScript support for browsers and interfaces. The team targets February 18, 2027, for the full release with a stable core library. The async and archive packages may still receive minor API refinements. The moon fix command can apply compiler-suggested fixes.

MoonBit

Patch every affected Nomad client: a guide to CVE-2026-107347 · BuildRiot