CVE-2021-33643CWE-125

An attacker who submits a crafted tar file with size in header struct being 0 may be able to trigger an calling of malloc(0) for a variable gnu_longlink…

Medium · published August 9, 2022

CVSS v3.1
6.5
EPSS
2%
Percentile
78.0
In the wild
Unconfirmed
What it is

⚠️ A crafted tar file with a size header of zero can trigger an out-of-bounds read — that's like inviting a guest to a party who shows up empty-handed and ends up rummaging through your room! 🔍 Think of this vulnerability as a restaurant opening its doors but not checking the reservation list. If a sneaky diner shows up without a booking (or in this case, with a zero-sized tar file), they might end up accessing areas they shouldn't, like secret recipes in the kitchen! An attacker could exploit this vulnerability to read sensitive data from memory, potentially leaking information that could be crucial for further attacks. While it’s not the biggest breach, it’s still a surprising gap in your defenses that shouldn’t be ignored!

Put simply

Think of this vulnerability as a restaurant opening its doors but not checking the reservation list. If a sneaky diner shows up without a booking (or in this case, with a zero-sized tar file), they might end up accessing areas they shouldn't, like secret recipes in the kitchen! CVE-2021-33643 allows an attacker to submit a tar file with a header that causes the `malloc(0)` function to be called, leading to an out-of-bounds read of a variable, which can result in unintended information disclosure.

What to do

An attacker could exploit this vulnerability to read sensitive data from memory, potentially leaking information that could be crucial for further attacks. While it’s not the biggest breach, it’s still a surprising gap in your defenses that shouldn’t be ignored! To mitigate this vulnerability, ensure your tar file handling routines are updated and check for valid header sizes before processing files. Review and patch to the latest version as necessary! You've got this! With a little attention, you can make your systems more secure and keep those pesky attackers at bay! 🛡️

The record
Technical detail
CVSS v3.1
6.5 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
CVSS v4.0
Not supplied
EPSS
0.01772 · 78.0th percentile
Weakness
CWE-125 · Out-of-bounds Read
Published
2022-08-09T00:00Z
EPSS history
Timeline
  • 09 AUG 00:00Z
    An attacker who submits a crafted tar file with size in header struct being 0 may be able to trigger an calling of malloc(0) for a variable gnu_longlink…
    cvelistv5