CVE-2026-118389 Gitea RubyGems compact index injection through package metadata
HighCVSS 8.8
EPSS 0.65%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
Description
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.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| Gitea | < 28.3.0 | 28.3.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| Gitea | < 28.3.0 | 28.3.0 |
References
- GitHub Security Advisory GHSA-49c9-hm8q-6rvq vendor-advisory
- Fix: go-gitea/gitea pull request #39782 patch
- Fix backport to release/v28: go-gitea/gitea pull request #39900 patch
- Gitea 28.4.0 release announcement release-notes
- go-gitea/gitea v28.3.0 release release-notes
- ENISA EUVD EUVD-2026-126116 third-party-advisory