CVE-2021-39208
| Summary |
SharpCompress is a fully managed C# library to deal with many compression types and formats. Versions prior to 0.29.0 are vulnerable to partial path traversal. SharpCompress recreates a hierarchy of directories under destinationDirectory if ExtractFullPath is set to true in options. In order to prevent extraction outside the destination directory the destinationFileName path is verified to begin with fullDestinationDirectoryPath. However, prior to version 0.29.0, it is not enforced that fullDestinationDirectoryPath ends with slash. If the destinationDirectory is not slash terminated like `/home/user/dir` it is possible to create a file with a name thats begins as the destination directory one level up from the directory, i.e. `/home/user/dir.sh`. Because of the file name and destination directory constraints the arbitrary file creation impact is limited and depends on the use case. This issue is fixed in SharpCompress version 0.29.0.
|
| Publication Date |
Sept. 17, 2021, 12:15 a.m. |
| Registration Date |
Sept. 17, 2021, 10 a.m. |
| Last Update |
Nov. 21, 2024, 3:18 p.m. |
|
CVSS3.1 : MEDIUM
|
| スコア |
4.3
|
| Vector |
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N |
| 攻撃元区分(AV) |
ネットワーク |
| 攻撃条件の複雑さ(AC) |
低 |
| 攻撃に必要な特権レベル(PR) |
低 |
| 利用者の関与(UI) |
不要 |
| 影響の想定範囲(S) |
変更なし |
| 機密性への影響(C) |
なし |
| 完全性への影響(I) |
低 |
| 可用性への影響(A) |
なし |
|
CVSS2.0 : MEDIUM
|
| Score |
4.0
|
| Vector |
AV:N/AC:L/Au:S/C:N/I:P/A:N |
| 攻撃元区分(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:sharpcompress_project:sharpcompress:*:*:*:*:*:*:*:* |
|
|
|
0.29.0 |
Related information, measures and tools
Common Vulnerabilities List
JVN Vulnerability Information
SharpCompress におけるパストラバーサルの脆弱性
| Title |
SharpCompress におけるパストラバーサルの脆弱性
|
| Summary |
SharpCompress には、パストラバーサルの脆弱性が存在します。
|
| Possible impacts |
情報を改ざんされる可能性があります。 |
| Solution |
ベンダより正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。 |
| Publication Date |
Sept. 12, 2021, midnight |
| Registration Date |
Aug. 5, 2022, 12:15 p.m. |
| Last Update |
Aug. 5, 2022, 12:15 p.m. |
Affected System
| Adam Hathcock |
|
SharpCompress 0.29.0 未満
|
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
Change Log
| No |
Changed Details |
Date of change |
| 1 |
[2022年07月04日] 掲載 |
July 4, 2022, 12:10 p.m. |