Description
Nokogiri versions before 1.19.3 contain a memory leak in the XSLT Stylesheet transform method when processing Ruby strings containing null bytes. Attackers can exploit this by passing attacker-controlled input with null bytes to transform parameters, causing heap allocations to leak and enabling denial of service against long-running processes.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| sparklemotion | nokogiri | < 1.19.3 | 1.19.3 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | ruby-nokogiri | 1.19.3+dfsg-1 | — |
| Debian 13 | ruby-nokogiri | No fix yet | — |
| Debian 12 | ruby-nokogiri | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.04 LTS | ruby-nokogiri | No fix yet | — |
| Ubuntu 24.04 LTS | ruby-nokogiri | No fix yet | — |
| Ubuntu 18.04 LTS | ruby-nokogiri | No fix yet | — |
| Ubuntu 16.04 LTS | ruby-nokogiri | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 22.04 LTS | ruby-nokogiri | No fix yet | — |
| Ubuntu Pro 20.04 LTS | ruby-nokogiri | No fix yet | — |
| Ubuntu Pro 14.04 LTS | ruby-nokogiri | No fix yet | — |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | logstash-9.3 +2 | No fix yet | — |
| Wolfi rolling | ruby3.2-kube-logging-operator-fluentd-outputs +1 | 6.5.0-r2 | — |
| Wolfi rolling | ruby3.2-rails-8.1 +1 | 8.1.3-r3 | — |
| Wolfi rolling | ruby3.3-rails-8.1 +1 | 8.1.3-r4 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| RubyGems | nokogiri | < 1.19.3 | 1.19.3 | GHSA-v2fc-qm4h-8hqv |
References
- GitHub Security Advisory (GHSA-v2fc-qm4h-8hqv) vendor-advisory
- VulnCheck Advisory: Nokogiri before 1.19.3 Memory Leak via XSLT Transform third-party-advisory