Skip to main content

Huawei HarmonyOS CVE-2025-58298

MEDIUM
Stack-based Buffer Overflow (CWE-121)
2025-10-11 psirt@huawei.com
5.5
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain low-priv local app execution
  2. Delivery
    Supply crafted package data to pkg mgmt module
  3. Exploit
    Overflow stack buffer (CWE-121)
  4. Execution
    Crash package management service
  5. Impact
    Local denial of service

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Stack buffer bounds checking
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires local access to a HarmonyOS 5.0.1 or 5.1.0 device with the ability to execute code at low privilege (PR:L), e.g. via an installed app, and the ability to feed crafted input to the package management module. Exploitation is limited by the local-only attack vector (no remote/network reach) and the low-privilege foothold prerequisite; impact is confined to availability (service crash/DoS) with no confidentiality or integrity effect, and no user interaction is needed once local access is obtained.

Impact

This is a genuinely moderate, availability-only issue rather than a top-tier priority. The CVSS 3.1 vector (AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H, base 5.5) is internally consistent: a local attacker with low privileges triggers a stack-based buffer overflow (CWE-121) in the HarmonyOS package management module, impacting only availability (C:N/I:N/A:H) - no confidentiality or integrity loss. All exploitation-likelihood signals point low: EPSS is 0.09% (0th percentile), there is no CISA KEV listing, and no public exploit code was identified. The local attack vector (AV:L) is the dominant risk-limiter - an attacker must already be able to run code or an app on the device, so this is a local DoS / crash primitive, not a remotely exploitable flaw. One caveat worth noting: the tags assert 'Buffer Overflow'/'Stack Overflow' (matching CWE-121), yet the vendor constrained impact strictly to availability; stack overflows can sometimes yield code execution, so the A:H-only scoping reflects Huawei's assessment and should be taken at face value absent further detail. The free-text description ('Data processing error') is vague and does not independently corroborate the stack-overflow mechanism - that comes from the CWE and tags.

Exploit ScenarioDerived

A malicious or compromised low-privilege app installed on a HarmonyOS 5.0.1 or 5.1.0 device supplies crafted package data to the package management module, overflowing a stack buffer and crashing or destabilizing the service. The result is a local denial of service against package-management functionality. No public proof-of-concept exploit has been identified.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 01, 2026

A stack-based buffer overflow in the HarmonyOS package management module allows locally-positioned code running at low privilege to feed crafted input into the component and crash or destabilize it, affecting Huawei HarmonyOS 5.0.1 and 5.1.0 devices. Impact is availability-only (CVSS 5.5, AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H) - there is no confidentiality or integrity effect and no user interaction is required once the low-privilege foothold is obtained, for example through an installed app. No public exploit code has been identified at time of analysis, EPSS is 0.09% (0th percentile), and the CVE is not listed in CISA KEV; consistent with the independent assessment, this is a genuinely moderate, availability-only issue rather than a top-tier priority.

RemediationAI

Apply the fixed HarmonyOS release documented in Huawei's October 2025 consumer security bulletin at https://consumer.huawei.com/en/support/bulletin/2025/10/ ; that bulletin is the vendor's authoritative remediation source, and an exact fixed build number is not specified in the provided intelligence, so the version listed there should be treated as the patch version rather than one inferred from this report (patch status: available per vendor advisory). Users should apply available HarmonyOS system updates on 5.0.1 and 5.1.0 devices via Settings > System & updates. As compensating controls until the update is installed: restrict application installation to trusted, vendor-signed sources and review or remove low-privilege apps that interact with the package management module - the trade-off is reduced app flexibility and manual curation effort; audit for repeated package manager crashes or reboots, since exploitation manifests as availability loss rather than data compromise; and treat local low-privilege code execution (for example a malicious installed app) as the prerequisite to exploit, so hardening app-distribution and permission review reduces exposure. Note that no vendor patch workaround (such as disabling the package manager) is realistic on a shipping mobile OS, which makes timely platform updates the primary mitigation.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The root cause class is CWE-121 (stack-based buffer overflow), reflected in the source tags 'Buffer Overflow' and 'Stack Overflow'. The vulnerable component is the HarmonyOS package management module, which handles install/update package metadata and is reported as suffering a data processing error when parsing malformed input - a stack-allocated buffer is written past its bounds, corrupting adjacent stack data and typically terminating the affected process (availability impact) rather than granting control of it. The CVSS v3.1 vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H and the independently assessed vector agree exactly: exploitation is confined to the local attack surface (AV:L) with no network reach, requires an attacker already executing at low privilege (PR:L), needs no user interaction (UI:N), stays within the same security scope (S:U), and produces only a high availability impact (A:H) with no C/I effect. Affected builds are identified via the CPE entries cpe:2.3:o:huawei:harmonyos:5.0.1:*:*:*:*:*:*:* and cpe:2.3:o:huawei:harmonyos:5.1.0:*:*:*:*:*:*:*, indicating operating-system-level firmware on the 5.0.1 and 5.1.0 branches. The practical exploit path is an installed local app that can exercise the package management interfaces with crafted package data; the local-only vector and the low-privilege prerequisite materially cap the practical risk.

