Improper Input Validation Affecting github.com/cri-o/cri-o/server package, versions <1.26.0


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

EPSS
0.04% (5th 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 Learn

Learn about Improper Input Validation vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMCRIOCRIOSERVER-3185144
  • published29 Dec 2022
  • disclosed29 Dec 2022
  • creditUnknown

Introduced: 29 Dec 2022

CVE-2022-4318  (opens in a new tab)
CWE-20  (opens in a new tab)

How to fix?

Upgrade github.com/cri-o/cri-o/server to version 1.26.0 or higher.

Overview

github.com/cri-o/cri-o/server is an OCI-based implementation of Kubernetes Container Runtime Interface

Affected versions of this package are vulnerable to Improper Input Validation such that it is possible to craft an environment variable with newlines to add entries to a container's /etc/passwd. It is possible to circumvent admission validation of username/UID by adding such an entry.

Workaround

Additional security controls like SELinux can prevent any damage a container is able to do with root on the host. Using SELinux is recommended because this class of attack is already possible by manually editing the container's /etc/passwd.

CVSS Scores

version 3.1