CVE catalog

CVE-2021-38185

cpio: CVE-2021-38185

[CVE catalog]

Severity
High · CVSS 8.8CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Published
Source
[NVD] · [CVE record]
EPSS
4.17% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiancpiosid2.15+dfsg-2.1fixed
Debiancpioforky2.15+dfsg-2.1fixed
Debiancpiotrixie2.15+dfsg-2fixed
Debiancpiobookworm2.13+dfsg-7.1fixed
Ubuntucpiopro2.11+dfsg-1ubuntu1vulnerable
Ubuntucpiopro2.11+dfsg-1ubuntu1.1vulnerable
Ubuntucpiopro2.11+dfsg-1ubuntu1.2vulnerable
Ubuntucpiopro2.11+dfsg-1ubuntu1.2+esm1vulnerable
Ubuntucpiopro2.11+dfsg-1ubuntu1.2+esm2fixed
Ubuntucpiopro2.11+dfsg-4.1ubuntu1vulnerable
Ubuntucpiopro2.11+dfsg-5ubuntu1vulnerable
Ubuntucpiopro2.11+dfsg-5ubuntu1.1vulnerable
Ubuntucpiopro2.11+dfsg-5ubuntu1.1+esm1fixed
Ubuntucpio18.042.11+dfsg-6vulnerable
Ubuntucpio18.042.12+dfsg-6vulnerable
Ubuntucpio18.042.12+dfsg-6ubuntu0.18.04.1vulnerable
Ubuntucpio18.042.12+dfsg-6ubuntu0.18.04.4fixed
Ubuntucpio20.042.12+dfsg-9vulnerable
Ubuntucpio20.042.12+dfsg-9ubuntu1vulnerable
Ubuntucpio20.042.13+dfsg-1vulnerable
Ubuntucpio20.042.13+dfsg-2vulnerable
Ubuntucpio20.042.13+dfsg-2ubuntu0.3fixed
Ubuntucpiopro2.11+dfsg-4.1ubuntu1vulnerable
Ubuntucpiopro2.11+dfsg-5ubuntu1vulnerable
Ubuntucpiopro2.11+dfsg-5ubuntu1.1vulnerable
Ubuntucpiopro2.11+dfsg-5ubuntu1.1+esm1fixed
Ubuntucpio18.042.11+dfsg-6vulnerable
Ubuntucpio18.042.12+dfsg-6vulnerable
Ubuntucpio18.042.12+dfsg-6ubuntu0.18.04.1vulnerable
Ubuntucpio18.042.12+dfsg-6ubuntu0.18.04.4fixed
Ubuntucpio20.042.12+dfsg-9vulnerable
Ubuntucpio20.042.12+dfsg-9ubuntu1vulnerable
Ubuntucpio20.042.13+dfsg-1vulnerable
Ubuntucpio20.042.13+dfsg-2vulnerable
Ubuntucpio20.042.13+dfsg-2ubuntu0.3fixed
Ubuntucpio22.042.13+dfsg-4ubuntu4fixed
Susecpiohpe helion openstack 82.11-36.12.1fixed
Susecpioopenstack cloud 82.11-36.12.1fixed
Susecpioopenstack cloud 92.11-36.12.1fixed
Susecpioopenstack cloud crowbar 82.11-36.12.1fixed
Susecpioopenstack cloud crowbar 92.11-36.12.1fixed
Susecpiolinux enterprise server for sap applications 12 sp32.11-36.12.1fixed
Susecpiolinux enterprise server for sap applications 12 sp42.11-36.12.1fixed
Susecpiolinux enterprise server 12 sp2-bcl2.11-36.12.1fixed
Susecpiolinux enterprise server 12 sp3-ltss2.11-36.12.1fixed
Susecpiolinux enterprise server 12 sp3-bcl2.11-36.12.1fixed
Susecpiolinux enterprise server 12 sp4-ltss2.11-36.12.1fixed
Susecpiolinux enterprise server 12 sp52.11-36.12.1fixed
Susecpiolinux enterprise server for sap applications 12 sp52.11-36.12.1fixed
Susecpiolinux enterprise point of sale 11 sp32.9-75.81.14.1fixed
Susecpiolinux enterprise server 11 sp4-ltss2.9-75.81.14.1fixed
Susecpiohpe helion openstack 82.11-36.15.1fixed
Susecpioopenstack cloud 82.11-36.15.1fixed
Susecpioopenstack cloud 92.11-36.15.1fixed
Susecpioopenstack cloud crowbar 82.11-36.15.1fixed
Susecpioopenstack cloud crowbar 92.11-36.15.1fixed
Susecpiolinux enterprise server for sap applications 12 sp32.11-36.15.1fixed
Susecpiolinux enterprise server for sap applications 12 sp42.11-36.15.1fixed
Susecpiolinux enterprise server 12 sp2-bcl2.11-36.15.1fixed
Susecpiolinux enterprise server 12 sp3-ltss2.11-36.15.1fixed
Susecpiolinux enterprise server 12 sp3-bcl2.11-36.15.1fixed
Susecpiolinux enterprise server 12 sp4-ltss2.11-36.15.1fixed
Susecpiolinux enterprise server 12 sp52.11-36.15.1fixed
Susecpiolinux enterprise server for sap applications 12 sp52.11-36.15.1fixed
Susecpiolinux enterprise module for basesystem 15 sp22.12-3.9.1fixed
Susecpiolinux enterprise module for basesystem 15 sp32.12-3.9.1fixed
Susecpiolinux enterprise high performance computing 15-espos2.12-3.9.1fixed
Susecpiolinux enterprise high performance computing 15-ltss2.12-3.9.1fixed
Susecpiolinux enterprise high performance computing 15 sp1-espos2.12-3.9.1fixed
Susecpiolinux enterprise high performance computing 15 sp1-ltss2.12-3.9.1fixed
Susecpiolinux enterprise server 15-ltss2.12-3.9.1fixed
Susecpiolinux enterprise server 15 sp1-bcl2.12-3.9.1fixed
Susecpiolinux enterprise server 15 sp1-ltss2.12-3.9.1fixed
Susecpiolinux enterprise server for sap applications 152.12-3.9.1fixed
Susecpiolinux enterprise server for sap applications 15 sp12.12-3.9.1fixed
Susecpiomanager proxy 4.02.12-3.9.1fixed
Susecpiomanager retail branch server 4.02.12-3.9.1fixed
Susecpiomanager server 4.02.12-3.9.1fixed
Susecpiolinux enterprise micro 5.02.12-3.9.1fixed
Susecpioenterprise storage 62.12-3.9.1fixed
Susecpiohpe helion openstack 82.11-36.9.1fixed
Susecpioopenstack cloud 82.11-36.9.1fixed
Susecpioopenstack cloud 92.11-36.9.1fixed
Susecpioopenstack cloud crowbar 82.11-36.9.1fixed
Susecpioopenstack cloud crowbar 92.11-36.9.1fixed
Susecpiolinux enterprise server for sap applications 12 sp32.11-36.9.1fixed
Susecpiolinux enterprise server for sap applications 12 sp42.11-36.9.1fixed
Susecpiolinux enterprise server 12 sp2-bcl2.11-36.9.1fixed
Susecpiolinux enterprise server 12 sp3-ltss2.11-36.9.1fixed
Susecpiolinux enterprise server 12 sp3-bcl2.11-36.9.1fixed
Susecpiolinux enterprise server 12 sp4-ltss2.11-36.9.1fixed
Susecpiolinux enterprise server 12 sp52.11-36.9.1fixed
Susecpiolinux enterprise server for sap applications 12 sp52.11-36.9.1fixed
Susecpiolinux enterprise point of sale 11 sp32.9-75.81.8.1fixed
Susecpiolinux enterprise server 11 sp4-ltss2.9-75.81.8.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiancpiosourcesid2.13+dfsg-5not yet assignedNot reported[992045]
Debiancpiosourceforky2.13+dfsg-5not yet assignedNot reported[992045]
Debiancpiosourcetrixie2.13+dfsg-5not yet assignedNot reported[992045]
Debiancpiosourcebookworm2.13+dfsg-5not yet assignedNot reported[992045]
Ubuntucpiodebpro2.11+dfsg-1ubuntu1.2+esm2Not reportedUSN-5064-3Not reported
Ubuntucpiodebpro2.11+dfsg-5ubuntu1.1+esm1Not reportedUSN-5064-2Not reported
Ubuntucpiodeb18.042.12+dfsg-6ubuntu0.18.04.4Not reportedUSN-5064-1Not reported
Ubuntucpiodeb20.042.13+dfsg-2ubuntu0.3Not reportedUSN-5064-1Not reported
Ubuntucpiodebpro2.11+dfsg-5ubuntu1.1+esm1Not reportedUBUNTU-CVE-2021-38185Not reported
Ubuntucpiodeb18.042.12+dfsg-6ubuntu0.18.04.4Not reportedUBUNTU-CVE-2021-38185Not reported
Ubuntucpiodeb20.042.13+dfsg-2ubuntu0.3Not reportedUBUNTU-CVE-2021-38185Not reported
Ubuntucpiodeb22.042.13+dfsg-4ubuntu4Not reportedUBUNTU-CVE-2021-38185Not reported
Susecpiorpmhpe helion openstack 82.11-36.12.1Not reportedSUSE-RU-2021:2779-1Not reported
Susecpiorpmopenstack cloud 82.11-36.12.1Not reportedSUSE-RU-2021:2779-1Not reported
Susecpiorpmopenstack cloud 92.11-36.12.1Not reportedSUSE-RU-2021:2779-1Not reported
Susecpiorpmopenstack cloud crowbar 82.11-36.12.1Not reportedSUSE-RU-2021:2779-1Not reported
Susecpiorpmopenstack cloud crowbar 92.11-36.12.1Not reportedSUSE-RU-2021:2779-1Not reported
Susecpiorpmlinux enterprise server for sap applications 12 sp32.11-36.12.1Not reportedSUSE-RU-2021:2779-1Not reported
Susecpiorpmlinux enterprise server for sap applications 12 sp42.11-36.12.1Not reportedSUSE-RU-2021:2779-1Not reported
Susecpiorpmlinux enterprise server 12 sp2-bcl2.11-36.12.1Not reportedSUSE-RU-2021:2779-1Not reported
Susecpiorpmlinux enterprise server 12 sp3-ltss2.11-36.12.1Not reportedSUSE-RU-2021:2779-1Not reported
Susecpiorpmlinux enterprise server 12 sp3-bcl2.11-36.12.1Not reportedSUSE-RU-2021:2779-1Not reported
Susecpiorpmlinux enterprise server 12 sp4-ltss2.11-36.12.1Not reportedSUSE-RU-2021:2779-1Not reported
Susecpiorpmlinux enterprise server 12 sp52.11-36.12.1Not reportedSUSE-RU-2021:2779-1Not reported
Susecpiorpmlinux enterprise server for sap applications 12 sp52.11-36.12.1Not reportedSUSE-RU-2021:2779-1Not reported
Susecpiorpmlinux enterprise point of sale 11 sp32.9-75.81.14.1Not reportedSUSE-SU-2021:14788-1Not reported
Susecpiorpmlinux enterprise server 11 sp4-ltss2.9-75.81.14.1Not reportedSUSE-SU-2021:14788-1Not reported
Susecpiorpmhpe helion openstack 82.11-36.15.1Not reportedSUSE-SU-2021:2808-1Not reported
Susecpiorpmopenstack cloud 82.11-36.15.1Not reportedSUSE-SU-2021:2808-1Not reported
Susecpiorpmopenstack cloud 92.11-36.15.1Not reportedSUSE-SU-2021:2808-1Not reported
Susecpiorpmopenstack cloud crowbar 82.11-36.15.1Not reportedSUSE-SU-2021:2808-1Not reported
Susecpiorpmopenstack cloud crowbar 92.11-36.15.1Not reportedSUSE-SU-2021:2808-1Not reported
Susecpiorpmlinux enterprise server for sap applications 12 sp32.11-36.15.1Not reportedSUSE-SU-2021:2808-1Not reported
Susecpiorpmlinux enterprise server for sap applications 12 sp42.11-36.15.1Not reportedSUSE-SU-2021:2808-1Not reported
Susecpiorpmlinux enterprise server 12 sp2-bcl2.11-36.15.1Not reportedSUSE-SU-2021:2808-1Not reported
Susecpiorpmlinux enterprise server 12 sp3-ltss2.11-36.15.1Not reportedSUSE-SU-2021:2808-1Not reported
Susecpiorpmlinux enterprise server 12 sp3-bcl2.11-36.15.1Not reportedSUSE-SU-2021:2808-1Not reported
Susecpiorpmlinux enterprise server 12 sp4-ltss2.11-36.15.1Not reportedSUSE-SU-2021:2808-1Not reported
Susecpiorpmlinux enterprise server 12 sp52.11-36.15.1Not reportedSUSE-SU-2021:2808-1Not reported
Susecpiorpmlinux enterprise server for sap applications 12 sp52.11-36.15.1Not reportedSUSE-SU-2021:2808-1Not reported
Susecpiorpmlinux enterprise module for basesystem 15 sp22.12-3.9.1Not reportedSUSE-RU-2021:2780-1Not reported
Susecpiorpmlinux enterprise module for basesystem 15 sp32.12-3.9.1Not reportedSUSE-RU-2021:2780-1Not reported
Susecpiorpmlinux enterprise high performance computing 15-espos2.12-3.9.1Not reportedSUSE-RU-2021:2780-1Not reported
Susecpiorpmlinux enterprise high performance computing 15-ltss2.12-3.9.1Not reportedSUSE-RU-2021:2780-1Not reported
Susecpiorpmlinux enterprise high performance computing 15 sp1-espos2.12-3.9.1Not reportedSUSE-RU-2021:2780-1Not reported
Susecpiorpmlinux enterprise high performance computing 15 sp1-ltss2.12-3.9.1Not reportedSUSE-RU-2021:2780-1Not reported
Susecpiorpmlinux enterprise server 15-ltss2.12-3.9.1Not reportedSUSE-RU-2021:2780-1Not reported
Susecpiorpmlinux enterprise server 15 sp1-bcl2.12-3.9.1Not reportedSUSE-RU-2021:2780-1Not reported
Susecpiorpmlinux enterprise server 15 sp1-ltss2.12-3.9.1Not reportedSUSE-RU-2021:2780-1Not reported
Susecpiorpmlinux enterprise server for sap applications 152.12-3.9.1Not reportedSUSE-RU-2021:2780-1Not reported
Susecpiorpmlinux enterprise server for sap applications 15 sp12.12-3.9.1Not reportedSUSE-RU-2021:2780-1Not reported
Susecpiorpmmanager proxy 4.02.12-3.9.1Not reportedSUSE-RU-2021:2780-1Not reported
Susecpiorpmmanager retail branch server 4.02.12-3.9.1Not reportedSUSE-RU-2021:2780-1Not reported
Susecpiorpmmanager server 4.02.12-3.9.1Not reportedSUSE-RU-2021:2780-1Not reported
Susecpiorpmlinux enterprise micro 5.02.12-3.9.1Not reportedSUSE-RU-2021:2780-1Not reported
Susecpiorpmenterprise storage 62.12-3.9.1Not reportedSUSE-RU-2021:2780-1Not reported
Susecpiorpmhpe helion openstack 82.11-36.9.1Not reportedSUSE-SU-2021:2686-1Not reported
Susecpiorpmopenstack cloud 82.11-36.9.1Not reportedSUSE-SU-2021:2686-1Not reported
Susecpiorpmopenstack cloud 92.11-36.9.1Not reportedSUSE-SU-2021:2686-1Not reported
Susecpiorpmopenstack cloud crowbar 82.11-36.9.1Not reportedSUSE-SU-2021:2686-1Not reported
Susecpiorpmopenstack cloud crowbar 92.11-36.9.1Not reportedSUSE-SU-2021:2686-1Not reported
Susecpiorpmlinux enterprise server for sap applications 12 sp32.11-36.9.1Not reportedSUSE-SU-2021:2686-1Not reported
Susecpiorpmlinux enterprise server for sap applications 12 sp42.11-36.9.1Not reportedSUSE-SU-2021:2686-1Not reported
Susecpiorpmlinux enterprise server 12 sp2-bcl2.11-36.9.1Not reportedSUSE-SU-2021:2686-1Not reported
Susecpiorpmlinux enterprise server 12 sp3-ltss2.11-36.9.1Not reportedSUSE-SU-2021:2686-1Not reported
Susecpiorpmlinux enterprise server 12 sp3-bcl2.11-36.9.1Not reportedSUSE-SU-2021:2686-1Not reported
Susecpiorpmlinux enterprise server 12 sp4-ltss2.11-36.9.1Not reportedSUSE-SU-2021:2686-1Not reported
Susecpiorpmlinux enterprise server 12 sp52.11-36.9.1Not reportedSUSE-SU-2021:2686-1Not reported
Susecpiorpmlinux enterprise server for sap applications 12 sp52.11-36.9.1Not reportedSUSE-SU-2021:2686-1Not reported
Susecpiorpmlinux enterprise point of sale 11 sp32.9-75.81.8.1Not reportedSUSE-SU-2021:14777-1Not reported
Susecpiorpmlinux enterprise server 11 sp4-ltss2.9-75.81.8.1Not reportedSUSE-SU-2021:14777-1Not reported

