CVE-2023-2857
Wireshark vulnerability analysis and mitigation

Overview

BLF file parser crash in Wireshark versions 4.0.0 to 4.0.5 and 3.6.0 to 3.6.13 allows denial of service via crafted capture file. The vulnerability was discovered by Huascar Tejeda and was disclosed on May 24, 2023. The issue affects the Binary Logging Format (BLF) file processing functionality in Wireshark, a widely-used network protocol analyzer (Wireshark Advisory).

Technical details

The vulnerability occurs in the blfpulllogcontainerintomemory() function in the wiretap/blf.c file. The heap-buffer overflow is triggered by a memcpy operation that attempts to copy 28 bytes into a memory region that is only 15 bytes large. This region was allocated using calloc at wiretap/blf.c:499. The overflow leads to memory corruption, causing the program to crash when it attempts to allocate memory with malloc in wmemstrdupprintf. The vulnerability has been assigned a CVSS v3.1 base score of 6.5 MEDIUM (Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H) (NVD, Wireshark Issue).

Impact

The primary impact of this vulnerability is denial of service. When exploited, it can cause Wireshark to crash when processing a maliciously crafted BLF file. The vulnerability requires user interaction, specifically opening a malformed packet trace file (Wireshark Advisory).

Mitigation and workarounds

The vulnerability has been fixed in Wireshark versions 4.0.6 and 3.6.14. Users are advised to upgrade to these or later versions to mitigate the risk. Multiple Linux distributions have also released security updates to address this vulnerability, including Debian (version 4.0.6-1~deb12u1) and Gentoo (Debian Advisory, Gentoo Advisory).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management