Security Vulnerability Report
中文
CVE-2025-25277 CVSS 6.3 MEDIUM

CVE-2025-25277

Published: 2026-03-16 14:17:57
Last Modified: 2026-03-17 19:56:01

Description

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

CVSS Details

CVSS Score
6.3
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/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 < 5.1.1
OpenHarmony v5.1.0
OpenHarmony v5.0.x及更早版本

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// CVE-2025-25277 PoC - Type Confusion in OpenHarmony pre-installed apps // This is a conceptual PoC demonstrating the type confusion vulnerability // Note: Actual exploitation requires specific context and device access // Target: OpenHarmony v5.1.0 and prior versions // Attack Vector: Local access with low privileges // Example malicious data structure to trigger type confusion const maliciousPayload = { // Trigger type confusion by providing incompatible type incompatibleType: "string_as_number", // Bypass type checks bypassFlag: true, // Code execution payload execCommand: "$EXECUTE_ARBITRARY_CODE$" }; // Attempt to trigger vulnerability through IPC interface // In real scenario, this would be sent to vulnerable pre-installed app async function triggerVulnerability() { try { // Access vulnerable app component const app = await getPreInstalledApp("vulnerable_service"); // Send malicious payload that triggers type confusion // The app expects numeric type but receives string const result = await app.processData({ param: maliciousPayload.incompatibleType, type: "number" // Intended type that gets confused }); // If vulnerability exists, arbitrary code may execute console.log("Payload sent, checking for code execution..."); } catch (error) { console.log("Error occurred - vulnerability may be patched"); } } // Mitigation: Update to OpenHarmony v5.1.1 or later // Apply proper type checking and validation before processing data

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-25277", "sourceIdentifier": "[email protected]", "published": "2026-03-16T14:17:57.090", "lastModified": "2026-03-17T19:56:01.257", "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 using incompatible type. 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 el uso de un tipo incompatible. 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:H/PR:L/UI:N/S:U/C:H/I:H/A:N", "baseScore": 6.3, "baseSeverity": "MEDIUM", "attackVector": "LOCAL", "attackComplexity": "HIGH", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "NONE"}, "exploitabilityScore": 1.0, "impactScore": 5.2}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 7.0, "baseSeverity": "HIGH", "attackVector": "LOCAL", "attackComplexity": "HIGH", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.0, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-843"}]}], "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-11.md", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}