CVE-2023-24531 Affecting golang-1.17 package, versions <1.17.13-3ubuntu1.2


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.05% (18th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UBUNTU2204-GOLANG117-7417912
  • published27 Sept 2024
  • disclosed2 Jul 2024

Introduced: 2 Jul 2024

CVE-2023-24531  (opens in a new tab)

How to fix?

Upgrade Ubuntu:22.04 golang-1.17 to version 1.17.13-3ubuntu1.2 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream golang-1.17 package and not the golang-1.17 package as distributed by Ubuntu. See How to fix? for Ubuntu:22.04 relevant fixed versions and status.

Command go env is documented as outputting a shell script containing the Go environment. However, go env doesn't sanitize values, so executing its output as a shell script can cause various bad bahaviors, including executing arbitrary commands or inserting new environment variables. This issue is relatively minor because, in general, if an attacker can set arbitrary environment variables on a system, they have better attack vectors than making "go env" print them out.