> ## Content Index
> Fetch the complete content index at: https://ping2prompt.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Gitea 28.3.0 fixes RubyGems index poisoning flaw (CVE-2026-118389)
- URL: https://ping2prompt.com/gitea-2830-fixes-rubygems-index-poisoning-flaw-cve-2026-118389/
- Published: 2026-11-16T19:12:31.000Z
- Updated: 2026-11-16T22:54:33.000Z
- Description: Gitea 28.3.0 fixes a high-severity RubyGems flaw (CVSS 8.1) where newlines in package metadata let attackers forge index entries, so bundler can install a malicious gem. Instances hosting RubyGems packages on 28.2.0 or earlier should update to 28.3.0.
- Author: Ping2Prompt Newsroom
- Tags: Gitea, Self-hosted, Vulnerabilities, High, #short-ping

## What's fixed

Gitea's package registry accepts RubyGems packages whose platform, dependency name or version requirement fields contain newline characters. The compact index is line-based, so an attacker can forge phantom entries in `/versions` and fake version entries in `info/<name>`. A developer whose Gemfile names a real package can then get the attacker's gem installed by bundler as a transitive dependency.

The advisory rates it high, CVSS 8.1, with a network vector, low privileges and no user interaction. Attacker code can run on developer machines through gem install hooks, and the victim sees nothing odd because the Gemfile names a real package. Gitea 28.2.0 and earlier are affected, and 28.3.0 is the patched version. The advisory does not say whether the flaw is exploited in the wild.

## What to do

If your Gitea instance hosts RubyGems packages, update to 28.3.0\. The fix, commit `c52e7c0c`, rejects `\r` and `\n` in those metadata fields before they are stored. No workaround for unpatched instances is given, so updating is the only listed remedy.

| Product | Affected  | Fixed  |
| ------- | --------- | ------ |
| Gitea   | <= 28.2.0 | 28.3.0 |

## Sources

- [github.com/go-gitea/gitea/security/advisories/GHSA-49c9-hm8q-6rvq](https://github.com/go-gitea/gitea/security/advisories/GHSA-49c9-hm8q-6rvq?ref=ping2prompt.com)

Image: [Photo by Towfiqu barbhuiya on Unsplash](https://unsplash.com/photos/a-golden-padlock-sitting-on-top-of-a-keyboard-FnA5pAzqhMM?utm%5Fsource=ping2prompt&utm%5Fmedium=referral)

---

This story was produced with AI assistance from the sources listed above and fact-checked against them before publication. Read our [editorial methodology](https://ping2prompt.com/about-how-we-work/) and the [corrections log](https://ping2prompt.com/corrections/). Spotted an error? Email [editor@ping2prompt.com](mailto:editor@ping2prompt.com).