# Gitea Missing Authorization vulnerability in code.gitea.io/gitea

Advisory record · `GHSA-jr9c-h74f-2v28`

- **Identifiers:** `GHSA-jr9c-h74f-2v28` · `BIT-gitea-2022-0905` · `CVE-2022-0905` · `GO-2022-0609`
- **State:** Confirmed
- **Severity:** CVSS 6.5 Medium
- **Critical:** No
- **Weakness (CWE):** [CWE-862](https://cwe.mitre.org/data/definitions/862.html)
- **Tags:** [Broken access control](https://agentprime.io/advisories/tag/access-control.md)
- **Published:** 21 Aug 2024
- **Updated:** 3 Mar 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 21 Aug 2024, 15:11 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `code.gitea.io/gitea` (Go): affected `<1.16.4`; fixed in `1.16.4`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> Gitea (code.gitea.io/gitea) versions before 1.16.4 are affected by a missing authorization vulnerability. The source gives few details about who can exploit it or what access they gain. Upgrade to Gitea 1.16.4 or later.

Written 10 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 6.5 Medium, CVSS 3.0: `CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N`, from CNA (@huntrdev)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0085, the 58th percentile, on 21 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

This record came from the full history of the GitHub Advisory Database, published 21 Aug 2024. New records show when each source confirmed them.

## Sources

- [GitHub Advisory Database: GHSA-jr9c-h74f-2v28](https://github.com/advisories/GHSA-jr9c-h74f-2v28)
- [OSV: GHSA-jr9c-h74f-2v28](https://osv.dev/vulnerability/GHSA-jr9c-h74f-2v28)
- <https://github.com/advisories/GHSA-jr9c-h74f-2v28>
- <https://nvd.nist.gov/vuln/detail/CVE-2022-0905>
- <https://github.com/go-gitea/gitea/commit/1314f38b59748397b3429fb9bc9f9d6bac85d2f2>
- <https://github.com/go-gitea/gitea/commit/3e5c844a7758fa29126d201f4f98bf21bca6d314>
- <https://huntr.dev/bounties/8d221f92-b2b1-4878-bc31-66ff272e5ceb>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-jr9c-h74f-2v28>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-jr9c-h74f-2v28/>. Everything for agents: <https://agentprime.io/llms.txt>.
