CVE-2022-40304: An issue was discovered in libxml2 before 2.10.3.
Noroxi assessment
Priority: Monitor (action score 33/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 5.8% (FIRST EPSS); higher than 93.1% of all records.
- Someone with local access to the system can trigger it. No account or password is required. A user must open a link or visit a page. No special conditions are required; it is repeatable.
- Fixed version: libxml2 (AlmaLinux:8) 2.9.7-15.el8_7.1; libxml2-devel (AlmaLinux:8) 2.9.7-15.el8_7.1; python3-libxml2 (AlmaLinux:8) 2.9.7-15.el8_7.1.
Low priority for now. Upgrade to libxml2 (AlmaLinux:8) 2.9.7-15.el8_7.1; libxml2-devel (AlmaLinux:8) 2.9.7-15.el8_7.1; python3-libxml2 (AlmaLinux:8) 2.9.7-15.el8_7.1 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
An issue was discovered in libxml2 before 2.10.3. Certain invalid XML entity definitions can corrupt a hash table key, potentially leading to subsequent logic errors. In one case, a double-free can be provoked.
- Published
- Nov 23, 2022
- Updated
- Oct 14, 2026
- EPSS
- 5.8% · 93th percentile
- CWE
- CWE-415
Report tools
Action score
33
Monitor
Low priority for now.
- CVSS
- 31 / 40 · 7.8 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 2 / 30 · 5.8%
CISA SSVC decision
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
Vulnrichment: CISA's decision-tree inputs.
CNA vs NVD score
- NVD
- 7.8
- CNA · mitre
- 7.8
- agree
The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Running WordPress? Scan your site free with WP Lens
Noroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| xmlsoft | libxml2 | cpe:2.3:a:xmlsoft:libxml2 |
| netapp | active iq unified manager | cpe:2.3:a:netapp:active_iq_unified_manager |
| netapp | clustered data ontap | cpe:2.3:a:netapp:clustered_data_ontap |
| netapp | clustered data ontap antivirus connector | cpe:2.3:a:netapp:clustered_data_ontap_antivirus_connector |
| netapp | manageability software development kit | cpe:2.3:a:netapp:manageability_software_development_kit |
| netapp | smi-s provider | cpe:2.3:a:netapp:smi-s_provider |
| netapp | snapmanager | cpe:2.3:a:netapp:snapmanager |
| netapp | h300s firmware | cpe:2.3:o:netapp:h300s_firmware |
| netapp | h300s | cpe:2.3:h:netapp:h300s |
| netapp | h500s firmware | cpe:2.3:o:netapp:h500s_firmware |
| netapp | h500s | cpe:2.3:h:netapp:h500s |
| netapp | h700s firmware | cpe:2.3:o:netapp:h700s_firmware |
and 10 more
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- apple ipadosbefore 15.7.2
- apple iphone osbefore 15.7.2
- apple macos11.0 and later · before 11.7.2
- apple macos12.0 and later · before 12.6.2
- apple tvosbefore 16.2
- apple watchosbefore 9.2
- netapp active iq unified managerall versions
- netapp clustered data ontapall versions
- netapp clustered data ontap antivirus connectorall versions
- netapp h300s firmwareall versions
- netapp h410c firmwareall versions
- netapp h410s firmwareall versions
- netapp h500s firmwareall versions
- netapp h700s firmwareall versions
- netapp manageability software development kitall versions
- netapp smi-s providerall versions
- netapp snapmanagerall versions
- xmlsoft libxml2before 2.10.3
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| AlmaLinux:8 | libxml2 | before 2.9.7-15.el8_7.1 | 2.9.7-15.el8_7.1 |
| AlmaLinux:8 | libxml2-devel | before 2.9.7-15.el8_7.1 | 2.9.7-15.el8_7.1 |
| AlmaLinux:8 | python3-libxml2 | before 2.9.7-15.el8_7.1 | 2.9.7-15.el8_7.1 |
| AlmaLinux:9 | libxml2 | before 2.9.13-3.el9_1 | 2.9.13-3.el9_1 |
| AlmaLinux:9 | libxml2-devel | before 2.9.13-3.el9_1 | 2.9.13-3.el9_1 |
| AlmaLinux:9 | python3-libxml2 | before 2.9.13-3.el9_1 | 2.9.13-3.el9_1 |
| Alpine:v3.13 | libxml2 | before 2.9.14-r2 | 2.9.14-r2 |
| Alpine:v3.17 | libxml2 | before 2.10.3-r0 | 2.10.3-r0 |
| Debian:10 | libxml2 | before 2.9.4+dfsg1-7+deb10u5 | 2.9.4+dfsg1-7+deb10u5 |
| Debian:11 | libxml2 | before 2.9.10+dfsg-6.7+deb11u3 | 2.9.10+dfsg-6.7+deb11u3 |
| Debian:12 | libxml2 | before 2.9.14+dfsg-1.1 | 2.9.14+dfsg-1.1 |
| openSUSE:Leap 15.4 | libxml2 | before 2.9.14-150400.5.10.1 | 2.9.14-150400.5.10.1 |
| openSUSE:Leap 15.4 | libxml2-python | before 2.9.14-150400.5.10.1 | 2.9.14-150400.5.10.1 |
| openSUSE:Leap Micro 5.2 | libxml2 | before 2.9.7-150000.3.51.1 | 2.9.7-150000.3.51.1 |
| openSUSE:Leap Micro 5.2 | python-libxml2-python | before 2.9.7-150000.3.51.1 | 2.9.7-150000.3.51.1 |
| openSUSE:Tumbleweed | libxml2 | before 2.10.3-1.1 | 2.10.3-1.1 |
| Red Hat:enterprise_linux:8::appstream | libxml2-debuginfo | before 0:2.9.7-15.el8_7.1 | 0:2.9.7-15.el8_7.1 |
| Red Hat:enterprise_linux:8::appstream | libxml2-debugsource | before 0:2.9.7-15.el8_7.1 | 0:2.9.7-15.el8_7.1 |
| Red Hat:enterprise_linux:8::appstream | libxml2-devel | before 0:2.9.7-15.el8_7.1 | 0:2.9.7-15.el8_7.1 |
| Red Hat:enterprise_linux:8::appstream | python3-libxml2-debuginfo | before 0:2.9.7-15.el8_7.1 | 0:2.9.7-15.el8_7.1 |
| Red Hat:enterprise_linux:8::baseos | libxml2 | before 0:2.9.7-15.el8_7.1 | 0:2.9.7-15.el8_7.1 |
| Red Hat:enterprise_linux:8::baseos | python3-libxml2 | before 0:2.9.7-15.el8_7.1 | 0:2.9.7-15.el8_7.1 |
| Red Hat:enterprise_linux:9::appstream | libxml2-debuginfo | before 0:2.9.13-3.el9_1 | 0:2.9.13-3.el9_1 |
| Red Hat:enterprise_linux:9::appstream | libxml2-debugsource | before 0:2.9.13-3.el9_1 | 0:2.9.13-3.el9_1 |
+18
Same product
xmlsoft: all recordsOther highest-scoring records for the same primary product.
- CVE-2008-3529Heap-based buffer overflow in the xmlParseAttValueComplex function in parser.c in libxml2 before 2.7.0 allows context-dependent attackers to47Plan
- CVE-2017-7376Buffer overflow in libxml2 allows remote attackers to execute arbitrary code by leveraging an incorrect limit for port values when handling 46Plan
- CVE-2022-40303An issue was discovered in libxml2 before 2.10.3.42Plan
Published before and after this one in the same product
- ← EarlierCVE-2022-29824May 3, 2022 · In libxml2 before 2.9.14, several buffer handling functions in buf.c (xmlBuf*) and tree.c (xmlBuffer*) don't check for integer overflows.27Monitor
- ← EarlierCVE-2016-3709Jul 28, 2022 · Possible cross-site scripting vulnerability in libxml after commit 960f0e2.24Monitor
- Later →CVE-2023-28484Apr 24, 2023 · In libxml2 before 2.10.4, parsing of certain invalid XSD schemas can lead to a NULL pointer dereference and subsequently a segfault.26Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| almalinux:libxml2 | 2.9.7-15.el8_7.1 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:libxml2-devel | 2.9.7-15.el8_7.1 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:python3-libxml2 | 2.9.7-15.el8_7.1 · AlmaLinux:8 | Package registry (OSV) |
| alpine:libxml2 | 2.9.14-r2 · Alpine:v3.13 | Package registry (OSV) |
| debian:libxml2 | 2.9.14+dfsg-1.1 · Debian:12 | Package registry (OSV) |
| opensuse:libxml2 | 2.9.14-150400.5.10.1 · openSUSE:Leap 15.4 | Package registry (OSV) |
| opensuse:libxml2-python | 2.9.14-150400.5.10.1 · openSUSE:Leap 15.4 | Package registry (OSV) |
| opensuse:python-libxml2-python | 2.9.7-150000.3.51.1 · openSUSE:Leap Micro 5.2 | Package registry (OSV) |
| red hat:libxml2 | 0:2.9.7-15.el8_7.1 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:libxml2-debuginfo | 0:2.9.7-15.el8_7.1 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:libxml2-debugsource | 0:2.9.7-15.el8_7.1 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:libxml2-devel | 0:2.9.7-15.el8_7.1 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:python3-libxml2 | 0:2.9.7-15.el8_7.1 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:python3-libxml2-debuginfo | 0:2.9.7-15.el8_7.1 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| rocky linux:libxml2 | 0:2.9.7-15.el8_7.1 · Rocky Linux:8 | Package registry (OSV) |
| suse:libxml2 | 2.9.14-150400.5.10.1 · SUSE:Linux Enterprise Micro 5.3 | Package registry (OSV) |
| suse:libxml2-python | 2.9.14-150400.5.10.1 · SUSE:Linux Enterprise Micro 5.3 | Package registry (OSV) |
| suse:python-libxml2 | 2.9.4-46.59.3 · SUSE:OpenStack Cloud 9 | Package registry (OSV) |
| suse:python-libxml2-python | 2.9.7-150000.3.51.1 · SUSE:Linux Enterprise Module for Basesystem 15 SP3 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
No history yet (it accumulates with the daily EPSS job).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
Technical details
Attack conditions
- Someone with local access to the system can trigger it.
- No account or password is required.
- A user must open a link or visit a page.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- high · data can be read
- Integrity
- high · data or configuration can be modified
- Availability
- high · the service can be disrupted
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality impact
- High
- Integrity impact
- High
- Availability impact
- High
Weakness class (CWE)
CWE-415 · Double FreeCVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
MITRE has no CAPEC/ATT&CK mapping for this CWE.
Change log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (19 more)Show less
- seclists.org/fulldisclosure/2022/Dec/24
- seclists.org/fulldisclosure/2022/Dec/25
- seclists.org/fulldisclosure/2022/Dec/26
- seclists.org/fulldisclosure/2022/Dec/27
- gitlab.gnome.org/GNOME/libxml2/-/commit/1b41ec4e9433b05bb0376be4725804c54ef1d80b
- gitlab.gnome.org/GNOME/libxml2/-/tags
- gitlab.gnome.org/GNOME/libxml2/-/tags/v2.10.3
- security.netapp.com/advisory/ntap-20221209-0003/
- support.apple.com/kb/HT213531
- support.apple.com/kb/HT213533
- support.apple.com/kb/HT213534
- support.apple.com/kb/HT213535
- support.apple.com/kb/HT213536
- cert-portal.siemens.com/productcert/html/ssa-337522.html
- cert-portal.siemens.com/productcert/html/ssa-341067.html
- cert-portal.siemens.com/productcert/html/ssa-398330.html
- cert-portal.siemens.com/productcert/html/ssa-556635.html
- cert-portal.siemens.com/productcert/html/ssa-625862.html
- cert-portal.siemens.com/productcert/html/ssa-769027.html
Vendor advisories and official records. Exploit/PoC links are deliberately left out.