☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
Honor logo [ WEBSITE ] [ VENDOR STATS ]
CVSS: 6.3 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (Assumed based on file write + code exec) 🐛 CWE-22
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2024-47151

CVE-2024-47151 Code Execution in Honor
📅 PUBLISHED: 2024-12-26 11:09 UTC 🔄 UPDATED: 2026-08-21 19:27 UTC
[ PATCH UNDER REVIEW ↓ ] Remains UNDER REVIEW until an independent source confirms the fix
[ DEFENSE PATCH ↓ ]
💣 PoC: Public
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.14%
👁️
0.14% probability
3.4× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1083
👁️
MITRE ATT&CK Tactic - Describes the strategy hackers use to execute this attack.
Country: China License: Commercial
VULNERABLE: version not auto-detected — verify your deployed version locally
CVSS VECTOR BREAKDOWN 6.3
AV: L Attack Vector Local
AC: L Attack Complexity Low
PR: L Privileges Required Low
UI: N User Interaction None
S: U Scope Unchanged
C: H Confidentiality High
I: H Integrity High
A: H (Assumed based on file write + code exec) Availability H (Assumed based on file write + code exec)
6.3
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2024-47151 is a file writing vulnerability affecting certain Honor products. Successful exploitation could allow an attacker to achieve arbitrary code execution on the target device. The vulnerability is currently unpatched, and no public proof-of-concept (PoC) or exploit code has been released. The EPSS score is 0.0%, indicating a very low probability of exploitation in the wild at this time. However, due to the potential for code execution, this vulnerability poses a significant risk to affected devices.

⚡ AUTOMATE YOUR CVE INTELLIGENCE

This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.

›Patch confidence — UNVERIFIED to CONFIRMED, cross-referenced NVD + RHSA + Debian
›Exploit & PoC — poc_status, poc_url, has_exploit. Not in NVD.
›Shodan dorks — ready-made queries to find exposed vulnerable systems
›Detection rules — YARA · Wazuh · Elastic (all plans) · Sigma (Pro)
›pending_fields — know exactly which of 7 fields NVD hasn't processed yet
›Free backfill — data incomplete when you paid? Re-check within 30 days = 0 credits
PAYG €0.08/lookup Standard €19/mo (was €29) · 5k credits Pro €65/mo (was €99) · 20k credits FOUNDING PRICE · LOCKED FOR LIFE · ENDS 31 DEC 2026
[ FROM €19/MO ]
Free sandbox key available
No signup required

Supply Chain & Package Security

This vulnerability is not related to NPM, PyPI, Go, or Ruby packages. It is a firmware-level issue in Honor devices.

CVSS Breakdown & Threat Level

CVSS Score: 6.3 (Medium) Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (Assumed)

  • Attack Vector (AV): Local (AV:L) – The attacker requires local access to the device.
  • Attack Complexity (AC): Low (AC:L) – No special conditions are required for exploitation.
  • Privileges Required (PR): Low (PR:L) – The attacker needs low-level privileges.
  • User Interaction (UI): None (UI:N) – No user action is required.
  • Scope (S): Unchanged (S:U) – The vulnerability does not affect other components.
  • Confidentiality (C): High (C:H) – Full data access possible.
  • Integrity (I): High (I:H) – Full data modification possible.
  • Availability (A): High (A:H) – Full system compromise possible.

Threat Level: Medium. While the CVSS score is moderate, the potential for code execution makes this a serious concern for affected devices.

Deep Dive & Mechanics

The vulnerability is a file writing flaw in Honor products. The exact mechanism is unknown, but it likely involves improper validation of file paths or content during a write operation. An attacker with local access could craft a malicious file that, when written to a specific location, overwrites critical system files or injects malicious code into a privileged process.

Potential Attack Vector:

  1. Local Access: The attacker gains local access to the device (e.g., via a malicious app, USB debugging, or physical access).
  2. File Write Exploitation: The attacker exploits the file writing vulnerability to write a malicious file to a sensitive location (e.g., /system/bin/, /data/local/tmp/).
  3. Code Execution: The malicious file is executed, either by the system (e.g., a service restart) or by the attacker, leading to arbitrary code execution with the privileges of the target process.

Vulnerable vs. Patched Code

Since no patch is available, a direct code comparison is not possible. However, the vulnerability likely stems from a missing or insufficient check on file write operations.

Vulnerable Code (Hypothetical):

// Vulnerable: No path validation
void write_file(const char *user_path, const char *data) {
    FILE *fp = fopen(user_path, "w");
    if (fp) {
        fputs(data, fp);
        fclose(fp);
    }
}

Patched Code (Hypothetical):

// Patched: Path validation and sanitization
void write_file(const char *user_path, const char *data) {
    char safe_path[256];
    if (!is_path_safe(user_path, safe_path, sizeof(safe_path))) {
        return; // Reject unsafe path
    }
    FILE *fp = fopen(safe_path, "w");
    if (fp) {
        fputs(data, fp);
        fclose(fp);
    }
}

