CVE-2022-40303: Integer Overflow

Published Oct 14, 2022
·
Updated

A flaw was found in libxml2. Parsing a XML document with the XMLPARSEHUGE option enabled can result in an integer overflow because safety checks were missing in some functions. Also, the xmlParseEntityValue function didn't have any length limitation.

Other sources

Accessibility. A logic issue was addressed with improved restrictions.

Apple

Accounts. This issue was addressed with improved data protection.

Apple

An issue was discovered in libxml2 before 2.10.3. When parsing a multi-gigabyte XML document with the XMLPARSEHUGE parser option enabled, several integer counters can overflow. This results in an attempt to access an array at a negative 2GB offset, typically leading to a segmentation fault.

AppleAVD. An out-of-bounds write issue was addressed with improved input validation.

Apple

AppleMobileFileIntegrity. This issue was addressed by enabling hardened runtime.

Apple

Credit

Maddie Stone(Google Project Zero), Wojciech Reguła@@_r3ggi(SecuRing), ABC Research s.r.o, Mickey Jin@@patch1t, Tommy Muir@@Muirey03, John Aakerblom@@jaakerblom, Weijia Dai@@dwj1210(Momo Security), Ian Beer(Google Project Zero), Felix Poulin-Belanger, pattern-f@@pattern_F_(Ant Security Light), Adam Doupé(ASU SEFCOM), Apple, Ned Williamson(Google Project Zero), Nathan Wachholz(Google Project Zero), Ivan Fratric(Google Project Zero), KirtiKumar Anandrao Ramchandani, Adam M., Hyeon Park@@tree_segment(Team ApplePIE), an anonymous researcher, hazbinhotel(Trend Micro Zero Day Initiative), Samuel Groß(Google V8 Security), Dohyun Lee@@l33d0hyun(SSD Secure Disclosure Labs), Korea Univ., Clément Lecigne(Google's Threat Analysis Group), Andrey Labunets, Nikita Tarakanov, Mickey Jin@@patch1t(Offensive Security), Csaba Fitzl@@theevilbit(Offensive Security), Zitong Wu(吴梓桐)(Zhuhai No)

Affected Software

51 affected componentsFixes available
redhat/libxml2<0:2.9.7-15.el8_7.1
0:2.9.7-15.el8_7.1
redhat/libxml2<0:2.9.13-3.el9_1
0:2.9.13-3.el9_1
redhat/libxml2<2.10.3
2.10.3
Apple macOS Big Sur<11.7.2
11.7.2
Apple tvOS<16.2
16.2
Apple WatchOS<9.2
9.2
IBM Data Virtualization on Cloud Pak for Data<=3.0
IBM Watson Query on Cloud Pak for Data<=2.2
IBM Watson Query on Cloud Pak for Data<=2.1
IBM Watson Query on Cloud Pak for Data<=2.0
IBM Data Virtualization on Cloud Pak for Data<=1.8
IBM Data Virtualization on Cloud Pak for Data<=1.7
Apple macOS Monterey<12.6.2
12.6.2
Apple macOS Ventura<13.0.1
13.0.1
Apple iOS<16.1.1
16.1.1
Apple iPadOS<16.1.1
16.1.1
Apple iOS<15.7.2
15.7.2
Apple iPadOS<15.7.2
15.7.2
Xmlsoft Libxml2<2.10.3
NetApp Active Iq Unified Manager Vsphere
NetApp Clustered Data ONTAP
NetApp Clustered Data Ontap Antivirus Connector
NetApp Netapp Manageability Sdk
NetApp ONTAP Select Deploy administration utility
NetApp Snapmanager Hyper-v
Apple iPadOS<15.7.2
Apple iPhone OS<15.7.2
Apple macOS>=11.0<11.7.2
Apple macOS>=12.0<12.6.2
Apple tvOS<16.2
Apple WatchOS<9.2
NetApp H300s Firmware
NetApp H300s
NetApp H500s Firmware
NetApp H500s
NetApp H700s Firmware
NetApp H700s
NetApp H410s Firmware
NetApp H410s
NetApp H410c Firmware
NetApp H410c
All of the following
NetApp H300s Firmware
NetApp H300s
All of the following
NetApp H500s Firmware
NetApp H500s
All of the following
NetApp H700s Firmware
NetApp H700s
All of the following
NetApp H410s Firmware
NetApp H410s
All of the following
NetApp H410c Firmware
NetApp H410c

Event History

Oct 14, 2022
CVE Published
12:00 AM
Oct 19, 2022
Data Sourced
via Red Hat·06:50 PM
DescriptionSeverityAffected Software
Nov 22, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Aug 15, 2025
Data Sourced
via IBM·03:29 PM
DescriptionAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2022-40303?

CVE-2022-40303 is a vulnerability in libxml2 that allows for integer overflow during parsing of large XML documents.

2

What is the severity of CVE-2022-40303?

CVE-2022-40303 has a severity level of high (7).

3

Which software and versions are affected by CVE-2022-40303?

Apple iOS and iPadOS versions up to and including 15.7.2, 16.1.1, watchOS up to and including 9.2, tvOS up to and including 16.2, macOS Monterey up to and including 12.6.2, macOS Big Sur up to and including 11.7.2, and macOS Ventura up to and including 13.0.1 are affected by CVE-2022-40303. Additionally, libxml2 package versions up to and including 2.10.3 for Apple iPadOS and versions up to and including 0:2.9.7-15.el8_7.1 and 0:2.9.13-3.el9_1 for redhat/libxml2 are also affected.

4

How can I fix CVE-2022-40303?

Upgrade to Apple iOS or iPadOS version 15.7.2 or later, or 16.1.1 or later. Upgrade to watchOS 9.2 or later, tvOS 16.2 or later, macOS Monterey 12.6.2 or later, macOS Big Sur 11.7.2 or later, or macOS Ventura 13.0.1 or later. For redhat/libxml2, upgrade to version 2.10.3 or later for Apple iPadOS, or version 0:2.9.7-15.el8_7.1 or 0:2.9.13-3.el9_1 or later for redhat/libxml2.

5

Where can I find more information about CVE-2022-40303?

You can find more information about CVE-2022-40303 at the following references: [Apple Support - HT213531](https://support.apple.com/en-us/HT213531), [Apple Support - HT213505](https://support.apple.com/en-us/HT213505), [Apple Support - HT213536](https://support.apple.com/en-us/HT213536).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203