| Summary | A Directory Traversal issue was discovered in RubyGems 2.7.6 and later through 3.0.2. Before making new directories or touching files (which now include path-checking code for symlinks), it would delete the target destination. If that destination was hidden behind a symlink, a malicious gem could delete arbitrary files on the user's machine, presuming the attacker could guess at paths. Given how frequently gem is run as sudo, and how predictable paths are on modern systems (/tmp, /usr, etc.), this could likely lead to data loss or an unusable system. |
|---|---|
| Publication Date | June 7, 2019, 12:29 a.m. |
| Registration Date | Jan. 26, 2021, 11:44 a.m. |
| Last Update | Nov. 21, 2024, 1:49 p.m. |
| CVSS3.0 : HIGH | |
| スコア | 7.4 |
|---|---|
| Vector | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H |
| 攻撃元区分(AV) | ネットワーク |
| 攻撃条件の複雑さ(AC) | 高 |
| 攻撃に必要な特権レベル(PR) | 不要 |
| 利用者の関与(UI) | 不要 |
| 影響の想定範囲(S) | 変更なし |
| 機密性への影響(C) | なし |
| 完全性への影響(I) | 高 |
| 可用性への影響(A) | 高 |
| CVSS2.0 : HIGH | |
| Score | 8.8 |
|---|---|
| Vector | AV:N/AC:M/Au:N/C:N/I:C/A:C |
| 攻撃元区分(AV) | ネットワーク |
| 攻撃条件の複雑さ(AC) | 中 |
| 攻撃前の認証要否(Au) | 不要 |
| 機密性への影響(C) | なし |
| 完全性への影響(I) | 高 |
| 可用性への影響(A) | 高 |
| Get all privileges. | いいえ |
| Get user privileges | いいえ |
| Get other privileges | いいえ |
| User operation required | いいえ |
| Configuration1 | or higher | or less | more than | less than | |
| cpe:2.3:a:rubygems:rubygems:*:*:*:*:*:*:*:* | 2.7.6 | 3.0.2 | |||
| Title | RubyGems におけるパストラバーサルの脆弱性 |
|---|---|
| Summary | RubyGems には、パストラバーサルの脆弱性が存在します。 |
| Possible impacts | 情報を改ざんされる、およびサービス運用妨害 (DoS) 状態にされる可能性があります。 |
| Solution | ベンダより正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。 |
| Publication Date | March 5, 2019, midnight |
| Registration Date | June 18, 2019, 4:26 p.m. |
| Last Update | June 18, 2019, 4:26 p.m. |
| RubyGems |
| RubyGems 2.7.6 から 3.0.2 |
| No | Changed Details | Date of change |
|---|---|---|
| 1 | [2019年06月18日] 掲載 |
June 18, 2019, 4:26 p.m. |