CVE-2025-31171 Missing authorization in HarmonyOS

Medium 6.8 Published Updated

Attackers can bypass file read permissions in the HarmonyOS kernel to access sensitive data, compromising service confidentiality.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

What is CVE-2025-31171?

CVE-2025-31171 is a medium-severity missing authorization vulnerability in Huawei Harmonyos, published on 7 Apr 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

File read permission bypass vulnerability in the kernel file system module Impact: Successful exploitation of this vulnerability may affect service confidentiality.

Weakness: CWE-862

Which versions are affected by CVE-2025-31171?

It affects 1 product.

Products include Huawei Harmonyos.

How do I fix CVE-2025-31171?

No fix has been published for CVE-2025-31171 yet. Limit exposure of the affected software until one is available.

Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.

Is CVE-2025-31171 being exploited?

There is no known exploitation of CVE-2025-31171 in the wild and no public exploit code.

All Huawei Harmonyos vulnerabilities

Sources

Also known as GHSA-w388-5rjr-qx42.

Is CVE-2025-31171 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free