OESA-2021-1325

Source
https://www.openeuler.org/en/security/security-bulletins/detail/?id=openEuler-SA-2021-1325
Import Source
https://repo.openeuler.org/security/data/osv/OESA-2021-1325.json
JSON Data
https://api.test.osv.dev/v1/vulns/OESA-2021-1325
Upstream
Published
2021-08-28T11:03:09Z
Modified
2025-08-12T05:09:35.255998Z
Summary
cpio security update
Details

GNU cpio copies files into or out of a cpio or tar archive. The archive can be another file on the disk, a magnetic tape, or a pipe.

Security Fix(es):

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.(CVE-2021-38185)

Database specific
{
    "severity": "High"
}
References

Affected packages

openEuler:20.03-LTS-SP1 / cpio

Package

Name
cpio
Purl
pkg:rpm/openEuler/cpio&distro=openEuler-20.03-LTS-SP1

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.13-4.oe1

Ecosystem specific

{
    "aarch64": [
        "cpio-2.13-4.oe1.aarch64.rpm",
        "cpio-debuginfo-2.13-4.oe1.aarch64.rpm",
        "cpio-debugsource-2.13-4.oe1.aarch64.rpm"
    ],
    "x86_64": [
        "cpio-debugsource-2.13-4.oe1.x86_64.rpm",
        "cpio-2.13-4.oe1.x86_64.rpm",
        "cpio-debuginfo-2.13-4.oe1.x86_64.rpm"
    ],
    "src": [
        "cpio-2.13-4.oe1.src.rpm"
    ],
    "noarch": [
        "cpio-help-2.13-4.oe1.noarch.rpm"
    ]
}

openEuler:20.03-LTS-SP2 / cpio

Package

Name
cpio
Purl
pkg:rpm/openEuler/cpio&distro=openEuler-20.03-LTS-SP2

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.13-4.oe1

Ecosystem specific

{
    "aarch64": [
        "cpio-2.13-4.oe1.aarch64.rpm",
        "cpio-debuginfo-2.13-4.oe1.aarch64.rpm",
        "cpio-debugsource-2.13-4.oe1.aarch64.rpm"
    ],
    "x86_64": [
        "cpio-debugsource-2.13-4.oe1.x86_64.rpm",
        "cpio-2.13-4.oe1.x86_64.rpm",
        "cpio-debuginfo-2.13-4.oe1.x86_64.rpm"
    ],
    "src": [
        "cpio-2.13-4.oe1.src.rpm"
    ],
    "noarch": [
        "cpio-help-2.13-4.oe1.noarch.rpm"
    ]
}