CVE-2020-27195
nomad: file sandbox escape via template and artifact stanzas
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, GHSA. Rated lower by Red Hat (medium).
Description
HashiCorp Nomad and Nomad Enterprise version 0.9.0 up to 0.12.5 client file sandbox feature can be subverted using either the template or artifact stanzas. Fixed in 0.12.6, 0.11.5, and 0.10.6
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| go::GitHub Security Advisory Go | github.com/hashicorp/nomad | 0.10.6, 0.11.5, 0.12.6 |
| alpine 3.14 | nomad | 0.12.7-r0 |
| alpine 3.15 | nomad | 0.12.7-r0 |
| alpine 3.16 | nomad | 0.12.7-r0 |
| alpine 3.17 | nomad | 0.12.7-r0 |
| alpine 3.18 | nomad | 0.12.7-r0 |
References
- https://access.redhat.com/security/cve/CVE-2020-27195
- https://github.com/hashicorp/nomad/blob/master/CHANGELOG.md#0126-october-21-2020
- https://github.com/hashicorp/nomad/issues/9129
- https://github.com/hashicorp/nomad/pull/9139
- https://nvd.nist.gov/vuln/detail/CVE-2020-27195
- https://pkg.go.dev/github.com/hashicorp/nomad/client/allocrunner/taskrunner/template
- https://www.cve.org/CVERecord?id=CVE-2020-27195
- https://www.nomadproject.io/downloads