Improper Protection of Alternate Path Affecting code.gitea.io/gitea/services/attachment package, versions <1.23.0-rc0


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.34% (27th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-CODEGITEAIOGITEASERVICESATTACHMENT-14723246
  • published30 Dec 2025
  • disclosed26 Dec 2025
  • creditUnknown

Introduced: 26 Dec 2025

CVE-2025-68939  (opens in a new tab)
CWE-424  (opens in a new tab)

How to fix?

Upgrade code.gitea.io/gitea/services/attachment to version 1.23.0-rc0 or higher.

Overview

Affected versions of this package are vulnerable to Improper Protection of Alternate Path due to insufficient validation in attachment editing APIs. An attacker can upload files with restricted extensions by modifying the attachment name, leading to unauthorized file uploads and further compromise.

CVSS Base Scores

version 4.0
version 3.1