CVE-2021-37040 Command injection in EMUI

Critical 9.8 Published Updated

Attackers can escalate privileges via parameter injection during CIFS share mounting on Huawei mobile devices.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2021-37040?

CVE-2021-37040 is a critical command injection vulnerability in Huawei Emui, published on 8 Dec 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

There is a Parameter injection vulnerability in Huawei Smartphone.Successful exploitation of this vulnerability may cause privilege escalation of files after CIFS share mounting.

Weakness: CWE-88

Which versions are affected by CVE-2021-37040?

It affects 3 products.

Products include Huawei Emui, Huawei Harmonyos, Huawei Magic Ui.

How do I fix CVE-2021-37040?

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

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2021-37040 being exploited?

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

All Huawei Emui vulnerabilities

Sources

Also known as GHSA-xpw4-2478-wj8x.

Is CVE-2021-37040 in your software?

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

Check your SBOMs for free