{"answers":{"affected":"1 open source package ship an affected version, including toolchain. It affects 6 products.","exploited":"There is no known exploitation of CVE-2018-6574 in the wild and no public exploit code.","fix":"Upgrade toolchain to a fixed version for your release line: 1.8.7 or 1.9.4.","what":"CVE-2018-6574 is a high-severity code injection vulnerability in Debian Debian Linux, published on 7 Feb 2018. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2018-6574 and fix it if it is affected.\n\nWhat it is: CVE-2018-6574 is a high-severity code injection vulnerability in Debian Debian Linux, published on 7 Feb 2018. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2018-6574 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- toolchain (Go): affected all versions; fixed in 1.8.7, 1.9.4\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2018-6574/ (Markdown: https://insights.sbomify.com/CVE-2018-6574/index.md)","id":"CVE-2018-6574","markdown":"https://insights.sbomify.com/CVE-2018-6574/index.md","name":"CVE-2018-6574","record":{"aliases":["GHSA-c37c-qq99-c897","GO-2022-0201","MGASA-2018-0144","RHSA-2018:1304","UBUNTU-CVE-2018-6574","openSUSE-SU-2018:0588-1","openSUSE-SU-2018:0589-1","openSUSE-SU-2018:0628-1","openSUSE-SU-2018:0629-1"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Go compiler","requires_auth":"low_privilege","summary":"Attackers can execute arbitrary code during Go source builds by exploiting unblocked compiler plugin arguments in the go get command.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"debian_linux","vendor":"debian"},{"product":"go","vendor":"golang"},{"product":"enterprise_linux_server","vendor":"redhat"},{"product":"enterprise_linux_server_aus","vendor":"redhat"},{"product":"enterprise_linux_server_eus","vendor":"redhat"},{"product":"enterprise_linux_server_tus","vendor":"redhat"}],"cvss":{"score":7.8,"severity":"high","source":"nvd","vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.0"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"description":"Go before 1.8.7, Go 1.9.x before 1.9.4, and Go 1.10 pre-releases before Go 1.10rc2 allow \"go get\" remote command execution during source code build, by leveraging the gcc or clang plugin feature, because -fplugin= and -plugin= arguments were not blocked.","ecosystems":["Go","Red Hat:devtools:2018","SUSE:Package Hub 12"],"exploits":{"exploitdb":0,"first_seen":"2018-04-02","github_poc":91,"max_poc_stars":24,"metasploit":0,"nuclei":0,"refs":[{"date":"2018-04-24T03:44:20Z","kind":"github_poc","ref":"https://github.com/neargle/Go-Get-RCE-CVE-2018-6574-POC","stars":24,"title":"CVE-2018-6574 POC : golang 'go get' remote command execution during source code build"},{"date":"2019-12-02T05:40:07Z","kind":"github_poc","ref":"https://github.com/frozenkp/CVE-2018-6574","stars":2,"title":null},{"date":"2018-05-17T08:32:40Z","kind":"github_poc","ref":"https://github.com/wb4r/go-get-rce","stars":1,"title":"CVE-2018-6574 for pentesterLAB"},{"date":"2020-06-21T20:43:53Z","kind":"github_poc","ref":"https://github.com/Malone5923/CVE-2018-6574-go-get-RCE","stars":1,"title":"CVE-2018-6574: go get RCE solution for pentesterlab challenge"},{"date":"2021-10-15T08:02:02Z","kind":"github_poc","ref":"https://github.com/Devang-Solanki/CVE-2018-6574","stars":1,"title":"Exploit for remote command execution in Golang go get command."},{"date":"2021-10-20T12:04:56Z","kind":"github_poc","ref":"https://github.com/ItsFadinG/CVE-2018-6574","stars":1,"title":null},{"date":"2022-03-24T08:40:42Z","kind":"github_poc","ref":"https://github.com/the-valluvarsploit/CVE-2018-6574","stars":1,"title":null},{"date":"2022-12-03T17:41:32Z","kind":"github_poc","ref":"https://github.com/mux0x/CVE-2018-6574","stars":1,"title":null}],"tier":"poc_unverified"},"has_fix":true,"headline":"Code injection in n/a","id":"CVE-2018-6574","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":"debian:debian_linux","products":["debian:debian_linux","golang:go","redhat:enterprise_linux_server","redhat:enterprise_linux_server_aus","redhat:enterprise_linux_server_eus","redhat:enterprise_linux_server_tus"],"type":"code_injection","year":"2018"},"n_packages":18,"n_references":7,"next":{"headline":"SQL injection in n/a","id":"CVE-2018-6575"},"packages":[{"ecosystem":"Go","fixed":["1.8.7","1.9.4"],"introduced":["0","1.9.0-0"],"last_affected":[],"package":"toolchain","purl":"pkg:golang/toolchain","source":"GO-2022-0201"},{"ecosystem":"Red Hat:devtools:2018","fixed":["0:1.8-14.el7"],"introduced":["0"],"last_affected":[],"package":"go-toolset-7","purl":"pkg:rpm/redhat/go-toolset-7","source":"RHSA-2018:1304"},{"ecosystem":"Red Hat:devtools:2018","fixed":["0:1.8-14.el7"],"introduced":["0"],"last_affected":[],"package":"go-toolset-7-build","purl":"pkg:rpm/redhat/go-toolset-7-build","source":"RHSA-2018:1304"},{"ecosystem":"Red Hat:devtools:2018","fixed":["0:1.8.7-2.el7"],"introduced":["0"],"last_affected":[],"package":"go-toolset-7-golang","purl":"pkg:rpm/redhat/go-toolset-7-golang","source":"RHSA-2018:1304"},{"ecosystem":"Red Hat:devtools:2018","fixed":["0:1.8.7-2.el7"],"introduced":["0"],"last_affected":[],"package":"go-toolset-7-golang-bin","purl":"pkg:rpm/redhat/go-toolset-7-golang-bin","source":"RHSA-2018:1304"},{"ecosystem":"Red Hat:devtools:2018","fixed":["0:1.8.7-2.el7"],"introduced":["0"],"last_affected":[],"package":"go-toolset-7-golang-docs","purl":"pkg:rpm/redhat/go-toolset-7-golang-docs","source":"RHSA-2018:1304"},{"ecosystem":"Red Hat:devtools:2018","fixed":["0:1.8.7-2.el7"],"introduced":["0"],"last_affected":[],"package":"go-toolset-7-golang-misc","purl":"pkg:rpm/redhat/go-toolset-7-golang-misc","source":"RHSA-2018:1304"},{"ecosystem":"Red Hat:devtools:2018","fixed":["0:1.8.7-2.el7"],"introduced":["0"],"last_affected":[],"package":"go-toolset-7-golang-race","purl":"pkg:rpm/redhat/go-toolset-7-golang-race","source":"RHSA-2018:1304"},{"ecosystem":"Red Hat:devtools:2018","fixed":["0:1.8.7-2.el7"],"introduced":["0"],"last_affected":[],"package":"go-toolset-7-golang-src","purl":"pkg:rpm/redhat/go-toolset-7-golang-src","source":"RHSA-2018:1304"},{"ecosystem":"Red Hat:devtools:2018","fixed":["0:1.8.7-2.el7"],"introduced":["0"],"last_affected":[],"package":"go-toolset-7-golang-tests","purl":"pkg:rpm/redhat/go-toolset-7-golang-tests","source":"RHSA-2018:1304"},{"ecosystem":"Red Hat:devtools:2018","fixed":["0:1.8-14.el7"],"introduced":["0"],"last_affected":[],"package":"go-toolset-7-runtime","purl":"pkg:rpm/redhat/go-toolset-7-runtime","source":"RHSA-2018:1304"},{"ecosystem":"Red Hat:devtools:2018","fixed":["0:1.8-14.el7"],"introduced":["0"],"last_affected":[],"package":"go-toolset-7-scldevel","purl":"pkg:rpm/redhat/go-toolset-7-scldevel","source":"RHSA-2018:1304"},{"ecosystem":"SUSE:Package Hub 12","fixed":["1.9.4-15.1"],"introduced":["0"],"last_affected":[],"package":"go","purl":"pkg:rpm/suse/go\u0026distro=SUSE%20Package%20Hub%2012","source":"openSUSE-SU-2018:0588-1"},{"ecosystem":"SUSE:Package Hub 12","fixed":["1.9.4-15.1"],"introduced":["0"],"last_affected":[],"package":"go","purl":"pkg:rpm/suse/go\u0026distro=SUSE%20Package%20Hub%2012","source":"openSUSE-SU-2018:0589-1"},{"ecosystem":"SUSE:Package Hub 12","fixed":["1.8.7-5.1"],"introduced":["0"],"last_affected":[],"package":"go1.8","purl":"pkg:rpm/suse/go1.8\u0026distro=SUSE%20Package%20Hub%2012","source":"openSUSE-SU-2018:0628-1"},{"ecosystem":"SUSE:Package Hub 12","fixed":["1.8.7-5.1"],"introduced":["0"],"last_affected":[],"package":"go1.8","purl":"pkg:rpm/suse/go1.8\u0026distro=SUSE%20Package%20Hub%2012","source":"openSUSE-SU-2018:0629-1"},{"ecosystem":"SUSE:Package Hub 12","fixed":["1.9.4-5.1"],"introduced":["0"],"last_affected":[],"package":"go1.9","purl":"pkg:rpm/suse/go1.9\u0026distro=SUSE%20Package%20Hub%2012","source":"openSUSE-SU-2018:0588-1"},{"ecosystem":"SUSE:Package Hub 12","fixed":["1.9.4-5.1"],"introduced":["0"],"last_affected":[],"package":"go1.9","purl":"pkg:rpm/suse/go1.9\u0026distro=SUSE%20Package%20Hub%2012","source":"openSUSE-SU-2018:0589-1"}],"prev":{"headline":"Missing authorization in n/a","id":"CVE-2018-6569"},"products":["n/a"],"published":"2018-02-07","related":[{"cvss_score":10,"headline":"ProFTPD Improper Access Control","id":"CVE-2015-3306","kev_date_added":"2026-10-08","published":"2015-05-18"},{"cvss_score":9.9,"headline":"RoundCube Webmail Deserialization of Untrusted Data","id":"CVE-2025-49113","kev_date_added":"2026-02-20","published":"2025-06-02"},{"cvss_score":9.8,"headline":"GNU InetUtils Argument Injection","id":"CVE-2026-24061","kev_date_added":"2026-01-26","published":"2026-01-21"},{"cvss_score":9.8,"headline":"Linux Kernel Improper Check for Unusual or Exceptional Conditions","id":"CVE-2025-39682","kev_date_added":"2026-09-18","published":"2025-09-05"},{"cvss_score":9.8,"headline":"Mozilla Firefox Use-After-Free","id":"CVE-2024-9680","kev_date_added":"2024-10-15","published":"2024-10-09"},{"cvss_score":9.8,"headline":"RARLAB UnRAR Directory Traversal","id":"CVE-2022-30333","kev_date_added":"2022-08-09","published":"2022-05-09"},{"cvss_score":9.8,"headline":"Roundcube Webmail SQL Injection","id":"CVE-2021-44026","kev_date_added":"2023-06-22","published":"2021-11-19"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-05","vendors":["n/a"]},"summary":"Attackers can execute arbitrary code during Go source builds by exploiting unblocked compiler plugin arguments in the go get command.","url":"https://insights.sbomify.com/CVE-2018-6574/"}