Security Vulnerability Report
中文
CVE-2025-52458 CVSS 5.5 MEDIUM

CVE-2025-52458

Published: 2026-03-16 14:17:59
Last Modified: 2026-03-17 19:58:44

Description

in OpenHarmony v5.1.0 and prior versions allow a local attacker arbitrary code execution in pre-installed apps through out-of-bounds write. This vulnerability can be exploited only in restricted scenarios.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:o:openatom:openharmony:5.0.3:*:*:*:-:*:*:* - VULNERABLE
cpe:2.3:o:openatom:openharmony:5.1.0:*:*:*:-:*:*:* - VULNERABLE
OpenHarmony v5.1.0及所有更早版本

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// CVE-2025-52458 PoC - Out-of-Bounds Write in OpenHarmony pre-installed apps // This PoC demonstrates the vulnerability in memory handling // Note: Actual exploitation requires device access and specific conditions #include <stdio.h> #include <stdlib.h> #include <string.h> // Simulated vulnerable function void vulnerable_copy(char* dest, char* src, size_t len) { // Missing boundary check - vulnerable code pattern memcpy(dest, src, len); } int main() { // Allocate buffer with insufficient size char buffer[64]; // Malicious input that triggers OOB write char malicious_data[128]; memset(malicious_data, 0x41, 128); // Trigger the vulnerability vulnerable_copy(buffer, malicious_data, 128); printf("PoC execution completed\n"); printf("Buffer overflow triggered - OOB write demonstrated\n"); return 0; } // Usage: // 1. Obtain local access to OpenHarmony device // 2. Identify vulnerable pre-installed app // 3. Inject malicious data via IPC or file input // 4. Trigger the vulnerable code path // 5. Achieve arbitrary code execution

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-52458", "sourceIdentifier": "[email protected]", "published": "2026-03-16T14:17:59.287", "lastModified": "2026-03-17T19:58:44.437", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "in OpenHarmony v5.1.0 and prior versions allow a local attacker arbitrary code execution in pre-installed apps through out-of-bounds write. This vulnerability can be exploited only in restricted scenarios."}, {"lang": "es", "value": "en OpenHarmony v5.1.0 y versiones anteriores permiten a un atacante local ejecución de código arbitrario en aplicaciones preinstaladas mediante escritura fuera de límites. Esta vulnerabilidad puede ser explotada solo en escenarios restringidos."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N", "baseScore": 5.5, "baseSeverity": "MEDIUM", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 1.8, "impactScore": 3.6}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 7.8, "baseSeverity": "HIGH", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-787"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:openatom:openharmony:5.0.3:*:*:*:-:*:*:*", "matchCriteriaId": "191FD913-141A-4354-81C3-96C87D4D7CAE"}, {"vulnerable": true, "criteria": "cpe:2.3:o:openatom:openharmony:5.1.0:*:*:*:-:*:*:*", "matchCriteriaId": "0BE5D50A-ABFA-476E-BAE6-41EFEAC1F486"}]}]}], "references": [{"url": "https://gitcode.com/openharmony/security/tree/master/zh/security-disclosure/2025/2025-10.md", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}