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.Referenceshttps://github.com/moby/buildkit/pull/1462https://github.com/moby/moby/pull/40877http://web.archive.org/web/20200530054359/https://docs.docker.com/engine/release-notes/https://golang.org/pkg/io/ioutil/#TempDirhttps://golang.org/pkg/os/#TempDir