util/binfmt_misc/check.go in Builder in Docker Engine before 19.03.9 calls os.OpenFile with a potentially unsafe qemu-check temporary pathname, constructed with an empty first argument in an ioutil.TempDir call.
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
Link | Tags |
---|---|
https://github.com/moby/buildkit/pull/1462 | third party advisory |
https://github.com/moby/moby/pull/40877 | third party advisory |
http://web.archive.org/web/20200530054359/https://docs.docker.com/engine/release-notes/ | third party advisory release notes |
https://golang.org/pkg/io/ioutil/#TempDir | third party advisory |
https://golang.org/pkg/os/#TempDir | third party advisory |