Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. nokogiri
  4. ›
  5. CVE-2018-14404

CVE-2018-14404: Nokogiri NULL Pointer Dereference

January 17, 2019 (updated December 4, 2025)

A NULL pointer dereference vulnerability exists in the xpath.c:xmlXPathCompOpEval() function of libxml2 through 2.9.8 when parsing an invalid XPath expression in the XPATH_OP_AND or XPATH_OP_OR case. Applications processing untrusted XSL format inputs with the use of the libxml2 library may be vulnerable to a denial of service attack due to a crash of the application.

References

  • access.redhat.com/errata/RHSA-2019:1543
  • bugs.debian.org/cgi-bin/bugreport.cgi?bug=901817
  • bugzilla.redhat.com/show_bug.cgi?id=1595985
  • github.com/advisories/GHSA-6qvp-r6r3-9p7h
  • github.com/rubysec/ruby-advisory-db/blob/master/gems/nokogiri/CVE-2018-14404.yml
  • github.com/sparklemotion/nokogiri/issues/1785
  • gitlab.gnome.org/GNOME/libxml2/issues/10
  • lists.debian.org/debian-lts-announce/2018/09/msg00035.html
  • lists.debian.org/debian-lts-announce/2020/09/msg00009.html
  • nvd.nist.gov/vuln/detail/CVE-2018-14404
  • security.netapp.com/advisory/ntap-20190719-0002
  • usn.ubuntu.com/3739-1
  • usn.ubuntu.com/3739-2

Code Behaviors & Features

Detect and mitigate CVE-2018-14404 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.8.5

Fixed versions

  • 1.8.5

Solution

Upgrade to version 1.8.5 or above.

Impact 7.5 HIGH

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

Learn more about CVSS

Weakness

  • CWE-476: NULL Pointer Dereference

Source file

gem/nokogiri/CVE-2018-14404.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:35 +0000.