CVE-2022-41606: Nomad Panics On Job Submission With Bad Artifact Stanza Source URL
6.5
Basic Information
Technical Details
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
github.com/hashicorp/nomad | go | < 1.2.13 | 1.2.13 |
github.com/hashicorp/nomad | go | >= 1.3.0, < 1.3.6 | 1.3.6 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The provided vulnerability information indicates that the issue stems from improper panic handling when processing invalid S3/GCS URLs in artifact stanzas via the go-getter
library. However, the analysis lacks critical details such as commit diffs, patch information, or explicit references to specific functions/modules in Nomad
's codebase. While the artifact retrieval logic in client agents (likely in client/allocrunner/taskrunner/artifact.go
or similar) is implicated, the absence of concrete code changes or function names prevents high-confidence identification of exact vulnerable functions. The fix involved adding panic recovery around go-getter
calls, but without seeing the pre-patch code, we cannot definitively name the unprotected functions.