NVD Vulnerability Detail
Search Exploit, PoC
CVE-2021-38185
Summary

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.

Publication Date Aug. 8, 2021, 9:15 a.m.
Registration Date Aug. 8, 2021, 4 p.m.
Last Update Nov. 21, 2024, 3:16 p.m.
CVSS3.1 : HIGH
スコア 7.8
Vector CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
攻撃元区分(AV) ローカル
攻撃条件の複雑さ(AC)
攻撃に必要な特権レベル(PR) 不要
利用者の関与(UI)
影響の想定範囲(S) 変更なし
機密性への影響(C)
完全性への影響(I)
可用性への影響(A)
CVSS2.0 : MEDIUM
Score 6.8
Vector AV:N/AC:M/Au:N/C:P/I:P/A:P
攻撃元区分(AV) ネットワーク
攻撃条件の複雑さ(AC)
攻撃前の認証要否(Au) 不要
機密性への影響(C)
完全性への影響(I)
可用性への影響(A)
Get all privileges. いいえ
Get user privileges いいえ
Get other privileges いいえ
User operation required はい
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:a:gnu:cpio:*:*:*:*:*:*:*:* 2.13
Related information, measures and tools
Common Vulnerabilities List

JVN Vulnerability Information
GNU cpio における整数オーバーフローの脆弱性
Title GNU cpio における整数オーバーフローの脆弱性
Summary

GNU cpio には、整数オーバーフローの脆弱性が存在します。

Possible impacts 情報を取得される、情報を改ざんされる、およびサービス運用妨害 (DoS) 状態にされる可能性があります。
Solution

ベンダより正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。

Publication Date Aug. 7, 2021, midnight
Registration Date May 19, 2022, 6:04 p.m.
Last Update Dec. 15, 2025, 2:32 p.m.
Affected System
GNU Project
GNU cpio 2.13 まで
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
その他
Change Log
No Changed Details Date of change
1 [2022年05月19日]
  掲載
May 19, 2022, 6:04 p.m.
2 [2025年12月15日]
  参考情報:JVN (JVNVU#99514792) を追加
Dec. 15, 2025, 11:52 a.m.