---
id: CVE-2025-68939
title: >-
  Gitea before 1.23.0 allows attackers to add attachments with forbidden file
  extensions by editing an attachment name via an attachment API.
summary: >-
  Gitea before 1.23.0 allows attackers to add attachments with forbidden file
  extensions by editing an attachment name via an attachment API.
severity: high
cvss: 8.2
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:L'
cwe:
  - CWE-424
vendor: gitea
product: gitea
affected:
  - gitea < 1.23.0
patched:
  - gitea 1.23.0
published: '2025-12-26'
updated: '2026-10-13'
sourceUpdated: '2026-10-13T10:10:00.193'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-68939'
references:
  - url: 'https://blog.gitea.com/release-of-1.23.0/'
    label: cve@mitre.org
  - url: 'https://github.com/go-gitea/gitea/pull/32151'
    label: cve@mitre.org
  - url: 'https://github.com/go-gitea/gitea/releases/tag/v1.23.0'
    label: cve@mitre.org
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2025-68939'
  - url: 'https://blog.gitea.com/release-of-1.23.0'
  - url: 'https://github.com/go-gitea/gitea'
  - url: >-
      https://github.com/go-gitea/gitea/commit/7adc4717ec8e4f8fe678010866e936cf024f498d
  - url: 'https://github.com/advisories/GHSA-263q-5cv3-xq9g'
tags:
  - nvd
  - osv
  - go
  - ghsa
epss: 0.00332
epssPercentile: 0.26216
aliases:
  - GHSA-263q-5cv3-xq9g
  - BIT-gitea-2025-68939
  - GO-2025-4261
ecosystem: go
ingestedAt: '2026-09-12T03:13:01.744Z'
---

## Overview

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

## Affected

- `gitea < 1.23.0`

## Remediation

Upgrade past the affected range:

- `gitea 1.23.0`

## Package advisory (CVE-2025-68939)

Affected packages:

- `code.gitea.io/gitea`

Source: https://osv.dev/vulnerability/GHSA-263q-5cv3-xq9g
