Security Vulnerability Report
中文
CVE-2025-34449 CVSS 9.1 CRITICAL

CVE-2025-34449

Published: 2025-12-18 22:15:56
Last Modified: 2026-01-03 21:15:44

Description

Genymobile/scrcpy versions up to and including 3.3.3, prior to commit 3e40b24, contain a buffer overflow vulnerability in the sc_device_msg_deserialize() function. A compromised device can send crafted messages that cause out-of-bounds reads, which may result in memory corruption or a denial-of-service condition. This vulnerability may allow further exploitation on the host system.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:genymotion:scrcpy:*:*:*:*:*:*:*:* - VULNERABLE
scrcpy <= 3.3.3
scrcpy < commit 3e40b24

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
/* CVE-2025-34449 PoC - Buffer Overflow in sc_device_msg_deserialize() This PoC demonstrates sending a malformed device message to trigger the buffer overflow vulnerability in scrcpy versions <= 3.3.3 */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdint.h> // Malicious message structure for scrcpy protocol typedef struct { uint32_t type; uint32_t size; char *payload; } device_msg_t; // Craft a malicious message that exceeds buffer boundaries device_msg_t *craft_malicious_message(size_t overflow_size) { device_msg_t *msg = (device_msg_t *)malloc(sizeof(device_msg_t)); if (!msg) return NULL; msg->type = 0x01; // DEVICE_MSG_TYPE_CLIPBOARD msg->size = overflow_size; // Allocate payload larger than expected buffer size msg->payload = (char *)malloc(overflow_size); if (!msg->payload) { free(msg); return NULL; } // Fill with pattern to identify overflow in memory memset(msg->payload, 0x41, overflow_size); return msg; } // Simulate vulnerable deserialization function int sc_device_msg_deserialize_vulnerable(device_msg_t *msg) { // Vulnerable: No size validation before buffer write char buffer[256]; // This copy operation can overflow if msg->size > 256 memcpy(buffer, msg->payload, msg->size); return 0; } int main(int argc, char *argv[]) { size_t overflow_size = 1024; // Exceeds 256-byte buffer printf("[*] CVE-2025-34449 PoC\n"); printf("[*] Crafting malicious message with size: %zu\n", overflow_size); device_msg_t *msg = craft_malicious_message(overflow_size); if (msg) { printf("[*] Sending malicious message to trigger overflow...\n"); sc_device_msg_deserialize_vulnerable(msg); printf("[!] Buffer overflow triggered!\n"); free(msg->payload); free(msg); } return 0; }

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-34449", "sourceIdentifier": "[email protected]", "published": "2025-12-18T22:15:56.003", "lastModified": "2026-01-03T21:15:43.507", "vulnStatus": "Modified", "cveTags": [], "descriptions": [{"lang": "en", "value": "Genymobile/scrcpy versions up to and including 3.3.3, prior to commit 3e40b24, contain a buffer overflow vulnerability in the sc_device_msg_deserialize() function. A compromised device can send crafted messages that cause out-of-bounds reads, which may result in memory corruption or a denial-of-service condition. This vulnerability may allow further exploitation on the host system."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/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": "LOCAL", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "NONE", "userInteraction": "NONE", "vulnConfidentialityImpact": "NONE", "vulnIntegrityImpact": "NONE", "vulnAvailabilityImpact": "HIGH", "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:H/I:N/A:H", "baseScore": 9.1, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 5.2}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-502"}]}, {"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-502"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:genymotion:scrcpy:*:*:*:*:*:*:*:*", "versionEndExcluding": "3.3.4", "matchCriteriaId": "987BCD25-D3DC-4214-B94E-8735EF81ECD9"}]}]}], "references": [{"url": "https://github.com/Genymobile/scrcpy/commit/3e40b24", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/Genymobile/scrcpy/issues/6415", "source": "[email protected]", "tags": ["Exploit", "Issue Tracking", "Patch"]}, {"url": "https://github.com/marlinkcyber/advisories/blob/main/advisories/MCSAID-2025-003-scrcpy-global-buffer-overflow.md", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}, {"url": "https://www.vulncheck.com/advisories/genymobile-scrcpy-global-buffer-overflow", "source": "[email protected]", "tags": ["Third Party Advisory"]}, {"url": "https://github.com/marlinkcyber/advisories/blob/main/advisories/MCSAID-2025-003-scrcpy-global-buffer-overflow.md", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "tags": ["Exploit", "Third Party Advisory"]}]}}