GitHub Advisoryadvisory · RubyGems

GHSA-242x-7cm6-4w8j Nokogiri affected by libxslt Use of Uninitialized Resource/Use After Free vulnerability

HIGH Published 2022-05-24 Modified 2026-06-09 Official page ↗
Aliases
CVE-2019-18197
Ecosystem
RubyGems
Packages
nokogiri
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Weaknesses
CWE-416, CWE-908
Reviewed
2023-07-07

Affected packages

• RubyGems nokogiri: < 1.10.5 → fixed in 1.10.5

Description

In xsltCopyText in transform.c in libxslt 1.1.33, a pointer variable isn't reset under certain circumstances. If the relevant memory area happened to be freed and reused in a certain way, a bounds check could fail and memory outside a buffer could be written to, or uninitialized data could be disclosed. Nokogiri prior to version 1.10.5 contains a vulnerable version of libxslt. Nokogiri version 1.10.5 upgrades the dependency to libxslt 1.1.34, which contains a patch for this issue.

Related

Alias · CVE (1)

  • CVE-2019-18197 In xsltCopyText in transform.c in libxslt 1.1.33, a pointer variable isn't reset under certain circumstances. vulnerability

Weakness · CWE (2)

  • CWE-416 Use After Free weakness
  • CWE-908 Use of Uninitialized Resource weakness

References