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

    Threat Intelligence

    EPSS
    0.04% (6th 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 ID SNYK-GOLANG-GITHUBCOMCRIOCRIOSERVER-3185144
  • published 29 Dec 2022
  • disclosed 29 Dec 2022
  • credit Unknown

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
Expand this section

Snyk

Recommended
6.1 medium
  • Attack Vector (AV)
    Local
  • Attack Complexity (AC)
    High
  • Privileges Required (PR)
    High
  • User Interaction (UI)
    None
  • Scope (S)
    Changed
  • Confidentiality (C)
    Low
  • Integrity (I)
    High
  • Availability (A)
    None
Expand this section

NVD

7.8 high
Expand this section

Red Hat

7.8 high