Know when Harmonyos gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 5.5 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 5.5 MEDIUM

Local app-level trigger gives AV:L and PR:L with no user interaction; stack overflow is reliably reachable (AC:L); impact is availability-only per vendor, so C:N/I:N/A:H.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

DescriptionNVD

Data processing error vulnerability in the package management module. Successful exploitation of this vulnerability may affect availability.

Threat Intelligence Overview

EPSS Score
0.1%
Top 100% exploitable
Prevalence
High
Huawei HarmonyOS ships on a very large consumer-device install base
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

28
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

A stack-based buffer overflow occurs when a program writes more data to a buffer located on the stack than it was allocated to hold.

Affected Products (CPE)NVD

cpe:2.3:o:huawei:harmonyos:5.0.1:*:*:*:*:*:*:*
cpe:2.3:o:huawei:harmonyos:5.1.0:*:*:*:*:*:*:*
CVE-2026-34865 CRITICAL
10.0 Apr 13

Out-of-bounds heap write in Huawei HarmonyOS WEB module allows unauthenticated remote attackers to execute arbitrary cod

CVE-2024-32991 CRITICAL
9.8 May 14

Permission verification vulnerability in the wpa_supplicant module Impact: Successful exploitation of this vulnerability

CVE-2023-46773 CRITICAL
9.8 Dec 06

Permission management vulnerability in the PMS module. Rated critical severity (CVSS 9.8), this vulnerability is remotel

CVE-2023-44116 CRITICAL
9.8 Oct 11

Vulnerability of access permissions not being strictly verified in the APPWidget module.Successful exploitation of this

CVE-2023-44105 CRITICAL
9.8 Oct 11

Vulnerability of permissions not being strictly verified in the window management module.Successful exploitation of this

CVE-2023-44106 CRITICAL
9.8 Oct 11

API permission management vulnerability in the Fwk-Display module.Successful exploitation of this vulnerability may caus

CVE-2023-41297 CRITICAL
9.8 Sep 25

Vulnerability of defects introduced in the design process in the HiviewTunner module. Rated critical severity (CVSS 9.8)

CVE-2023-41294 CRITICAL
9.8 Sep 25

The DP module has a service hijacking vulnerability.Successful exploitation of this vulnerability may affect some Super

CVE-2023-39405 CRITICAL
9.8 Aug 13

Vulnerability of out-of-bounds parameter read/write in the Wi-Fi module. Rated critical severity (CVSS 9.8), this vulner

CVE-2023-37242 CRITICAL
9.8 Jul 06

Vulnerability of commands from the modem being intercepted in the atcmdserver module. Rated critical severity (CVSS 9.8)

CVE-2022-46327 CRITICAL
9.8 Dec 20

Some smartphones have configuration issues. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitab

CVE-2022-46326 CRITICAL
9.8 Dec 20

Some smartphones have the out-of-bounds write vulnerability. Rated critical severity (CVSS 9.8), this vulnerability is r

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy