BREACHSPIDER
CVE databaseVendorsIntelFeaturesDevelopersDocsPricingSign inStart free trial

CVE-2022-29181 in Apple Macos and 1 more product

High 8.2

Nokogiri is an open source XML and HTML library for Ruby. Nokogiri prior to version 1.13.6 does not type-check all inputs into the XML and HTML4 SAX parsers, allowing specially crafted untrusted inputs to cause illegal memory access errors (segfault) or reads from unrelated memory. Version 1.13.6 contains a patch fo...

Affects 2 products from 2 vendors. Facts below cite their sources.

CVSS 3.18.2
EPSS2.6%
EPSS percentile86th
FixUnknown

Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, no integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Apple Macos ≥ 13.0, < 13.1
Nokogiri Nokogiri < 1.13.6

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

Nokogiri is an open source XML and HTML library for Ruby. Nokogiri prior to version 1.13.6 does not type-check all inputs into the XML and HTML4 SAX parsers, allowing specially crafted untrusted inputs to cause illegal memory access errors (segfault) or reads from unrelated memory. Version 1.13.6 contains a patch for this issue. As a workaround, ensure the untrusted input is a `String` by calling `#to_s` or equivalent.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2022-29181
BreachSpider IDBS-2022-GLOBAL-317239-H
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
Published2022-05-20
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-241: CWE-241

CWE-843: CWE-843

Related attack patterns (CAPEC)

CAPEC-48 Passing Local Filenames to Functions That Expect a URL via CWE-241

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

Nokogiri, an open source XML and HTML library for Ruby, prior to version 1.13.6, is vulnerable to illegal memory access errors due to insufficient type-checking of inputs in the XML and HTML4 SAX parsers.

An attacker can exploit this vulnerability by providing specially crafted untrusted inputs to the XML and HTML4 SAX parsers, potentially leading to a segfault or unauthorized memory reads.

Questions

What is CVE-2022-29181?

Nokogiri, an open source XML and HTML library for Ruby, prior to version 1.13.6, is vulnerable to illegal memory access errors due to insufficient type-checking of inputs in the XML and HTML4 SAX parsers.

What is the CVSS score for CVE-2022-29181?

CVE-2022-29181 has CVSS 8.2 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H. EPSS: 2.6%.

Is CVE-2022-29181 actively exploited?

No confirmed active exploitation of CVE-2022-29181 as of 2026-09-25.

How do I remediate CVE-2022-29181?

Priority: HIGH.

What systems are affected by CVE-2022-29181?

CVE-2022-29181 affects Apple Macos; Nokogiri Nokogiri.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Apple","product":"Macos","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.