Giteaで RubyGems の索引を偽装される脆弱性 攻撃者が任意の依存関係を仕込めるおそれ
Summary
Giteaの RubyGems パッケージレジストリでは、プラットフォーム名や依存関係の名前に改行を含むgemを受け付けてしまい、利用者向けの索引を偽装できる脆弱性(CVE-2026-118389)が見つかりました。28.3.0より前の版が影響を受け、28.3.0で修正されています。該当する版を使っている場合は、早めに28.3.0以降へ更新してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
Giteaの RubyGems パッケージレジストリでは、プラットフォーム名や依存関係の名前に改行を含むgemを受け付けてしまい、利用者向けの索引を偽装できる脆弱性(CVE-2026-118389)が見つかりました。28.3.0より前の版が影響を受け、28.3.0で修正されています。該当する版を使っている場合は、早めに28.3.0以降へ更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| GiteaGitea |
< 28.3.0→ 28.3.0 |
28.3.0 |
Original description The description as published by the source.
The RubyGems package registry accepted gems whose platform, dependency names or dependency version requirements contain newline characters. Because the compact index served to clients is line-based, a user who can publish a gem to an owner's registry could forge index entries, such as packages that do not exist or additional versions of an existing gem with dependencies of their choice. Clients that resolve gems from that registry could then be led to install attacker-chosen dependencies. Gems with such metadata are now rejected.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory blog.gitea.com
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- patch github.com
- patch github.com