GNU cpio up to 2.13 Pattern File dstring.c ds_fgetstr integer overflow

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
6.5$0-$5k0.00

Summaryinfo

A vulnerability classified as critical was found in GNU cpio up to 2.13. Impacted is the function ds_fgetstr of the file dstring.c of the component Pattern File Handler. The manipulation results in integer overflow. This vulnerability is identified as CVE-2021-38185. There is not any exploit available. A patch should be applied to remediate this issue.

Detailsinfo

A vulnerability classified as critical has been found in GNU cpio up to 2.13. Affected is the function ds_fgetstr of the file dstring.c of the component Pattern File Handler. The manipulation with an unknown input leads to a integer overflow vulnerability. CWE is classifying the issue as CWE-190. The product performs a calculation that can produce an integer overflow or wraparound, when the logic assumes that the resulting value will always be larger than the original value. This can introduce other weaknesses when the calculation is used for resource management or execution control. This is going to have an impact on confidentiality, integrity, and availability.

The weakness was released 08/08/2021. The advisory is available at lists.gnu.org. This vulnerability is traded as CVE-2021-38185. Technical details are known, but there is no available exploit.

Applying a patch is able to eliminate this problem. The bugfix is ready for download at git.savannah.gnu.org.

If you want to get best quality of vulnerability data, you may have to visit VulDB.

Productinfo

Vendor

Name

Version

License

Website

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 6.6
VulDB Meta Temp Score: 6.5

VulDB Base Score: 5.5
VulDB Temp Score: 5.3
VulDB Vector: 🔍
VulDB Reliability: 🔍

NVD Base Score: 7.8
NVD Vector: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

NVD Base Score: 🔍

Exploitinginfo

Class: Integer overflow
CWE: CWE-190 / CWE-189
CAPEC: 🔍
ATT&CK: 🔍

Physical: Partially
Local: Yes
Remote: Yes

Availability: 🔍
Status: Not defined

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Patch
Status: 🔍

0-Day Time: 🔍

Patch: git.savannah.gnu.org

Timelineinfo

08/07/2021 🔍
08/08/2021 +1 days 🔍
08/08/2021 +0 days 🔍
06/09/2025 +1401 days 🔍

Sourcesinfo

Vendor: gnu.org

Advisory: lists.gnu.org
Status: Confirmed

CVE: CVE-2021-38185 (🔍)
GCVE (CVE): GCVE-0-2021-38185
GCVE (VulDB): GCVE-100-180306

Entryinfo

Created: 08/08/2021 09:08
Updated: 06/09/2025 18:01
Changes: 08/08/2021 09:08 (40), 08/10/2021 17:30 (2), 06/09/2025 18:01 (33)
Complete: 🔍
Cache ID: 216::103

If you want to get best quality of vulnerability data, you may have to visit VulDB.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Interested in the pricing of exploits?

See the underground prices here!