Privilege Escalation Affecting github.com/containers/psgo/internal/proc package, versions <1.7.2


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.21% (59th 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-GOLANG-GITHUBCOMCONTAINERSPSGOINTERNALPROC-2766476
  • published18 Apr 2022
  • disclosed17 Apr 2022
  • creditAleksa Sarai

Introduced: 17 Apr 2022

CVE-2022-1227  (opens in a new tab)
CWE-264  (opens in a new tab)

How to fix?

Upgrade github.com/containers/psgo/internal/proc to version 1.7.2 or higher.

Overview

Affected versions of this package are vulnerable to Privilege Escalation when running 'podman top' triggers the nsenter binary inside a container. Podman top doesn't join the user namespace of the container. This could allow an attacker to create a malicious nsenter binary that provides erroneous results to podman top, make syscalls, and other operations beyond the container's normally allowed.

Note: This issue affects containers that utilize user namespaces.

CVSS Scores

version 3.1