CVE-2021-46143
HIGH(8.1)CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- CVSS 8.1 — Hoch
Erwähnungen (letzte 60 Tage)
EPSS-Score
4.2%
Exploit-Wahrscheinlichkeit (30 Tage)
CVSS Score
8.1
Technische Schwere
Beschreibung
In doProlog in xmlparse.c in Expat (aka libexpat) before 2.4.3, an integer overflow exists for m_groupSize.
Erkennung & Indikatoren
Ausnutzung
In den geprüften Quellen nicht genannt
Behobene Versionen
- 2.4.3
- 2.4.9
- 2.2.6-2+deb10u2
- 2.2.10-2+deb11u1
Threat-Hunting-Queries
Detection for integer overflow vulnerabilities in XML parsers is challenging due to their nature. Focus on detecting malformed XML file processing that leads to application crashes or unusual resource consumption. This query is a generic example and needs to be adapted to specific application logs and environments where Expat is used.
Sentinel/Defender KQL
// Generic example for detecting application crashes or high resource usage related to XML processing
// Customize 'YourApplicationLogs' and filter for relevant error messages or process metrics.
YourApplicationLogs
| where Message contains "XML parsing error" or Message contains "integer overflow" or Message contains "realloc acting as free"
| extend ProcessName = tostring(split(Message, "Process:")[1])
| summarize EventCount = count() by bin(TimeGenerated, 1h), ProcessName, Message
| where EventCount > 5 // Adjust threshold based on normal behavior
| project TimeGenerated, ProcessName, Message, EventCountSplunk SPL
# Generic example for detecting application crashes or high resource usage related to XML processing
# Customize 'your_application_logs' and filter for relevant error messages or process metrics.
your_application_logs (xml parsing error OR "integer overflow" OR "realloc acting as free")
| stats count by _time, host, source, sourcetype, message
| where count > 5 # Adjust threshold based on normal behaviorSigma
title: Expat Integer Overflow Detection
id: 00000000-0000-0000-0000-000000000000 # Placeholder: Generate a unique GUID
status: experimental
description: Detects potential exploitation attempts of Expat integer overflow vulnerabilities by looking for application crashes or high resource usage during XML processing.
references:
- https://nvd.nist.gov/vuln/detail/CVE-2021-46143
logsource:
category: process_creation
product: windows # Or linux, depending on the target system
detection:
keywords:
- 'xmlparse.c'
- 'doProlog'
- 'integer overflow'
- 'realloc acting as free'
- 'denial of service'
condition: keywords
fields:
- Image
- CommandLine
- ParentImage
- ParentCommandLine
timeframe: 5m
level: highElastic ES|QL
// Generic example for detecting application crashes or high resource usage related to XML processing
// Customize 'your_application_logs' and filter for relevant error messages or process metrics.
FROM your_application_logs
| WHERE message : "XML parsing error" OR message : "integer overflow" OR message : "realloc acting as free"
| GROUP BY @timestamp, host.name, service.name, message
| AGG count() AS event_count
| WHERE event_count > 5 // Adjust threshold based on normal behavior
| SORT BY @timestamp DESCSecBoard-generated · behavioral · requires customization — Von SecBoard erzeugt und nicht in einer Zielumgebung validiert. Vor dem Einsatz an die eigene Protokollierung anpassen.
Indikatoren
Sonstige (1)
- ZDI-CAN-16157
Übernommen wurden nur Indikatoren, die wörtlich in einer Hersteller- oder Research-Quelle standen.
Ausgewertete Quellen
Betroffene Produkte
- cpe:2.3:a:libexpat_project:libexpat:*:*:*:*:*:*:*:*
- cpe:2.3:a:netapp:active_iq_unified_manager:-:*:*:*:*:vmware_vsphere:*:*
- cpe:2.3:a:netapp:clustered_data_ontap:-:*:*:*:*:*:*:*
- cpe:2.3:a:netapp:hci_baseboard_management_controller:h610c:*:*:*:*:*:*:*
- cpe:2.3:a:netapp:hci_baseboard_management_controller:h610s:*:*:*:*:*:*:*
- cpe:2.3:a:netapp:hci_baseboard_management_controller:h615c:*:*:*:*:*:*:*
- cpe:2.3:a:netapp:oncommand_workflow_automation:-:*:*:*:*:*:*:*
- cpe:2.3:a:netapp:solidfire_\&_hci_management_node:-:*:*:*:*:*:*:*
- cpe:2.3:a:tenable:nessus:*:*:*:*:*:*:*:*
- cpe:2.3:a:tenable:nessus:*:*:*:*:*:*:*:*
- cpe:2.3:a:siemens:sinema_remote_connect_server:*:*:*:*:*:*:*:*
Referenzen
- http://www.openwall.com/lists/oss-security/2022/01/17/3
- https://cert-portal.siemens.com/productcert/pdf/ssa-484086.pdf
- https://github.com/libexpat/libexpat/issues/532
- https://github.com/libexpat/libexpat/pull/538
- https://security.gentoo.org/glsa/202209-24
- https://security.netapp.com/advisory/ntap-20220121-0006/
- https://www.debian.org/security/2022/dsa-5073
- https://www.tenable.com/security/tns-2022-05
- http://www.openwall.com/lists/oss-security/2022/01/17/3
- https://cert-portal.siemens.com/productcert/pdf/ssa-484086.pdf