Skip to content
OpenAdvisories
Critical · 9.8 CVE-2016-4658 EUVD-2018-0397GHSA-fr52-4hqw-p27f

Nokogiri does not forbid namespace nodes in XPointer ranges

Published Sep 25, 2016 · Updated Oct 14, 2026 · Assigned by apple

Description

xpointer.c in libxml2 before 2.9.5 (as used in Apple iOS before 10, OS X before 10.12, tvOS before 10, and watchOS before 3, and other products) does not forbid namespace nodes in XPointer ranges, which allows remote attackers to execute arbitrary code or cause a denial of service (use-after-free and memory corruption) via a crafted XML document.

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.

ReleasePackageFixed inAdvisory
Debian 14 libxml2 2.9.4+dfsg1-2.1 —
Debian 13 libxml2 2.9.4+dfsg1-2.1 —
Debian 12 libxml2 2.9.4+dfsg1-2.1 —
Debian 8 libxml2 2.9.1+dfsg1-5+deb8u4 DSA-3744-1
Debian 7 libxml2 2.8.0+dfsg1-7+wheezy7 DLA-691-1
ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS libxml2 2.9.3+dfsg1-1ubuntu0.2 USN-3235-1
Ubuntu 14.04 LTS libxml2 2.9.1+dfsg1-3ubuntu4.9 USN-3235-1
ReleasePackageFixed inAdvisory
RHEL 7 libxml2 +3 2.9.1-6.el7_9.6 RHSA-2021:3810
ReleasePackageFixed inAdvisory
SLES 12 SP2 libxml2 +1 2.9.4-33.1 SUSE-SU-2017:0380-1
SLES 12 SP1 libxml2 +1 2.9.1-26.3.1 SUSE-SU-2016:2650-1
SLES 11 SP4 libxml2 2.7.6-0.50.1 SUSE-SU-2016:2652-1
SLES 11 SP4 libxml2-python 2.7.6-0.50.4 SUSE-SU-2016:2652-1
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 12 SP2 libxml2 +1 2.9.4-33.1 SUSE-SU-2017:0380-1
SLES for SAP 12 SP1 libxml2 +1 2.9.1-26.3.1 SUSE-SU-2016:2650-1
SLES for SAP 11 SP4 libxml2 2.7.6-0.50.1 SUSE-SU-2016:2652-1
SLES for SAP 11 SP4 libxml2-python 2.7.6-0.50.4 SUSE-SU-2016:2652-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed libxml2 2.9.12-1.2 openSUSE-SU-2024:11016-1
openSUSE Tumbleweed ruby3.2-rubygem-nokogiri 1.13.9-1.7 openSUSE-SU-2024:13165-1
openSUSE Tumbleweed rubygem-nokogiri 1.13.3-1.1 openSUSE-SU-2026:10356-1, openSUSE-SU-2025:14697-1, openSUSE-SU-2024:14174-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 libxml2 +3 2.9.1-6.amzn2.3.3 ALAS2-2019-1301

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 7 libxml2 +3 2.9.1-6.0.3.el7_9.6 ELSA-2021-3810

Affected packages

EcosystemPackageAffectedFixedRecord
RubyGems nokogiri < 1.7.1 1.7.1 GHSA-fr52-4hqw-p27f

Advisories 19

References