Loading...
Skip to main content

CVE-2019-5815 — Vulnerability in nokogiri — CVE Details

HIGH

Nokogiri implementation of libxslt vulnerable to heap corruption

Published May 24, 2022Updated February 16, 2024Source: osv

Summary

Type confusion in `xsltNumberFormatGetMultipleLevel` prior to libxslt 1.1.33 could allow attackers to potentially exploit heap corruption via crafted XML data. 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.

Advisory Timeline

  • First published May 24, 2022 (1602 days ago).
  • Last revised February 16, 2024 — 633 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Bundler
Update nokogiri to 1.10.5 or later
gem install nokogiri -v 1.10.5

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: rubygems (1).

PackageEcosystemAffectedFixed In
nokogiri
rubygems
1.0.0, 1.0.1, 1.0.2, 1.0.3 (+110 more)1.10.5

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 7.5 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Frequently Asked Questions

What is CVE-2019-5815?
Nokogiri implementation of libxslt vulnerable to heap corruption This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.5/10).
How do I check if my project is affected by CVE-2019-5815?
CVE-2019-5815 affects nokogiri. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2019-5815 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
7.5

High exploitability or significant impact. Prioritize remediation within days.

Also Known As

GHSA-vmfx-gcfq-wvm2

Related CVEs

  • CVE-2016-4658
    CRITICAL

    Nokogiri does not forbid namespace nodes in XPointer ranges

  • CVE-2018-25032
    HIGH

    Nokogiri affected by zlib's Out-of-bounds Write vulnerability

  • CVE-2021-3517
    HIGH

    Nokogiri contains libxml Out-of-bounds Write vulnerability

  • CVE-2025-71406
    HIGH

    Nokogiri updates packaged libxslt to v1.1.43 to resolve multiple CVEs

  • CVE-2017-5029
    HIGH

    Nokogiri implementation of libxslt lacks integer overflow checks

  • CVE-2013-6461
    MEDIUM

    Nokogiri vulnerable to DoS while parsing XML entities

  • CVE-2026-57437
    LOW

    Nokogiri: Possible Use-After-Free when directly using `NokogirI::XML::XPathContext` beyond document lifetime

  • CVE-2026-57435
    LOW

    Nokogiri: Possible Use-After-Free when setting an attribute value via `Nokogiri::XML::Attr#value=` or `#content=`

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies