CVE-2024-38386

8.4 HIGH

📋 TL;DR

This vulnerability allows a local attacker to execute arbitrary code in pre-installed applications on OpenHarmony devices through an out-of-bounds write. It affects OpenHarmony v4.1.0 and earlier versions, potentially compromising device security and user data.

💻 Affected Systems

Products:
  • OpenHarmony
Versions: v4.1.0 and prior versions
Operating Systems: OpenHarmony
Default Config Vulnerable: ⚠️ Yes
Notes: Affects pre-installed applications specifically; custom or third-party apps may not be vulnerable.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete device compromise with attacker gaining root privileges, installing persistent malware, accessing sensitive user data, and controlling device functions.

🟠

Likely Case

Local privilege escalation allowing attacker to execute code with elevated permissions in pre-installed apps, potentially accessing app data and system resources.

🟢

If Mitigated

Limited impact if proper app sandboxing and memory protection mechanisms are enforced, restricting damage to specific app contexts.

🌐 Internet-Facing: LOW - Requires local access to device; not directly exploitable over network.
🏢 Internal Only: HIGH - Local attackers with physical or remote shell access can exploit this to gain elevated privileges.

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: UNKNOWN
Unauthenticated Exploit: ✅ No
Complexity: MEDIUM

Requires local access and knowledge of memory layout; out-of-bounds write vulnerabilities typically require specific conditions to exploit reliably.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: OpenHarmony v4.1.1 or later

Vendor Advisory: https://gitee.com/openharmony/security/blob/master/zh/security-disclosure/2024/2024-09.md

Restart Required: Yes

Instructions:

1. Check current OpenHarmony version. 2. Update to v4.1.1 or later via official update channels. 3. Reboot device after update completes.

🔧 Temporary Workarounds

Restrict local access

all

Limit physical and remote shell access to devices to reduce attack surface

Disable unnecessary pre-installed apps

all

Disable or remove unused pre-installed applications to reduce potential targets

🧯 If You Can't Patch

  • Implement strict access controls to prevent unauthorized local access to devices
  • Monitor for unusual process behavior or privilege escalation attempts

🔍 How to Verify

Check if Vulnerable:

Check OpenHarmony version: if v4.1.0 or earlier, device is vulnerable

Check Version:

getprop ro.build.version.ohos

Verify Fix Applied:

Verify OpenHarmony version is v4.1.1 or later after update

📡 Detection & Monitoring

Log Indicators:

  • Unusual process creation from pre-installed apps
  • Memory access violations in system logs
  • Privilege escalation attempts

Network Indicators:

  • Not applicable - local exploit only

SIEM Query:

Process creation where parent process is pre-installed app AND privilege level changes

🔗 References

📤 Share & Export