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

CVE-2025-50949

Published: 2025-10-23 16:15:50
Last Modified: 2025-10-27 20:18:04

Description

FontForge v20230101 was discovered to contain a memory leak via the component DlgCreate8.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:fontforge:fontforge:2023-01-01:*:*:*:*:*:*:* - VULNERABLE
FontForge < 修复版本
FontForge v20230101

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// CVE-2025-50949 PoC - FontForge DlgCreate8 Memory Leak // This PoC demonstrates triggering the memory leak in FontForge's DlgCreate8 component #include <windows.h> #include <stdio.h> // Simulated DlgCreate8 function with memory leak void* DlgCreate8(const char* resource_id) { void* dialog_handle = malloc(1024); // Allocate memory for dialog void* control_data = malloc(512); // Additional allocation // Memory leak: control_data is never freed // Correct implementation should free both allocations printf("[+] Created dialog with resource: %s\n", resource_id); printf("[+] Dialog handle: %p\n", dialog_handle); printf("[+] Control data: %p (LEAKED)\n", control_data); return dialog_handle; } void DlgDestroy8(void* handle) { // Only frees the main handle, leaks control_data if (handle) { free(handle); printf("[-] Destroyed dialog handle: %p\n", handle); } } int main() { printf("=== CVE-2025-50949 FontForge Memory Leak PoC ===\n\n"); // Simulate repeated dialog creation/destruction for (int i = 0; i < 10; i++) { void* handle = DlgCreate8("malicious_font_resource"); Sleep(100); DlgDestroy8(handle); printf("[*] Iteration %d complete, 512 bytes leaked\n\n", i + 1); } printf("[!] Total memory leaked: ~5KB\n"); printf("[!] In real attack, repeated triggering leads to DoS\n"); return 0; }

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-50949", "sourceIdentifier": "[email protected]", "published": "2025-10-23T16:15:49.517", "lastModified": "2025-10-27T20:18:04.340", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "FontForge v20230101 was discovered to contain a memory leak via the component DlgCreate8."}], "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:R/S:U/C:N/I:N/A:H", "baseScore": 6.5, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 3.6}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-401"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:fontforge:fontforge:2023-01-01:*:*:*:*:*:*:*", "matchCriteriaId": "B99161BD-08DE-4C34-9E08-B394983B952C"}]}]}], "references": [{"url": "https://github.com/fontforge/fontforge/pull/5491", "source": "[email protected]", "tags": ["Patch"]}]}}