FreeBSD : go -- net/http: ReadRequest can stack overflow due to recursion with very large headers (7f242313-aea5-11eb-8151-67f74cf7c704)

medium Nessus Plugin ID 149346

Language:

Synopsis

The remote FreeBSD host is missing a security-related update.

Description

The Go project reports :

http.ReadRequest can stack overflow due to recursion when given a request with a very large header (~8-10MB depending on the architecture). A http.Server which overrides the default max header of 1MB by setting Server.MaxHeaderBytes to a much larger value could also be vulnerable in the same way.

Solution

Update the affected package.

See Also

https://github.com/golang/go/issues/45710

http://www.nessus.org/u?79cda645

Plugin Details

Severity: Medium

ID: 149346

File Name: freebsd_pkg_7f242313aea511eb815167f74cf7c704.nasl

Version: 1.4

Type: local

Published: 5/7/2021

Updated: 6/15/2021

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Low

Score: 3.6

CVSS v2

Risk Factor: Low

Base Score: 2.6

Temporal Score: 1.9

Vector: CVSS2#AV:N/AC:H/Au:N/C:N/I:N/A:P

CVSS Score Source: CVE-2021-31525

CVSS v3

Risk Factor: Medium

Base Score: 5.9

Temporal Score: 5.2

Vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

CPE: p-cpe:/a:freebsd:freebsd:go, cpe:/o:freebsd:freebsd

Required KB Items: Host/local_checks_enabled, Host/FreeBSD/release, Host/FreeBSD/pkg_info

Exploit Ease: No known exploits are available

Patch Publication Date: 5/6/2021

Vulnerability Publication Date: 4/22/2021

Reference Information

CVE: CVE-2021-31525