Access of Resource Using Incompatible Type ('Type Confusion') Affecting github.com/containerd/containerd/oci package, versions >=1.7.27 <1.7.32>=2.0.4 <2.0.9>=2.1.0-beta.0 <2.2.4>=2.3.0-beta.0 <2.3.1


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.16% (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 IDSNYK-GOLANG-GITHUBCOMCONTAINERDCONTAINERDOCI-16795347
  • published22 May 2026
  • disclosed21 May 2026
  • creditLei Wang

Introduced: 21 May 2026

CVE-2026-46680  (opens in a new tab)
CWE-843  (opens in a new tab)

How to fix?

Upgrade github.com/containerd/containerd/oci to version 1.7.32, 2.0.9, 2.2.4, 2.3.1 or higher.

Overview

Affected versions of this package are vulnerable to Access of Resource Using Incompatible Type ('Type Confusion') via improper handling of numeric User directives in container configuration. An attacker can gain elevated privileges by supplying a crafted image with an /etc/passwd file that maps a large numeric string to root, allowing the container to run as root even when restrictions are in place.

Workaround

This vulnerability can be mitigated by ensuring only trusted images are used, restricting image import permissions to trusted users, or enforcing a specific numeric runAsUser in the Kubernetes Pod securityContext.

PoC

A bug was found in containerd where containers launched with a numeric User directive that cannot be parsed as a 32-bit integer are incorrectly treated as a username. If a crafted image provides an /etc/passwd file mapping this large numeric string to root, the container ultimately runs as root (UID 0). This allows the Kubernetes runAsNonRoot restriction to be bypassed, causing unexpected behavior for environments that require containers to run as a non-root user.

CVSS Base Scores

version 4.0
version 3.1