806 matches found
CVE-2018-6574
CVE-2018-6574 Steps to reproduce: 1. Create a .c file containing the malicious command revshell: include include static void malicious attributeconstructor; void malicious system""; 2. Compile it using GCC. You must compile it on the exact architecture and OS as the target e.g. Linux x8664: gcc...
Go-Get-RCE-CVE-2018-6574-POC
CVE-2018-6574 POC LINK https://nvd.nist.gov/vuln/detail/CVE-2018-6574 http://blog.nsfocus.net/cve-2018-6574/ RUN go get github.com/neargle/CVE-2018-6574-POC DETAIL payload at: https://github.com/neargle/CVE-2018-6574-POC/blob/master/calc.cL10 Now it supports all platforms using CGO features. Afte...
CVE-2024-24787-PoC
CVE-2024-24787-PoC On Darwin, building a Go module which contains CGO can trigger arbitrary code execution when using the Apple version of ld, due to usage of the -ltolibrary flag in a "cgo LDFLAGS" directive. This is not my bug, I just made a PoC for it. Reference...
CVE-2026-97043
A flaw was found in Go. An attacker can achieve arbitrary code execution or cause a Denial of Service DoS by enticing a user to build a specially crafted package using cgo. This issue occurs because the Go build tools improperly handle quotation marks and escape sequences in cgo directives,...
CVE-2026-97034
A flaw was found in cmd/go. This flaw allows an attacker to achieve arbitrary command execution when a developer or automated system builds an untrusted Go package that uses cgo Go's C language integration. When compiling with the GCC GNU Compiler Collection compiler, specific build flags cause t...
CVE-2026-97035
A flaw was found in cmd/go. An attacker could achieve arbitrary code execution or write files to arbitrary locations by enticing a developer or automated build system to compile a crafted package. This vulnerability occurs when compiling packages that use cgo Go's C-language interoperability...
CVE-2026-97033
A flaw was found in cmd/go. An attacker could achieve arbitrary code execution by enticing a user or automated build pipeline to compile a malicious package that uses cgo, which allows Go packages to call C code. Specially crafted compiler and linker flags permitted in build directives can cause...
CVE-2026-97037
A flaw was found in cmd/go. An attacker can achieve arbitrary code execution on a system that compiles a malicious package utilizing cgo Go's C programming language integration feature. When building the untrusted package, improperly validated linker flags allow malicious linker script files to b...
CVE-2026-97036
A flaw was found in cmd/go. When a user builds a malicious package using cgo on macOS Darwin, an attacker can achieve arbitrary code execution on the build system. This issue occurs because the platform linker recombines separated linker flag arguments into a command that loads an arbitrary dynam...
CVE-2026-97039
A flaw was found in cmd/go. This vulnerability allows an attacker to achieve arbitrary code execution when a user or automated system compiles an untrusted Go package. Due to insufficient validation of package configuration directives cgo pkg-config:, an attacker can supply crafted directives tha...
CVE-2018-6574
CVE-2018-6574 Exploit for remote command execution in Golang go get command. Introduction When you go get a package, Go is designed to build and install the package without running any code from it. The intent is that you can safely get, build, and even install Go packages without trusting them a...
CVE-2018-6574
CVE-2018-6574 POC Exploit POC For CVE-2018-6574 Compile 1. Create an exploit file with the following: include include static void malicious attributeconstructor; void malicious system"COMMAND"; 2. Compile it: gcc -shared -o exploit.so -fPIC exploit.c 3. Finally, you need the go code that will tel...
DHI-OYTU-HJEI-NX5E-C2CS When using LookupCNAME with the cgo DNS resolver, a very long CNAME response can trigger a double-free of C memory and…
When using LookupCNAME with the cgo DNS resolver, a very long CNAME response can trigger a double-free of C memory and a crash...
DHI-FXEQ-VWET-DKHV-BMPP When using Clang or GCC, building a malicious package that uses cgo could cause unexpected code execution at build time…
When using Clang or GCC, building a malicious package that uses cgo could cause unexpected code execution at build time or write files to arbitrary directories via "-gen-" or "-gnat" flags in "cgo" directives. The "-g" wildcard in the compiler and linker flag allowlists previously matched Clang's...
DHI-YTOW-DC7J-EHSO-NRMZ Building a malicious package that uses "#cgo pkg-config:" directives could load untrusted pkg-config ".pc" files or…
Building a malicious package that uses "cgo pkg-config:" directives could load untrusted pkg-config ".pc" files or inject unvalidated compiler and linker flags. The pkg-config flag allowlist previously permitted "--with-path=" and "--personality=", allowed "--define-variable=" values beginning wi...
DHI-TXPY-QBQH-PIGY-G5U7 When using GCC, building a malicious package that uses cgo could cause arbitrary command execution at link time via…
When using GCC, building a malicious package that uses cgo could cause arbitrary command execution at link time via untrusted GCC spec files "specs" or ".spec". When linking with "-fopenmp", "-fopenacc", or "-fsanitize=" in "cgo LDFLAGS", GCC's built-in link spec evaluates "%:includelibgomp.spec"...
DHI-NYWE-KYHW-6U5D-CKJF Building a malicious package that uses cgo could bypass "#cgo LDFLAGS" validation and cause unexpected code execution…
Building a malicious package that uses cgo could bypass "cgo LDFLAGS" validation and cause unexpected code execution at build time, or cause the go command to panic, via crafted quoting in "//go:cgoldflag" directives. When "cmd/cgo" generates "cgogotypes.go", it quotes each "cgo LDFLAGS" argument...
DHI-WANN-DOQV-7RAV-YXHI Building a package containing a crafted ".syso" file could bypass cgo flag validation and inject arbitrary linker flags…
Building a package containing a crafted ".syso" file could bypass cgo flag validation and inject arbitrary linker flags when linking. When loading ".syso" entries from a package archive, the linker only checked for recognized host object headers ELF, Mach-O, PE, and XCOFF before falling through t...
DHI-EYAJ-YCL6-2XRF-Y43P Building a malicious package that uses "//go:cgo_import_dynamic" or links against a crafted PE object on Windows could…
Building a malicious package that uses "//go:cgoimportdynamic" or links against a crafted PE object on Windows could pass unsafe library arguments to the external linker. The compiler only checked the first character of the library name in "//go:cgoimportdynamic" directives and skipped validation...
DHI-HROS-4PFZ-RFVS-FVKV Building a malicious package that uses cgo could cause arbitrary code execution at link time by passing linker script…
Building a malicious package that uses cgo could cause arbitrary code execution at link time by passing linker script files to the host linker via "cgo LDFLAGS". Split "-Wl," flags that consume a following argument such as "-Wl,-rpath", "-Wl,--just-symbols", and "-Wl,-undefined" previously accept...