CVE-2021-38185

Source
https://cve.org/CVERecord?id=CVE-2021-38185
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-38185.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2021-38185
Downstream
Related
Published
2021-08-08T00:15:07.027Z
Modified
2026-03-20T04:15:47.721676Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Git / cgit.git.savannah.gnu.org/cgit/cpio.git

Affected ranges

Type
GIT
Repo
https://cgit.git.savannah.gnu.org/cgit/cpio.git
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
dd96882877721703e19272fe25034560b794061b
Type
GIT
Repo
https://git.savannah.gnu.org/git/cpio.git/
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
cd892d109a583e3a29e1da66b8374c29605bfdc8
Database specific
{
    "versions": [
        {
            "introduced": "0"
        },
        {
            "last_affected": "2.13"
        }
    ]
}

Affected versions

Other
release_2_11
release_2_12
release_2_13
release_2_6
release_2_7

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-38185.json"