CVE-2018-6574
golang-1.8 - security update
描述
The "go get" command with cgo is vulnerable to remote command execution by leveraging the gcc or clang plugin feature. When cgo is enabled, the build step during "go get" invokes the host C compiler, gcc or clang, adding compiler flags specified in the Go source files. Both gcc and clang support a plugin mechanism in which a shared-library plugin is loaded into the compiler, as directed by compiler flags. This means that a Go package repository can contain an attack.so file along with a Go source file that says (for example) "// #cgo CFLAGS: -fplugin=attack.so" causing the attack plugin to be loaded into the host C compiler during the build. Gcc and clang plugins are completely unrestricted in their access to the host system.
如何修補 CVE-2018-6574
要修補 CVE-2018-6574,請將受影響套件升級到下列已修補版本。
- —升級至 1.8.1-1+deb9u1 或更新版本
- —升級至 1.8.7 或更新版本
CVE-2018-6574 正在被利用嗎?
中等 — EPSS 為 7.8%,可持續追蹤但非最高優先。
受影響套件(2)
- from 0, < 1.8.1-1+deb9u1
- from 0, < 1.8.7, >= 1.9.0-0, < 1.9.4