Integer Overflow or Wraparound Affecting zed package, versions <1.2.3-r0


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.01% (4th 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-WOLFILATEST-ZED-16712001
  • published16 May 2026
  • disclosed8 May 2026

Introduced: 8 May 2026

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

How to fix?

Upgrade Wolfi zed to version 1.2.3-r0 or higher.

NVD Description

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

Grid is a data structure grid for rust. From version 0.17.0 to before version 1.0.1, an integer overflow in Grid::expand_rows() can corrupt the relationship between the grid’s logical dimensions and its backing storage. After the internal invariant is broken, the safe API get() may invoke get_unchecked() with an invalid index, resulting in Undefined Behavior. This issue has been patched in version 1.0.1.