CVE-2021-38185
Apache GNU cpio Buffer Overflow Vulnerability
Description
GNU cpio through 2.13 allows attackers to execute arbitrary code via a crafted pattern file, because of a dstring.c ds_fgetstr integer overflow that triggers an out-of-bounds heap write. NOTE: it is unclear whether there are common cases where the pattern file, associated with the -E option, is untrusted data.
INFO
Published Date :
Aug. 8, 2021, 12:15 a.m.
Last Modified :
June 4, 2023, 10:15 p.m.
Source :
[email protected]
Remotely Exploitable :
No
Impact Score :
5.9
Exploitability Score :
1.8
Public PoC/Exploit Available at Github
CVE-2021-38185 has a 3 public PoC/Exploit
available at Github.
Go to the Public Exploits
tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2021-38185
.
URL | Resource |
---|---|
https://git.savannah.gnu.org/cgit/cpio.git/commit/?id=dd96882877721703e19272fe25034560b794061b | Patch Third Party Advisory |
https://github.com/fangqyi/cpiopwn | Exploit Third Party Advisory |
https://lists.debian.org/debian-lts-announce/2023/06/msg00007.html | |
https://lists.gnu.org/archive/html/bug-cpio/2021-08/msg00000.html | Exploit Mailing List Vendor Advisory |
https://lists.gnu.org/archive/html/bug-cpio/2021-08/msg00002.html | Exploit Mailing List Vendor Advisory |
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
None
asp-net-core csharp docker dockerfile javascript react webapi docker-compose
C# Dockerfile HTML JavaScript CSS
ACE poc exploit for glibc cpio 2.13 through mmap chunk metadata curruption (CVE-2021-38185)
linux cve poc cpio exploit
Python Dockerfile
Automatic monitor github cve using Github Actions
Python
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2021-38185
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2021-38185
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
CVE Modified by [email protected]
Jun. 04, 2023
Action Type Old Value New Value Added Reference https://lists.debian.org/debian-lts-announce/2023/06/msg00007.html [No Types Assigned] -
Initial Analysis by [email protected]
Aug. 16, 2021
Action Type Old Value New Value Added CVSS V2 Metadata Victim must voluntarily interact with attack mechanism Added CVSS V2 NIST (AV:N/AC:M/Au:N/C:P/I:P/A:P) Added CVSS V3.1 NIST AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H Changed Reference Type https://git.savannah.gnu.org/cgit/cpio.git/commit/?id=dd96882877721703e19272fe25034560b794061b No Types Assigned https://git.savannah.gnu.org/cgit/cpio.git/commit/?id=dd96882877721703e19272fe25034560b794061b Patch, Third Party Advisory Changed Reference Type https://github.com/fangqyi/cpiopwn No Types Assigned https://github.com/fangqyi/cpiopwn Exploit, Third Party Advisory Changed Reference Type https://lists.gnu.org/archive/html/bug-cpio/2021-08/msg00000.html No Types Assigned https://lists.gnu.org/archive/html/bug-cpio/2021-08/msg00000.html Exploit, Mailing List, Vendor Advisory Changed Reference Type https://lists.gnu.org/archive/html/bug-cpio/2021-08/msg00002.html No Types Assigned https://lists.gnu.org/archive/html/bug-cpio/2021-08/msg00002.html Exploit, Mailing List, Vendor Advisory Added CWE NIST CWE-190 Added CPE Configuration OR *cpe:2.3:a:gnu:cpio:*:*:*:*:*:*:*:* versions up to (including) 2.13
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2021-38185
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2021-38185
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.25 }} 0.03%
score
0.64613
percentile