[Debian bug #992045]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [cpio]Fixed
    Details (2)
    • 2.13+dfsg-7.1 · amd64 · bookworm

      Fixed · Fixed: 2.13+dfsg-5

      dsa · cpio · debian · bookworm; dsa · cpio · debian · 12

    • 2.13+dfsg-7.1 · arm64 · bookworm

      Fixed · Fixed: 2.13+dfsg-5

      dsa · cpio · debian · bookworm; dsa · cpio · debian · 12

  • [cpio-win32]Fixed

    Source package: [cpio]

    Details (2)
    • 2.13+dfsg-7.1 · all · bookworm

      Fixed · Fixed: 2.13+dfsg-5

      dsa · cpio · debian · bookworm; dsa · cpio · debian · 12

    • 2.13+dfsg-7.1 · all · bookworm

      Fixed · Fixed: 2.13+dfsg-5

      dsa · cpio · debian · bookworm; dsa · cpio · debian · 12

[Debian 13 (Trixie)]

  • [cpio]Fixed
    Details (2)
    • 2.15+dfsg-2 · amd64 · trixie

      Fixed · Fixed: 2.13+dfsg-5

      dsa · cpio · debian · 13

    • 2.15+dfsg-2 · arm64 · trixie

      Fixed · Fixed: 2.13+dfsg-5

      dsa · cpio · debian · 13

Observed:

References