Integer Overflow or Wraparound Affecting ko package, versions <0.18.1-r17


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.05% (18th 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 Integer Overflow or Wraparound vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-CHAINGUARDLATEST-KO-17037164
  • published29 May 2026
  • disclosed22 May 2026

Introduced: 22 May 2026

NewCVE-2026-39834  (opens in a new tab)
CWE-190  (opens in a new tab)

How to fix?

Upgrade Chainguard ko to version 0.18.1-r17 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream ko package and not the ko package as distributed by Chainguard. See How to fix? for Chainguard relevant fixed versions and status.

When writing data larger than 4GB in a single Write call on an SSH channel, an integer overflow in the internal payload size calculation caused the write loop to spin indefinitely, sending empty packets without making progress. The size comparison now uses int64 to prevent truncation.