Skip to content

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.

PackageAffectedFixed inStatus
Gitea < 28.3.0 28.3.0 Fixed

Affected products

ProductAffected versionsFixed in
Gitea < 28.3.0 28.3.0

References