Moderate: cpio security update

cpio Updated 02 Oct 2025

Summary

10/05/2022
N/A
Yes i
Unrated
Not published

ALSA-2022:1991: Moderate: cpio security update. Affects cpio versions < 2.12-11.el8. Fixed in 2.12-11.el8. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The cpio packages provide the GNU cpio utility for creating and extracting archives, or copying files from one place to another. It is commonly used in Linux systems for managing file archives. The cpio utility supports various archive formats and provides options for compression and encryption. This vulnerability affects the cpio package in AlmaLinux 8.

Vulnerability Detail

The vulnerability identified as CVE-2021-38185 is an integer overflow issue in the ds_fgetstr() function in dstring.c file of the cpio package. This vulnerability can be exploited by an attacker by providing a crafted pattern file, leading to an out-of-bounds write. The impact of this vulnerability can potentially allow an attacker to execute arbitrary code or cause a denial-of-service condition on the affected system.

How To Fix

Minimum fixed version

2.12-11.el8

This is the first release that contains the fix.

sudo dnf update cpio

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Conclusion

The cpio package in AlmaLinux 8 is affected by a moderate-level vulnerability (CVE-2021-38185) that can lead to an out-of-bounds write. It is important to update the cpio package to version 2.12-11.el8 or later to mitigate this vulnerability. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for cpio →

Share this vulnerability

FAQ

cpio is a utility used for creating and extracting archives, or copying files from one place to another. It is commonly used in Linux systems for managing file archives.

The vulnerability can potentially allow an attacker to execute arbitrary code or cause a denial-of-service condition on the affected system.

You can use the Vulert Playground at Vulert Scanner to check if your system is affected by this vulnerability. Simply upload your package-lock.json file and it will provide real-time monitoring and alerts for open-source vulnerabilities.

No specific workaround has been provided for this vulnerability. It is recommended to update the cpio package to the latest version.

You can refer to the CVE page for CVE-2021-38185 for more detailed information about this vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for cpio.

How To Fix

Minimum fixed version

2.12-11.el8

This is the first release that contains the fix.

sudo dnf update cpio

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback