CVE-2020-28367

Aliases:GO-2022-0476BIT-golang-2020-28367
Modified
Published: 18 Nov 2020, 00:00
Last modified:04 Aug 2024, 16:33

Vulnerability Summary

Overall Risk (default)
medium
30/100
CVSS Score
7.5 HIGH
v3.1 (nvd)
EPSS Score
0.27% LOW
0% probability 0.00%
KEV
Not listed
Ransomware
No reports
Public exploits
None found
Dark Web
Not detected

Timeline

18 Nov 2020, 00:00
Published
Vulnerability first disclosed
04 Aug 2024, 16:33
Last Modified
Vulnerability information updated

Description

Code injection in the go command with cgo before Go 1.14.12 and Go 1.15.5 allows arbitrary code execution at build time via malicious gcc flags specified via a #cgo directive.

CVSS Metrics

  • v3.1HIGHScore: 7.5CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
  • v2.0MEDIUMScore: 5.1AV:N/AC:H/Au:N/C:P/I:P/A:P

EPSS Trends

Current EPSS score: 0.27% Percentile: 51%

Techniques & Countermeasures

  • CWE-94Improper Control of Generation of Code ('Code Injection')

    The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.

Affected Systems

  • go toolchaincmd/go

    < 1.14.12 | ≥ 1.15.0-0, < 1.15.5

  • golanggo

    < 1.14.12 | ≥ 1.15, < 1.15.5

  • Gotoolchain

    ≥ 1.15.0-0, < 1.15.5

References (6)