Use After Free Affecting ruby3.4-rails-7.2 package, versions <7.2.4-r2


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.16% (5th 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-CHAINGUARDLATEST-RUBY34RAILS72-22525765
  • published13 Nov 2026
  • disclosed10 Nov 2026

Introduced: 10 Nov 2026

NewCVE-2026-126064  (opens in a new tab)
CWE-416  (opens in a new tab)

How to fix?

Upgrade Chainguard ruby3.4-rails-7.2 to version 7.2.4-r2 or higher.

NVD Description

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

Nokogiri is an open source XML and HTML library for the Ruby programming language. Prior to 1.19.5, the CRuby native extension can leave Ruby wrappers pointing to freed memory when Nokogiri::XML::Node#[]= or Nokogiri::XML::Node#lang= replaces an existing attribute value after code has accessed the attribute's child nodes. Replacing the value frees native child nodes while their wrappers remain reachable, and later use of those wrappers can cause an invalid read or process segfault. JRuby is not affected. This issue is fixed in version 1.19.5.