CVE-2025-68939CWE-424

CVE-2025-68939

High · published December 26, 2025

CVSS v3.1
8.2
EPSS
0%
Percentile
25.1
In the wild
Unconfirmed
What it is

⚡ Gitea before version 1.23.0 has a sneaky flaw that lets attackers slip in forbidden file types through the attachment API — it’s like getting a pizza delivered with anchovies, even when you specifically said ‘no fish’! 🍕 This vulnerability is akin to a hotel that allows guests to check in without ensuring they meet the requirements — anyone could bring in a hidden surprise, like a pet iguana, even if they're not supposed to! An attacker could exploit this oversight to upload potentially malicious files disguised as harmless attachments, leading to unauthorized access or even a full system compromise. Imagine the havoc of an unwanted guest in your hotel — they could wreak havoc before you even notice they're there!

Put simply

This vulnerability is akin to a hotel that allows guests to check in without ensuring they meet the requirements — anyone could bring in a hidden surprise, like a pet iguana, even if they're not supposed to! This flaw in Gitea allows attackers to manipulate attachment names via the API, bypassing restrictions on forbidden file extensions and potentially uploading malicious files.

What to do

An attacker could exploit this oversight to upload potentially malicious files disguised as harmless attachments, leading to unauthorized access or even a full system compromise. Imagine the havoc of an unwanted guest in your hotel — they could wreak havoc before you even notice they're there! To secure your Gitea instance, update to version 1.23.0 immediately. Additionally, review your attachment handling policies to ensure all file types are properly validated and sanitized. Don't overlook your security practices! You've got this! Secure your Gitea, and keep that iguana out of your system! 🛡️

The record
Technical detail
CVSS v3.1
8.2 · HIGH
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:L
CVSS v4.0
Not supplied
EPSS
0.00332 · 25.1th percentile
Weakness
CWE-424 · Improper Protection of Alternate Path
Published
2025-12-26T08:15Z
Affected products (1)
ProductVersionsFixed in
gitea/gitea< 1.23.01.23.0
References (3)
EPSS history
Timeline
  • 26 DEC 02:03Z
    Gitea before 1.23.0 allows attackers to add attachments with forbidden file extensions by editing an attachment name via an attachment API
    cvelistv5