Rapid7 Vulnerability & Exploit Database

FreeBSD: VID-26B1100A-5A27-11ED-ABFE-29AC76EC31B5 (CVE-2022-41716): go -- syscall, os/exec: unsanitized NUL in environment variables

Free InsightVM Trial No Credit Card Necessary
Watch Demo See how it all works
Back to Search

FreeBSD: VID-26B1100A-5A27-11ED-ABFE-29AC76EC31B5 (CVE-2022-41716): go -- syscall, os/exec: unsanitized NUL in environment variables

Severity
4
CVSS
(AV:L/AC:M/Au:N/C:P/I:P/A:P)
Published
10/17/2022
Created
11/08/2022
Added
11/04/2022
Modified
11/11/2022

Description

Due to unsanitized NUL values, attackers may be able to maliciously set environment variables on Windows. In syscall.StartProcess and os/exec.Cmd, invalid environment variable values containing NUL values are not properly checked for. A malicious environment variable value can exploit this behavior to set a value for a different environment variable. For example, the environment variable string "A=B\x00C=D" sets the variables "A=B" and "C=D".

Solution(s)

  • freebsd-upgrade-package-go118
  • freebsd-upgrade-package-go119

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

;