CVE-2021-4186

MEDIUM6.3/ 10.0
Share:
Published: December 30, 2021 at 10:15 PM
Modified: November 3, 2025 at 10:15 PM
Source: cve@gitlab.com

Vulnerability Description

Crash in the Gryphon dissector in Wireshark 3.4.0 to 3.4.10 allows denial of service via packet injection or crafted capture file

CVSS Metrics

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

Weaknesses (CWE)

Source: nvd@nist.gov

AI Security Analysis

01 // Technical Summary

Wireshark, a widely used network protocol analyzer, is vulnerable to a denial-of-service (DoS) attack. A flaw in the Gryphon dissector allows attackers to crash the application by injecting malicious packets or providing a crafted capture file, rendering the tool unusable and potentially disrupting network analysis workflows. This vulnerability impacts versions 3.4.0 through 3.4.10 of Wireshark.

02 // Vulnerability Mechanism

Step 1: Payload Delivery: The attacker crafts a malicious packet or a capture file (.pcap or .pcapng) containing a specifically crafted Gryphon protocol payload.

Step 2: Packet Injection (if applicable): The attacker injects the malicious packet onto a network segment monitored by Wireshark.

Step 3: Capture File Loading: If the attack uses a capture file, the attacker provides the file to a user who opens it in Wireshark.

Step 4: Dissection Trigger: Wireshark's Gryphon dissector attempts to parse the malicious Gryphon data.

Step 5: Vulnerability Execution: The crafted data triggers the vulnerability within the Gryphon dissector, leading to a crash.

Step 6: Denial of Service: Wireshark crashes, preventing the user from analyzing network traffic and potentially disrupting network monitoring activities.

03 // Deep Technical Analysis

The vulnerability lies within the Gryphon dissector, a component responsible for parsing and interpreting Gryphon protocol traffic. The root cause is a flaw in how the dissector handles specific data structures or packet formats. This likely involves an unhandled condition, such as an unexpected length field or malformed data within a Gryphon packet. When Wireshark encounters this malformed data, it triggers an exception, leading to a crash. This could be due to an integer overflow, buffer overflow, or an attempt to access memory outside of allocated bounds. The specific function or logic flaw is not detailed in the CVE description, but it is related to the processing of Gryphon protocol data. The vulnerability allows for a DoS condition, as the application becomes unusable.

References & Intelligence

https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-4186.json
Source: cve@gitlab.com
Third Party Advisory
https://gitlab.com/wireshark/wireshark/-/issues/17737
Source: cve@gitlab.com
ExploitIssue TrackingThird Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2EY2VFBU3YGGWI5BW4XKT3F37MYGEQUD/
Source: cve@gitlab.com
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3FH2J57GDA2WMBS6J56F6QQRA6BXQQFZ/
Source: cve@gitlab.com
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.wireshark.org/security/wnpa-sec-2021-16.html
Source: cve@gitlab.com
Vendor Advisory
https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-4186.json
Source: af854a3a-2127-422b-91ae-364da2661108
Third Party Advisory
https://gitlab.com/wireshark/wireshark/-/issues/17737
Source: af854a3a-2127-422b-91ae-364da2661108
ExploitIssue TrackingThird Party Advisory
https://lists.debian.org/debian-lts-announce/2024/09/msg00049.html
Source: af854a3a-2127-422b-91ae-364da2661108
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2EY2VFBU3YGGWI5BW4XKT3F37MYGEQUD/
Source: af854a3a-2127-422b-91ae-364da2661108
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3FH2J57GDA2WMBS6J56F6QQRA6BXQQFZ/
Source: af854a3a-2127-422b-91ae-364da2661108
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.wireshark.org/security/wnpa-sec-2021-16.html
Source: af854a3a-2127-422b-91ae-364da2661108
Vendor Advisory
CVE-2021-4186 - MEDIUM Severity (6.3) | Free CVE Database | 4nuxd