Heap-based Buffer Overflow Affecting nokogiri package, versions <1.16.5


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.04% (12th 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-RUBY-NOKOGIRI-7164639
  • published30 May 2024
  • disclosed13 May 2024
  • creditZhineng Zhong

Introduced: 13 May 2024

CVE-2024-34459  (opens in a new tab)
CWE-122  (opens in a new tab)

How to fix?

Upgrade nokogiri to version 1.16.5 or higher.

Overview

nokogiri is a gem for parsing HTML, XML, SAX, and Reader.

Affected versions of this package are vulnerable to Heap-based Buffer Overflow through the xmlHTMLPrintFileContext function in xmllint.c. An attacker can read memory contents that may contain sensitive data by triggering a buffer over-read condition.

CVSS Scores

version 3.1