Skip to content

Commit aa60d90

Browse files
authored
Add GHSA-qv4q-mr5r-qprj for nokogiri (#524)
1 parent fdc00dc commit aa60d90

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

gems/nokogiri/GHSA-qv4q-mr5r-qprj.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
gem: nokogiri
2+
cve: 2022-23476
3+
ghsa: qv4q-mr5r-qprj
4+
url: https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-qv4q-mr5r-qprj
5+
title: "Unchecked return value from xmlTextReaderExpand"
6+
date: 2022-12-07
7+
description: |
8+
## Summary
9+
10+
Nokogiri `1.13.8, 1.13.9` fails 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.
11+
12+
For applications using `XML::Reader` to parse untrusted inputs, this may potentially be a vector for a denial of service attack.
13+
14+
15+
## Mitigation
16+
17+
Upgrade to Nokogiri `>= 1.13.10`.
18+
19+
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.
20+
21+
22+
## Severity
23+
24+
The Nokogiri maintainers have evaluated this as [High Severity 7.5 (CVSS3.1)](https://www.first.org/cvss/calculator/3.1#CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
25+
26+
27+
## References
28+
29+
- [CWE - CWE-252: Unchecked Return Value (4.9)](https://cwe.mitre.org/data/definitions/252.html)
30+
- [CWE - CWE-476: NULL Pointer Dereference (4.9)](https://cwe.mitre.org/data/definitions/476.html)
31+
32+
33+
## Credit
34+
35+
This vulnerability was responsibly reported by @davidwilemski.
36+
cvss_v3: 7.5
37+
unaffected_versions:
38+
- "<= 1.13.7"
39+
patched_versions:
40+
- ">= 1.13.10"

0 commit comments

Comments
 (0)