Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2024-47797 Overview
CVE-2024-47797 is an out-of-bounds write vulnerability [CWE-787] affecting OpenHarmony v4.1.0 and prior versions. A local attacker with low-privileged access can exploit the flaw to escalate from a standard user context to root and extract sensitive information from the device. The OpenAtom Foundation disclosed the issue through its November 2024 security bulletin.
The vulnerability requires local access and low privileges with no user interaction, making it a reliable post-compromise primitive on affected devices. Successful exploitation compromises confidentiality, integrity, and availability of the host system.
Critical Impact
Local privilege escalation to root with sensitive information disclosure on OpenHarmony devices running v4.1.0 and earlier.
Affected Products
- OpenAtom OpenHarmony v4.1.0
- OpenAtom OpenHarmony prior releases on the 4.x branch
- Devices and distributions built on vulnerable OpenHarmony images
Discovery Timeline
- 2024-11-05 - CVE-2024-47797 published to NVD
- 2024-11 - OpenHarmony security disclosure issued by OpenAtom
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2024-47797
Vulnerability Analysis
The vulnerability is classified as an out-of-bounds write [CWE-787]. A component of OpenHarmony writes data past the bounds of an allocated buffer when handling attacker-influenced input from a local, authenticated context. The write corrupts adjacent memory structures that influence privilege checks or control flow within privileged code paths.
Because the vulnerable code executes in a context that transitions to root, an attacker who shapes memory before triggering the write can promote a common user process to root privileges. The same memory corruption primitive also enables disclosure of sensitive data residing in adjacent kernel or service memory regions.
The attack vector is Local, attack complexity is Low, and no user interaction is required. The vulnerability impacts confidentiality, integrity, and availability of the device.
Root Cause
The root cause is missing or insufficient bounds validation before a memory write operation in an OpenHarmony system component. OpenAtom's advisory identifies the condition as an out-of-bounds write that permits a common permission to be upgraded to root. See the OpenHarmony Security Disclosure 2024 for component-level details.
Attack Vector
An attacker needs local access to the device and the ability to execute code as a low-privileged user. The attacker invokes the vulnerable interface with crafted parameters that produce an out-of-bounds write. The corrupted state is then used to elevate the attacker's process to root and to read sensitive information from adjacent memory.
No exploit is publicly available in Exploit-DB and the CVE is not listed in the CISA Known Exploited Vulnerabilities catalog. The EPSS score remains low, but local privilege escalation flaws are frequently chained after initial access on mobile and embedded devices.
Technical specifics of the vulnerable component are described in the vendor advisory. See the OpenHarmony Security Disclosure 2024 for the authoritative description.
Detection Methods for CVE-2024-47797
Indicators of Compromise
- Unexpected processes spawned by low-privileged user accounts running with uid=0 or elevated capabilities.
- Kernel log entries referencing memory corruption, panic traces, or SELinux denials in system services on OpenHarmony devices.
- Unauthorized reads of sensitive files such as credential stores, keystore blobs, or system configuration shortly after installing or launching a new application.
Detection Strategies
- Inventory devices and build images to identify any running OpenHarmony v4.1.0 or earlier.
- Monitor for anomalous privilege transitions where a user-mode process gains root without an expected setuid or policy allowance.
- Compare installed system component versions against the fixed versions listed in the OpenHarmony November 2024 advisory.
Monitoring Recommendations
- Collect kernel audit logs and system service telemetry from OpenHarmony devices into a centralized logging platform.
- Alert on repeated crashes, segmentation faults, or SELinux avc: denied events in privileged services, which can indicate exploitation attempts.
- Track application installation events and correlate with subsequent privileged activity on the same device.
How to Mitigate CVE-2024-47797
Immediate Actions Required
- Identify all OpenHarmony devices and builds at version 4.1.0 or earlier and prioritize them for patching.
- Apply the OpenHarmony fixes referenced in the November 2024 security disclosure to vulnerable components.
- Restrict installation of untrusted third-party applications on affected devices until patches are deployed.
Patch Information
OpenAtom addressed CVE-2024-47797 as part of the OpenHarmony November 2024 security disclosure. Device vendors and distribution maintainers should rebuild images with the patched component and push updates to deployed devices. Refer to the OpenHarmony Security Disclosure 2024 for component identifiers and commit references.
Workarounds
- Limit local access to affected devices and disable developer or debugging interfaces that expose the vulnerable path.
- Enforce application allowlisting so only vetted applications can run on OpenHarmony devices pending patch deployment.
- Monitor privilege transitions and investigate any unexpected root-level activity on devices that cannot yet be updated.
# Verify OpenHarmony build version on a device
param get const.ohos.version.security_patch
param get const.product.software.version
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