Exploitation & Lab Setup

Red Team (Offensive)

Objective: Achieve arbitrary code execution on a vulnerable Honor device.

Prerequisites:

  • Local access to the device (e.g., via a malicious app or ADB).
  • Knowledge of the vulnerable file write function.

Exploitation Steps:

  1. Identify Vulnerable Function: Reverse engineer the firmware to locate the file write function.
  2. Craft Payload: Create a malicious file (e.g., a shared library or script) that will be executed.
  3. Write Payload: Use the vulnerable function to write the payload to a location that will be executed (e.g., /data/local/tmp/exploit.so).
  4. Trigger Execution: Trigger the execution of the payload (e.g., by loading the library via LD_PRELOAD or by restarting a service).

Example (Hypothetical):

# Assuming the vulnerable function is exposed via a service
adb shell "echo 'malicious_code' > /data/local/tmp/exploit.sh"
adb shell "chmod +x /data/local/tmp/exploit.sh"
adb shell "/data/local/tmp/exploit.sh"

Blue Team (Defensive)

Objective: Detect and prevent exploitation of CVE-2024-47151.

Detection:

  • Monitor for unusual file write operations to sensitive directories.
  • Use file integrity monitoring (FIM) to detect changes to critical system files.
  • Implement application whitelisting to prevent execution of unauthorized binaries.

Prevention:

  • Apply vendor patches as soon as they become available.
  • Restrict local access to devices (e.g., disable USB debugging, use strong authentication).
  • Use security solutions that can detect and block file-based attacks.

Indicators of Compromise (IOCs)

  • File Hashes: Unknown (no public PoC).
  • File Paths: Suspicious files written to /data/local/tmp/, /system/bin/, /system/lib/, or other sensitive directories.
  • Process Behavior: Unusual processes spawning from unexpected locations (e.g., /data/local/tmp/exploit).
  • Network Connections: Outbound connections from the device to unknown IPs (post-exploitation).

Detection Engineering

YARA Rule

rule CVE_2024_47151_Honor_File_Write {
    meta:
        description = "Detects potential exploitation of CVE-2024-47151 via suspicious file writes"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "https://nvd.nist.gov/vuln/detail/CVE-2024-47151"
    strings:
        $suspicious_path = "/data/local/tmp/" nocase
        $suspicious_ext = ".sh" nocase or ".so" nocase or ".elf" nocase
    condition:
        $suspicious_path and $suspicious_ext
}

Sigma Rule

title: Suspicious File Write to Sensitive Directory on Honor Device
id: 7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d
status: experimental
description: Detects file writes to sensitive directories that may indicate exploitation of CVE-2024-47151
author: Valters IT
date: 2025-04-10
logsource:
    product: linux
    category: file_event
detection:
    selection:
        TargetFilename|contains:
            - '/data/local/tmp/'
            - '/system/bin/'
            - '/system/lib/'
        TargetFilename|endswith:
            - '.sh'
            - '.so'
            - '.elf'
    condition: selection
falsepositives:
    - Legitimate app installations
level: high

Suricata Rule

alert tcp $HOME_NET any -> $EXTERNAL_NET any (msg:"CVE-2024-47151 Potential Post-Exploitation Outbound Connection"; flow:to_server; content:"|00 00 00 00|"; depth:4; classtype:attempted-admin; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Monitor for Patches: Regularly check Honor's official website and security advisories for firmware updates.
  2. Restrict Local Access: Disable USB debugging, ADB, and other local access methods when not needed.
  3. Use Security Software: Install and maintain security solutions that can detect file-based attacks.

Long-Term Fixes:

  1. Apply Vendor Patch: Once available, apply the firmware update immediately.
  2. Code Review: Honor should review file write functions for proper input validation and path sanitization.
  3. Principle of Least Privilege: Ensure that processes run with the minimum necessary privileges.

Valters IT
Securing Digital Frontiers

👁️ SHODAN DORKS (THREAT HUNTING)

What is this? Security researchers use these exact search queries on Shodan.io (a search engine for internet-connected devices) to find vulnerable systems globally. You can copy these dorks to see if your organization's IP space is exposed.

Honor device
Honor firmware

💣 PoC CODE AVAILABLE

Exploit code for this CVE is tracked in our database. Access poc_code via API Pro.

[ API_PRO ] →
◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2024-47151/ · CVE data: NVD/MITRE (public domain) · © 2026 ValtersIT Hub
>_ SYSTEM_CORE: INTEL_ACTIVE
90% TEAM-CURATED // 10% AUTOMATED INGESTION.
ALL PATCH REFERENCES AND VERSION DATA SOURCED FROM NVD + OSV OFFICIAL REGISTRIES.