# Gitea allows attackers to add attachments with forbidden file extensions

Advisory record · `GHSA-263q-5cv3-xq9g`

- **Identifiers:** `GHSA-263q-5cv3-xq9g` · `BIT-gitea-2025-68939` · `CVE-2025-68939` · `GO-2025-4261`
- **State:** Confirmed
- **Severity:** CVSS 8.2 High
- **Critical:** No
- **Weakness (CWE):** [CWE-424](https://cwe.mitre.org/data/definitions/424.html)
- **Tags:** [CWE-424](https://agentprime.io/advisories/tag/cwe-424.md)
- **Published:** 26 Dec 2025
- **Updated:** 3 Nov 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 26 Dec 2025, 03:30 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.23.0-rc0`; fixed in `1.23.0-rc0`

## 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.23.0 are affected. An attacker who can edit an attachment through the attachment API can give it a file extension that is normally forbidden. No fixed version is listed in the source, so the advisory gives no upgrade target; the source gives few other details.

Written 1 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

- 8.2 High, CVSS 3.1: `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:L`, from CNA (mitre)

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

## Timeline

- 26 Dec 2025, 03:30 UTC: [Confirmed by GitHub Advisory Database](https://github.com/advisories/GHSA-263q-5cv3-xq9g)
- 31 Oct 2026, 14:14 UTC: First seen by agentprime
- 31 Oct 2026, 14:14 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-263q-5cv3-xq9g)

## Sources

- [GitHub Advisory Database: GHSA-263q-5cv3-xq9g](https://github.com/advisories/GHSA-263q-5cv3-xq9g)
- [OSV: GHSA-263q-5cv3-xq9g](https://osv.dev/vulnerability/GHSA-263q-5cv3-xq9g)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-68939>
- <https://github.com/go-gitea/gitea/pull/32151>
- <https://github.com/go-gitea/gitea/commit/7adc4717ec8e4f8fe678010866e936cf024f498d>
- <https://blog.gitea.com/release-of-1.23.0>
- <https://github.com/go-gitea/gitea>
- <https://github.com/go-gitea/gitea/releases/tag/v1.23.0>

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-263q-5cv3-xq9g>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-263q-5cv3-xq9g/>. Everything for agents: <https://agentprime.io/llms.txt>.
