CVE-2025-22835 Overview
CVE-2025-22835 is an out-of-bounds write vulnerability [CWE-787] affecting OpenHarmony v5.0.2 and prior versions. A local attacker with low privileges can leverage the flaw to achieve arbitrary code execution within pre-installed applications on the device. The vulnerability requires local access and no user interaction, but exploitation is limited to restricted scenarios according to the vendor advisory. Successful exploitation compromises confidentiality, integrity, and availability of the affected component.
Critical Impact
Local attackers can achieve arbitrary code execution in pre-installed apps by triggering an out-of-bounds memory write on affected OpenHarmony devices.
Affected Products
- OpenAtom OpenHarmony v5.0.2
- OpenAtom OpenHarmony versions prior to v5.0.2
- Devices and pre-installed applications running on affected OpenHarmony builds
Discovery Timeline
- 2025-03-04 - CVE-2025-22835 published to NVD
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-22835
Vulnerability Analysis
The vulnerability is classified as an out-of-bounds write [CWE-787] in the OpenHarmony operating system. Out-of-bounds writes occur when software writes data past the end, or before the beginning, of an intended buffer. In OpenHarmony, this memory corruption condition can be reached by a locally authenticated attacker interacting with pre-installed applications.
Because the write occurs outside the bounds of allocated memory, an attacker can corrupt adjacent data structures, function pointers, or control-flow metadata. Controlled corruption of these regions enables arbitrary code execution within the context of the affected pre-installed application. The vendor notes that exploitation is only feasible in restricted scenarios, which suggests specific preconditions on device state or app configuration.
Root Cause
The root cause is missing or insufficient bounds validation before a memory write operation inside an OpenHarmony component used by pre-installed apps. When attacker-influenced input reaches the vulnerable routine, the write index or length exceeds the allocated buffer, corrupting neighboring memory. The OpenHarmony Security Disclosure 2025 contains the vendor's technical treatment of the affected component.
Attack Vector
Exploitation requires local access to the device with low-privileged credentials and no user interaction. An attacker delivers a crafted payload to the vulnerable pre-installed application, which triggers the out-of-bounds write during input processing. Once memory is corrupted, the attacker steers execution to attacker-controlled code running with the privileges of the targeted pre-installed app. Because the flaw is local and constrained to restricted scenarios, remote mass exploitation is not viable.
No public proof-of-concept exploit is currently listed for CVE-2025-22835, and the vulnerability is not tracked in the CISA Known Exploited Vulnerabilities catalog.
Detection Methods for CVE-2025-22835
Indicators of Compromise
- Unexpected crashes or restarts of pre-installed OpenHarmony applications, which can indicate failed out-of-bounds write attempts.
- Anomalous child processes or code execution originating from pre-installed app sandboxes.
- Unauthorized modifications to files or configuration owned by pre-installed applications.
Detection Strategies
- Monitor OpenHarmony device logs (hilog) for repeated segmentation faults or abort signals tied to pre-installed applications.
- Baseline the expected behavior of pre-installed apps and alert on deviations such as spawning shells or accessing unusual system interfaces.
- Correlate local privilege boundary crossings with process telemetry to surface exploitation attempts.
Monitoring Recommendations
- Centralize device telemetry and crash reports into a SIEM or data lake for longitudinal analysis across fleets.
- Track OpenHarmony version and patch level as an inventory attribute to identify unpatched devices exposed to CVE-2025-22835.
- Review vendor security bulletins from OpenAtom on a recurring cadence to catch related fixes.
How to Mitigate CVE-2025-22835
Immediate Actions Required
- Identify all OpenHarmony devices running v5.0.2 or earlier and prioritize them for patching.
- Apply the fixes referenced in the OpenHarmony Security Disclosure 2025 as soon as they are available for your device model.
- Restrict local access to affected devices, especially shared or kiosk deployments.
Patch Information
OpenAtom addresses CVE-2025-22835 in OpenHarmony releases following v5.0.2. Device operators should track updates through the OpenHarmony Security Disclosure 2025 bulletin and vendor channels for their specific hardware. Deploy the vendor-supplied firmware update to eliminate the out-of-bounds write condition.
Workarounds
- Limit installation of untrusted applications and restrict which local users can interact with pre-installed apps.
- Disable or remove non-essential pre-installed applications where feasible until patched firmware is deployed.
- Enforce device-level access controls and physical security to reduce the local attack surface.
# Check OpenHarmony version on the 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.

