Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2022-23476— Unchecked return value from xmlTextReaderExpand in Nokogiri

Quick assessment

Affected
sparklemotion nokogiri
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Nokogiri是一款用于解析Ruby中HTML和XML的开源软件库。 Nokogiri 1.13.8和1.13.9版本存在安全漏洞,该漏洞源于其Nokogiri::XML::Reader#attribute_hash方法中检查xmlTextReaderExpand的返回值失败导致在解析无效标记时出现空指针异常。

CVSS 7.5 · High EPSS 1.68% · P75

Possible ATT&CK Techniques 1 AI

T1499 · Endpoint Denial of Service
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2022-23476

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Unchecked return value from xmlTextReaderExpand in Nokogiri
Source: CVE Program / CVE List V5
Vulnerability Description
Nokogiri is an open source XML and HTML library for the Ruby programming language. Nokogiri `1.13.8` and `1.13.9` fail to check the return value from `xmlTextReaderExpand` in the method `Nokogiri::XML::Reader#attribute_hash`. This can lead to a null pointer exception when invalid markup is being parsed. For applications using `XML::Reader` to parse untrusted inputs, this may potentially be a vector for a denial of service attack. Users are advised to upgrade to Nokogiri `>= 1.13.10`. Users may be able to search their code for calls to either `XML::Reader#attributes` or `XML::Reader#attribute_hash` to determine if they are affected.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
未加检查的返回值
Source: CVE Program / CVE List V5
Vulnerability Title
Nokogiri 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Nokogiri是一款用于解析Ruby中HTML和XML的开源软件库。 Nokogiri 1.13.8和1.13.9版本存在安全漏洞,该漏洞源于其Nokogiri::XML::Reader#attribute_hash方法中检查xmlTextReaderExpand的返回值失败导致在解析无效标记时出现空指针异常。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
sparklemotion nokogiri >= 1.13.8, < 1.13.10 -

II. Public POCs for CVE-2022-23476

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2022-23476

登录查看更多情报信息。

Patches & Fixes for CVE-2022-23476 (2)

Vendor Advisories for CVE-2022-23476 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2022-23476

No comments yet


Leave a comment