gsd-2023-29405
Vulnerability from gsd
Modified
2023-12-13 01:20
Details
The go command may execute arbitrary code at build time when using cgo. This may occur when running "go get" on a malicious module, or when running any other command which builds untrusted code. This is can by triggered by linker flags, specified via a "#cgo LDFLAGS" directive. Flags containing embedded spaces are mishandled, allowing disallowed flags to be smuggled through the LDFLAGS sanitization by including them in the argument of another flag. This only affects usage of the gccgo compiler.
Aliases
Aliases



{
   GSD: {
      alias: "CVE-2023-29405",
      id: "GSD-2023-29405",
   },
   gsd: {
      metadata: {
         exploitCode: "unknown",
         remediation: "unknown",
         reportConfidence: "confirmed",
         type: "vulnerability",
      },
      osvSchema: {
         aliases: [
            "CVE-2023-29405",
         ],
         details: "The go command may execute arbitrary code at build time when using cgo. This may occur when running \"go get\" on a malicious module, or when running any other command which builds untrusted code. This is can by triggered by linker flags, specified via a \"#cgo LDFLAGS\" directive. Flags containing embedded spaces are mishandled, allowing disallowed flags to be smuggled through the LDFLAGS sanitization by including them in the argument of another flag. This only affects usage of the gccgo compiler.",
         id: "GSD-2023-29405",
         modified: "2023-12-13T01:20:56.969572Z",
         schema_version: "1.4.0",
      },
   },
   namespaces: {
      "cve.org": {
         CVE_data_meta: {
            ASSIGNER: "security@golang.org",
            ID: "CVE-2023-29405",
            STATE: "PUBLIC",
         },
         affects: {
            vendor: {
               vendor_data: [
                  {
                     product: {
                        product_data: [
                           {
                              product_name: "cmd/go",
                              version: {
                                 version_data: [
                                    {
                                       version_affected: "<",
                                       version_name: "0",
                                       version_value: "1.19.10",
                                    },
                                    {
                                       version_affected: "<",
                                       version_name: "1.20.0-0",
                                       version_value: "1.20.5",
                                    },
                                 ],
                              },
                           },
                           {
                              product_name: "cmd/cgo",
                              version: {
                                 version_data: [
                                    {
                                       version_affected: "<",
                                       version_name: "0",
                                       version_value: "1.19.10",
                                    },
                                    {
                                       version_affected: "<",
                                       version_name: "1.20.0-0",
                                       version_value: "1.20.5",
                                    },
                                 ],
                              },
                           },
                        ],
                     },
                     vendor_name: "Go toolchain",
                  },
               ],
            },
         },
         credits: [
            {
               lang: "en",
               value: "Juho Nurminen of Mattermost",
            },
         ],
         data_format: "MITRE",
         data_type: "CVE",
         data_version: "4.0",
         description: {
            description_data: [
               {
                  lang: "eng",
                  value: "The go command may execute arbitrary code at build time when using cgo. This may occur when running \"go get\" on a malicious module, or when running any other command which builds untrusted code. This is can by triggered by linker flags, specified via a \"#cgo LDFLAGS\" directive. Flags containing embedded spaces are mishandled, allowing disallowed flags to be smuggled through the LDFLAGS sanitization by including them in the argument of another flag. This only affects usage of the gccgo compiler.",
               },
            ],
         },
         problemtype: {
            problemtype_data: [
               {
                  description: [
                     {
                        lang: "eng",
                        value: "CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')",
                     },
                  ],
               },
            ],
         },
         references: {
            reference_data: [
               {
                  name: "https://go.dev/issue/60306",
                  refsource: "MISC",
                  url: "https://go.dev/issue/60306",
               },
               {
                  name: "https://go.dev/cl/501224",
                  refsource: "MISC",
                  url: "https://go.dev/cl/501224",
               },
               {
                  name: "https://groups.google.com/g/golang-announce/c/q5135a9d924/m/j0ZoAJOHAwAJ",
                  refsource: "MISC",
                  url: "https://groups.google.com/g/golang-announce/c/q5135a9d924/m/j0ZoAJOHAwAJ",
               },
               {
                  name: "https://pkg.go.dev/vuln/GO-2023-1842",
                  refsource: "MISC",
                  url: "https://pkg.go.dev/vuln/GO-2023-1842",
               },
               {
                  name: "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XBS3IIK6ADV24C5ULQU55QLT2UE762ZX/",
                  refsource: "MISC",
                  url: "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XBS3IIK6ADV24C5ULQU55QLT2UE762ZX/",
               },
               {
                  name: "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NZ2O6YCO2IZMZJELQGZYR2WAUNEDLYV6/",
                  refsource: "MISC",
                  url: "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NZ2O6YCO2IZMZJELQGZYR2WAUNEDLYV6/",
               },
               {
                  name: "https://security.gentoo.org/glsa/202311-09",
                  refsource: "MISC",
                  url: "https://security.gentoo.org/glsa/202311-09",
               },
            ],
         },
      },
      "nvd.nist.gov": {
         configurations: {
            CVE_data_version: "4.0",
            nodes: [
               {
                  children: [],
                  cpe_match: [
                     {
                        cpe23Uri: "cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*",
                        cpe_name: [],
                        versionEndExcluding: "1.20.5",
                        versionStartIncluding: "1.20.0",
                        vulnerable: true,
                     },
                     {
                        cpe23Uri: "cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*",
                        cpe_name: [],
                        versionEndExcluding: "1.19.10",
                        vulnerable: true,
                     },
                  ],
                  operator: "OR",
               },
               {
                  children: [],
                  cpe_match: [
                     {
                        cpe23Uri: "cpe:2.3:o:fedoraproject:fedora:38:*:*:*:*:*:*:*",
                        cpe_name: [],
                        vulnerable: true,
                     },
                  ],
                  operator: "OR",
               },
            ],
         },
         cve: {
            CVE_data_meta: {
               ASSIGNER: "security@golang.org",
               ID: "CVE-2023-29405",
            },
            data_format: "MITRE",
            data_type: "CVE",
            data_version: "4.0",
            description: {
               description_data: [
                  {
                     lang: "en",
                     value: "The go command may execute arbitrary code at build time when using cgo. This may occur when running \"go get\" on a malicious module, or when running any other command which builds untrusted code. This is can by triggered by linker flags, specified via a \"#cgo LDFLAGS\" directive. Flags containing embedded spaces are mishandled, allowing disallowed flags to be smuggled through the LDFLAGS sanitization by including them in the argument of another flag. This only affects usage of the gccgo compiler.",
                  },
               ],
            },
            problemtype: {
               problemtype_data: [
                  {
                     description: [
                        {
                           lang: "en",
                           value: "CWE-74",
                        },
                     ],
                  },
               ],
            },
            references: {
               reference_data: [
                  {
                     name: "https://go.dev/issue/60306",
                     refsource: "MISC",
                     tags: [
                        "Issue Tracking",
                     ],
                     url: "https://go.dev/issue/60306",
                  },
                  {
                     name: "https://pkg.go.dev/vuln/GO-2023-1842",
                     refsource: "MISC",
                     tags: [
                        "Vendor Advisory",
                     ],
                     url: "https://pkg.go.dev/vuln/GO-2023-1842",
                  },
                  {
                     name: "https://groups.google.com/g/golang-announce/c/q5135a9d924/m/j0ZoAJOHAwAJ",
                     refsource: "MISC",
                     tags: [
                        "Mailing List",
                        "Third Party Advisory",
                     ],
                     url: "https://groups.google.com/g/golang-announce/c/q5135a9d924/m/j0ZoAJOHAwAJ",
                  },
                  {
                     name: "https://go.dev/cl/501224",
                     refsource: "MISC",
                     tags: [
                        "Patch",
                     ],
                     url: "https://go.dev/cl/501224",
                  },
                  {
                     name: "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XBS3IIK6ADV24C5ULQU55QLT2UE762ZX/",
                     refsource: "MISC",
                     tags: [
                        "Mailing List",
                     ],
                     url: "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XBS3IIK6ADV24C5ULQU55QLT2UE762ZX/",
                  },
                  {
                     name: "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NZ2O6YCO2IZMZJELQGZYR2WAUNEDLYV6/",
                     refsource: "MISC",
                     tags: [],
                     url: "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NZ2O6YCO2IZMZJELQGZYR2WAUNEDLYV6/",
                  },
                  {
                     name: "https://security.gentoo.org/glsa/202311-09",
                     refsource: "",
                     tags: [],
                     url: "https://security.gentoo.org/glsa/202311-09",
                  },
               ],
            },
         },
         impact: {
            baseMetricV3: {
               cvssV3: {
                  attackComplexity: "LOW",
                  attackVector: "NETWORK",
                  availabilityImpact: "HIGH",
                  baseScore: 9.8,
                  baseSeverity: "CRITICAL",
                  confidentialityImpact: "HIGH",
                  integrityImpact: "HIGH",
                  privilegesRequired: "NONE",
                  scope: "UNCHANGED",
                  userInteraction: "NONE",
                  vectorString: "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
                  version: "3.1",
               },
               exploitabilityScore: 3.9,
               impactScore: 5.9,
            },
         },
         lastModifiedDate: "2023-11-25T11:15Z",
         publishedDate: "2023-06-08T21:15Z",
      },
   },
}


Log in or create an account to share your comment.

Security Advisory comment format.

This schema specifies the format of a comment related to a security advisory.

UUIDv4 of the comment
UUIDv4 of the Vulnerability-Lookup instance
When the comment was created originally
When the comment was last updated
Title of the comment
Description of the comment
The identifier of the vulnerability (CVE ID, GHSA-ID, PYSEC ID, etc.).



Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.