cvelo
P2 · HighCVSS 8.8EPSS 0.4%

Gitea RubyGems compact index injection through package metadata

  • CVE-2026-118389
  • EUVD-2026-126116

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.

Text from the CVE.org record.

Recommendation

  • Gitea

    • If you run a version before 28.3.0update to 28.3.0 or later

Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • Gitea

    Affected versionsFixed in
    before 28.3.028.3.0

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.