Rapid7 Vulnerability & Exploit Database

FreeBSD: VID-DB4B2F27-252A-11EB-865C-00155D646400 (CVE-2020-28367): go -- math/big: panic during recursive division of very large numbers; cmd/go: arbitrary code execution at build time through cgo

Free InsightVM Trial No Credit Card Necessary
2024 Attack Intel Report Latest research by Rapid7 Labs
Back to Search

FreeBSD: VID-DB4B2F27-252A-11EB-865C-00155D646400 (CVE-2020-28367): go -- math/big: panic during recursive division of very large numbers; cmd/go: arbitrary code execution at build time through cgo

Severity
5
CVSS
(AV:N/AC:H/Au:N/C:P/I:P/A:P)
Published
11/09/2020
Created
11/17/2020
Added
11/13/2020
Modified
12/16/2020

Description

Details for this vulnerability have not been published by NIST at this point. Descriptions from software vendor advisories for this issue are provided below.

From VID-DB4B2F27-252A-11EB-865C-00155D646400:

The Go project reports:

A number of math/big.Int methods (Div, Exp, DivMod, Quo, Rem,

QuoRem, Mod, ModInverse, ModSqrt, Jacobi, and GCD) can panic

when provided crafted large inputs. For the panic to happen,

the divisor or modulo argument must be larger than 3168 bits

(on 32-bit architectures) or 6336 bits (on 64-bit architectures).

Multiple math/big.Rat methods are similarly affected.

The go command may execute arbitrary code at build time when

cgo is in use. This may occur when running go get on a malicious

package, or any other command that builds untrusted code. This

can be caused by a malicious gcc flags specified via a #cgo

directive.

The go command may execute arbitrary code at build time when

cgo is in use. This may occur when running go get on a malicious

package, or any other command that builds untrusted code. This

can be caused by malicious unquoted symbol names.

Solution(s)

  • freebsd-upgrade-package-go

insightVM

Advanced vulnerability management analytics and reporting.
Key Features
  • Lightweight Endpoint Agent
  • Live Dashboards
  • Real Risk Prioritization
  • IT-Integrated Remediation Projects
  • Cloud, Virtual, and Container Assessment
  • Integrated Threat Feeds
  • Easy-to-Use RESTful API
  • Automation-Assisted Patching
  • Automated Containment
Free InsightVM Trial View All Features

With Rapid7 live dashboards, I have a clear view of all the assets on my network, which ones can be exploited, and what I need to do in order to reduce the risk in my environment in real-time. No other tool gives us that kind of value and insight.

– Scott Cheney, Manager of Information Security, Sierra View Medical Center

;