Integer Overflow or Wraparound Affecting github.com/containerd/containerd/oci package, versions <1.6.38>=1.7.0-beta.0 <1.7.27


Severity

Recommended
0.0
medium
0
10

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

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-9479986
  • published18 Mar 2025
  • disclosed17 Mar 2025
  • creditBenjamin Koltermann, emxll

Introduced: 17 Mar 2025

NewCVE-2024-40635  (opens in a new tab)
CWE-190  (opens in a new tab)

How to fix?

Upgrade github.com/containerd/containerd/oci to version 1.6.38, 1.7.27 or higher.

Overview

Affected versions of this package are vulnerable to Integer Overflow or Wraparound in the WithUser() function, when handling large User ID values. If a UID:GID value provided is larger than MaxInt32, it can overflow to 0 and be treated as root. This allows a user to escalate privileges on the system in which the container is running.

CVSS Base Scores

version 4.0
version 3.1