CVE-2026-118389

published 15 Nov 2026 · updated 16 Nov 2026

Gitea RubyGems compact index injection through package metadata

8.8HighCVSS 8.8EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Gitea 28.3.0.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
GiteaGitea<28.3.028.3.0

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Gitea, strongest first

10.0CriticalCISA KEVPublic exploit

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-118389 severity on Zeptric[![CVE-2026-118389](https://zeptric.io/badge/cve/CVE-2026-118389.svg)](https://zeptric.io/cve/CVE-2026-118389)