CVE-2021-4183

MEDIUM5.5/ 10.0
Share:
Published: December 30, 2021 at 10:15 PM
Modified: November 21, 2024 at 06:37 AM
Source: cve@gitlab.com

Vulnerability Description

Crash in the pcapng file parser in Wireshark 3.6.0 allows denial of service via crafted capture file

CVSS Metrics

Base Score
5.5
Severity
MEDIUM
Vector String
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Weaknesses (CWE)

Source: nvd@nist.gov

AI Security Analysis

01 // Technical Summary

Wireshark 3.6.0 is vulnerable to a denial-of-service (DoS) attack due to a flaw in its pcapng file parser. A crafted capture file can trigger a crash, rendering the application unusable and potentially disrupting network analysis operations. This vulnerability requires no authentication and can be exploited by simply opening a malicious pcapng file.

02 // Vulnerability Mechanism

Step 1: Payload Delivery: An attacker crafts a malicious pcapng capture file. This file contains specially crafted data designed to exploit the vulnerability in Wireshark's pcapng parser. The specific data will depend on the exact nature of the flaw.

Step 2: File Opening: A user opens the malicious pcapng file using Wireshark 3.6.0.

Step 3: Parsing Trigger: Wireshark's pcapng parser begins to process the file.

Step 4: Vulnerability Exploitation: The parser encounters the crafted data within the pcapng file. Due to a flaw in the parsing logic, this data triggers a crash. This could be a segmentation fault, an access violation, or other error that causes the application to terminate.

Step 5: Denial of Service: Wireshark crashes, resulting in a denial of service. The user is unable to use Wireshark until the application is restarted. Repeated exploitation can render Wireshark unusable for extended periods.

03 // Deep Technical Analysis

Root Cause: The vulnerability lies within the pcapng file parser in Wireshark 3.6.0. Specifically, the parser mishandles certain malformed or crafted pcapng files. The exact nature of the flaw is not explicitly detailed in the provided CVE information, but the description indicates a crash, suggesting a potential issue like a null pointer dereference, an integer overflow, or an attempt to access memory outside of allocated bounds. The parser likely fails to properly validate the size or structure of data within the pcapng file, leading to the crash. The vulnerability is triggered during the parsing of the file, meaning that simply opening a malicious file is sufficient to trigger the DoS condition.

References & Intelligence

https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-4183.json
Source: cve@gitlab.com
Third Party Advisory
https://gitlab.com/wireshark/wireshark/-/issues/17755
Source: cve@gitlab.com
ExploitIssue TrackingPatchThird Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Q6XGBKWSQFCVYUN4ZK3O3NJIFP3OAFVT/
Source: cve@gitlab.com
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/R5AEK3XTOIOGCGUILUFISMGX54YJXWGJ/
Source: cve@gitlab.com
https://security.gentoo.org/glsa/202210-04
Source: cve@gitlab.com
Third Party Advisory
https://www.oracle.com/security-alerts/cpuapr2022.html
Source: cve@gitlab.com
PatchThird Party Advisory
https://www.wireshark.org/security/wnpa-sec-2021-19.html
Source: cve@gitlab.com
Vendor Advisory
https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-4183.json
Source: af854a3a-2127-422b-91ae-364da2661108
Third Party Advisory
https://gitlab.com/wireshark/wireshark/-/issues/17755
Source: af854a3a-2127-422b-91ae-364da2661108
ExploitIssue TrackingPatchThird Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Q6XGBKWSQFCVYUN4ZK3O3NJIFP3OAFVT/
Source: af854a3a-2127-422b-91ae-364da2661108
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/R5AEK3XTOIOGCGUILUFISMGX54YJXWGJ/
Source: af854a3a-2127-422b-91ae-364da2661108
https://security.gentoo.org/glsa/202210-04
Source: af854a3a-2127-422b-91ae-364da2661108
Third Party Advisory
https://www.oracle.com/security-alerts/cpuapr2022.html
Source: af854a3a-2127-422b-91ae-364da2661108
PatchThird Party Advisory
https://www.wireshark.org/security/wnpa-sec-2021-19.html
Source: af854a3a-2127-422b-91ae-364da2661108
Vendor Advisory
CVE-2021-4183 - MEDIUM Severity (5.5) | Free CVE Database | 4nuxd