CVE-2022-23308: valid.c in libxml2 before 2.9.13 has a use-after-free of ID and IDREF attributes.
Noroxi assessment
Priority: Monitor (action score 32/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.1% (FIRST EPSS); higher than 92.3% of all records.
- Anyone who can reach it over the internet can trigger it. No account or password is required. No user action is required. No special conditions are required; it is repeatable.
- According to CISA the attack is automatable: targets can be found by mass scanning.
- Fixed version: libxml2-devel (AlmaLinux:8) 2.9.7-12.el8_5; libxml2 (Alpine:v3.12) 2.9.13-r0; libxml2 (Debian:12) 2.9.13+dfsg-1.
- Mentioned 2 times in Turkish national cyber security advisories (siberguvenlik.gov.tr).
Low priority for now. Upgrade to libxml2-devel (AlmaLinux:8) 2.9.7-12.el8_5; libxml2 (Alpine:v3.12) 2.9.13-r0; libxml2 (Debian:12) 2.9.13+dfsg-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
- Published
- Feb 26, 2022
- Updated
- Oct 14, 2026
- EPSS
- 5.1% · 92th percentile
- CWE
- CWE-416
Report tools
Action score
32
Monitor
Low priority for now.
- CVSS
- 30 / 40 · 7.5 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 2 / 30 · 5.1%
CISA SSVC decision
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
Vulnrichment: CISA's decision-tree inputs.
CNA vs NVD score
- NVD
- 7.5
- CNA · mitre
- 7.5
- 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 |
| fedoraproject | fedora | cpe:2.3:o:fedoraproject:fedora |
| debian | debian linux | cpe:2.3:o:debian:debian_linux |
| apple | ipados | cpe:2.3:o:apple:ipados |
| apple | iphone os | cpe:2.3:o:apple:iphone_os |
| apple | mac os x | cpe:2.3:o:apple:mac_os_x |
| apple | macos | cpe:2.3:o:apple:macos |
| apple | tvos | cpe:2.3:o:apple:tvos |
| apple | watchos | cpe:2.3:o:apple:watchos |
| 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 |
and 32 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.5
- apple iphone osbefore 15.5
- apple mac os x10.15.0 and later · before 10.15.7
- apple mac os x10.15.7
- apple macos12.0 and later · before 12.4
- apple macos11.6.0 and later · before 11.6.6
- apple tvosbefore 15.5
- apple watchosbefore 8.6
- debian debian linux9.0
- fedoraproject fedora34
- netapp active iq unified managerall versions
- netapp bootstrap osall versions
- netapp clustered data ontapall versions
- netapp clustered data ontap antivirus connectorall versions
- netapp h300e firmwareall versions
- netapp h300s firmwareall versions
- netapp h410c firmwareall versions
- netapp h410s firmwareall versions
- netapp h500e firmwareall versions
- netapp h500s firmwareall versions
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-devel | before 2.9.7-12.el8_5 | 2.9.7-12.el8_5 |
| Alpine:v3.12 | libxml2 | before 2.9.13-r0 | 2.9.13-r0 |
| Debian:12 | libxml2 | before 2.9.13+dfsg-1 | 2.9.13+dfsg-1 |
| Debian:9 | libxml2 | before 2.9.4+dfsg1-2.2+deb9u6 | 2.9.4+dfsg1-2.2+deb9u6 |
| openSUSE:Leap 15.3 | libxml2 | before 2.9.7-150000.3.46.1 | 2.9.7-150000.3.46.1 |
| openSUSE:Leap 15.3 | python-libxml2-python | before 2.9.7-150000.3.46.1 | 2.9.7-150000.3.46.1 |
| openSUSE:Leap 15.3 | python-libxml2-python | before 2.9.7-3.40.1 | 2.9.7-3.40.1 |
| openSUSE:Leap 15.4 | libxml2 | before 2.9.14-150400.5.7.1 | 2.9.14-150400.5.7.1 |
| openSUSE:Leap 15.4 | libxml2-python | before 2.9.14-150400.5.7.1 | 2.9.14-150400.5.7.1 |
| openSUSE:Tumbleweed | libxml2 | before 2.9.13-1.1 | 2.9.13-1.1 |
| Red Hat:enterprise_linux:8::appstream | libxml2-debuginfo | before 0:2.9.7-12.el8_5 | 0:2.9.7-12.el8_5 |
| Red Hat:enterprise_linux:8::appstream | libxml2-debugsource | before 0:2.9.7-12.el8_5 | 0:2.9.7-12.el8_5 |
| Red Hat:enterprise_linux:8::appstream | libxml2-devel | before 0:2.9.7-12.el8_5 | 0:2.9.7-12.el8_5 |
| Red Hat:enterprise_linux:8::appstream | python3-libxml2-debuginfo | before 0:2.9.7-12.el8_5 | 0:2.9.7-12.el8_5 |
| Red Hat:enterprise_linux:8::baseos | libxml2 | before 0:2.9.7-12.el8_5 | 0:2.9.7-12.el8_5 |
| Red Hat:enterprise_linux:8::baseos | python3-libxml2 | before 0:2.9.7-12.el8_5 | 0:2.9.7-12.el8_5 |
| Red Hat:jboss_core_services:1::el7 | jbcs-httpd24-apr-util | before 0:1.6.1-91.jbcs.el7 | 0:1.6.1-91.jbcs.el7 |
| Red Hat:jboss_core_services:1::el7 | jbcs-httpd24-apr-util-debuginfo | before 0:1.6.1-91.jbcs.el7 | 0:1.6.1-91.jbcs.el7 |
| Red Hat:jboss_core_services:1::el7 | jbcs-httpd24-apr-util-devel | before 0:1.6.1-91.jbcs.el7 | 0:1.6.1-91.jbcs.el7 |
| Red Hat:jboss_core_services:1::el7 | jbcs-httpd24-apr-util-ldap | before 0:1.6.1-91.jbcs.el7 | 0:1.6.1-91.jbcs.el7 |
| Red Hat:jboss_core_services:1::el7 | jbcs-httpd24-apr-util-mysql | before 0:1.6.1-91.jbcs.el7 | 0:1.6.1-91.jbcs.el7 |
| Red Hat:jboss_core_services:1::el7 | jbcs-httpd24-apr-util-nss | before 0:1.6.1-91.jbcs.el7 | 0:1.6.1-91.jbcs.el7 |
| Red Hat:jboss_core_services:1::el7 | jbcs-httpd24-apr-util-odbc | before 0:1.6.1-91.jbcs.el7 | 0:1.6.1-91.jbcs.el7 |
| Red Hat:jboss_core_services:1::el7 | jbcs-httpd24-apr-util-openssl | before 0:1.6.1-91.jbcs.el7 | 0:1.6.1-91.jbcs.el7 |
+96
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-2021-3517May 19, 2021 · There is a flaw in the xml entity encoding functionality of libxml2 in versions before 2.9.11.39Monitor
- ← EarlierCVE-2021-3541Jul 9, 2021 · A flaw was found in libxml2.27Monitor
- Later →CVE-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
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-devel | 2.9.7-12.el8_5 · AlmaLinux:8 | Package registry (OSV) |
| alpine:libxml2 | 2.9.13-r0 · Alpine:v3.12 | Package registry (OSV) |
| debian:libxml2 | 2.9.13+dfsg-1 · Debian:12 | Package registry (OSV) |
| opensuse:libxml2 | 2.9.7-150000.3.46.1 · openSUSE:Leap 15.3 | Package registry (OSV) |
| opensuse:libxml2-python | 2.9.14-150400.5.7.1 · openSUSE:Leap 15.4 | Package registry (OSV) |
| opensuse:python-libxml2-python | 2.9.7-150000.3.46.1 · openSUSE:Leap 15.3 | Package registry (OSV) |
| red hat:jbcs-httpd24-apr-util | 0:1.6.1-91.jbcs.el7 · Red Hat:jboss_core_services:1::el7 | Package registry (OSV) |
| red hat:jbcs-httpd24-apr-util-debuginfo | 0:1.6.1-91.jbcs.el7 · Red Hat:jboss_core_services:1::el7 | Package registry (OSV) |
| red hat:jbcs-httpd24-apr-util-devel | 0:1.6.1-91.jbcs.el7 · Red Hat:jboss_core_services:1::el7 | Package registry (OSV) |
| red hat:jbcs-httpd24-apr-util-ldap | 0:1.6.1-91.jbcs.el7 · Red Hat:jboss_core_services:1::el7 | Package registry (OSV) |
| red hat:jbcs-httpd24-apr-util-mysql | 0:1.6.1-91.jbcs.el7 · Red Hat:jboss_core_services:1::el7 | Package registry (OSV) |
| red hat:jbcs-httpd24-apr-util-nss | 0:1.6.1-91.jbcs.el7 · Red Hat:jboss_core_services:1::el7 | Package registry (OSV) |
| red hat:libxml2 | 0:2.9.7-12.el8_5 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:libxml2-debuginfo | 0:2.9.7-12.el8_5 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:libxml2-debugsource | 0:2.9.7-12.el8_5 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:libxml2-devel | 0:2.9.7-12.el8_5 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:python3-libxml2 | 0:2.9.7-12.el8_5 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:python3-libxml2-debuginfo | 0:2.9.7-12.el8_5 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| rocky linux:libxml2 | 0:2.9.7-12.el8_5 · Rocky Linux:8 | Package registry (OSV) |
| suse:libxml2 | 2.9.4-46.49.1 · SUSE:HPE Helion OpenStack 8 | Package registry (OSV) |
| suse:libxml2 | 2.9.7-150000.3.46.1 · SUSE:Linux Enterprise Module for Basesystem 15 SP3 | Package registry (OSV) |
| suse:libxml2-python | 2.7.6-0.77.43.1 · SUSE:Linux Enterprise Point of Sale 11 SP3 | Package registry (OSV) |
| suse:libxml2-python | 2.9.14-150400.5.7.1 · SUSE:Linux Enterprise Module for Basesystem 15 SP4 | Package registry (OSV) |
| suse:python-libxml2 | 2.9.4-46.49.1 · SUSE:HPE Helion OpenStack 8 | Package registry (OSV) |
| suse:python-libxml2-python | 2.9.7-150000.3.46.1 · SUSE:Linux Enterprise Module for Basesystem 15 SP3 | Package registry (OSV) |
| suse:python-libxml2-python | 2.9.7-3.40.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).
National notice (Türkiye Cybersecurity Directorate / USOM)
Official security notices citing this record; remediation advice is on the agency's page.
- TR-22-0362 · May 17, 2022(Apple Güvenlik Güncellemesi)
- TR-22-0247 · Mar 24, 2022(RedHat Güvenlik Güncellemesi)
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- none
- Integrity
- none
- Availability
- high · the service can be disrupted
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- None
- Integrity impact
- None
- Availability impact
- High
Weakness class (CWE)
CWE-416 · Use After FreeCVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
nvd-primary
Root cause
After a memory region is freed, another reference pointing to it is still used. By then, the same region may have been allocated for different data.
The bug in code
The whole CWE-416 classA representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.
Vulnerable
free(dev->buf);
/* ... another thread is still running ... */
process(dev->buf);Fixed
lock(&dev->lock);
free(dev->buf);
dev->buf = NULL;
unlock(&dev->lock);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/May/34
- seclists.org/fulldisclosure/2022/May/35
- seclists.org/fulldisclosure/2022/May/36
- seclists.org/fulldisclosure/2022/May/37
- seclists.org/fulldisclosure/2022/May/38
- github.com/GNOME/libxml2/commit/652dd12a858989b14eed4e84e453059cd3ba340e
- gitlab.gnome.org/GNOME/libxml2/-/blob/v2.9.13/NEWS
- lists.debian.org/debian-lts-announce/2022/04/msg00004.html
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LA3MWWAYZADWJ5F6JOUBX65UZAMQB7RF/
- security.gentoo.org/glsa/202210-03
- security.netapp.com/advisory/ntap-20220331-0008/
- support.apple.com/kb/HT213253
- support.apple.com/kb/HT213254
- support.apple.com/kb/HT213255
- support.apple.com/kb/HT213256
- support.apple.com/kb/HT213257
- support.apple.com/kb/HT213258
- www.oracle.com/security-alerts/cpujul2022.html
- cert-portal.siemens.com/productcert/html/ssa-398330.html
Vendor advisories and official records. Exploit/PoC links are deliberately left out.