# What is CVE-2019-5221?

> CVE-2019-5221 is a medium-severity flaw (CVSS 6.5) in Mate 20 X from Huawei, published on 10 July 2019. It is not on the list of flaws known to be exploited today. The latest forecast puts its chance of use in the next 30 days at 0.5%. If you run an affected version, plan in the vendor’s fix.

Canonical page: https://www.precursorintelligence.com/what-is/cve-2019-5221

## At a glance

- **Verdict:** Plan it in. No sign of exploitation and a low forecast. Patch it in your normal update cycle.
- **Precursor Intelligence risk score:** 21 out of 100 (Low); action: Monitor. Kept up to date as the evidence changes.
- **Severity:** Medium (CVSS 6.5 out of 10)
- **Known to be exploited:** No, not on the list of flaws known to be exploited today
- **Chance of use in the next 30 days:** 0.5% (latest exploit-likelihood forecast)
- **Published:** 10 July 2019
- **Record last updated:** 18 July 2019
- **Main product:** Mate 20 X from Huawei
- **Affected products:** 2

## What is CVE-2019-5221? In plain terms

An attacker has to be on the same local network without logging in, and nobody has to click anything. If it works, the attacker can change data.

### The official description

There is a path traversal vulnerability on Huawei Share. The software does not properly validate the path, an attacker could crafted a file path when transporting file through Huawei Share, successful exploit could allow the attacker to transport a file to arbitrary path on the phone. Affected products: Mate 20 X versions earlier than Ever-L29B 9.1.0.300(C432E3R1P12), versions earlier than Ever-L29B 9.1.0.300(C636E3R2P1), and versions earlier than Ever-L29B 9.1.0.300(C185E3R3P1).

### What kind of flaw is it?

- CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

### How an attack on it works

- Where an attacker can be: On the same local network
- How hard it is to pull off: Easy: no special conditions
- Login needed first: No login needed
- Does someone have to click: No, nobody has to do anything
- What an attacker gets: Can change data

Severity vector: `CVSS:3.0/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`

## Is CVE-2019-5221 being exploited? Not that we know of

It is not on the list of flaws known to be exploited today. The latest forecast puts the chance of it being used in the next 30 days at 0.5%. That can change at any time, which is why we keep watching.

Exploit likelihood over the last 7 days: 0.5%, 0.5%, 0.5%, 0.5%, 0.5%, 0.5%, 0.5%.

### Timeline

- 10 July 2019: Published
- 18 July 2019: Record last updated

### How Precursor Intelligence ranks it

CVE-2019-5221 scores **21 out of 100 (Low)**, with the action "Monitor".

Every published flaw gets a risk score from 0 to 100, kept up to date as the evidence changes. Four things go into the score, from the one that counts most to the ones that count less:

- Evidence it is being exploited: biggest factor
- How severe it is: strong factor
- How widely exposed it is: smaller factor
- Threat activity around it: smaller factor

85 and above is Critical. Anything confirmed as exploited is always marked for an emergency patch, whatever its score. When this flaw matches software you track, it lands in your list with its score and the reasons behind it.

## Who is affected by CVE-2019-5221?

The published record lists 2 products. Versions are as published: "before ever-l29b_9.1.0.300(c636e3r2p1)" means every version up to, but not including, ever-l29b_9.1.0.300(c636e3r2p1).

- [Mate 20 X](https://www.precursorintelligence.com/product/huawei/mate_20_x) by [Huawei](https://www.precursorintelligence.com/vendors/huawei) (Hardware): version not specified
- [Mate 20 X Firmware](https://www.precursorintelligence.com/product/huawei/mate_20_x_firmware) by [Huawei](https://www.precursorintelligence.com/vendors/huawei) (Operating system): before ever-l29b_9.1.0.300(c636e3r2p1), before ever-l29b_9.1.0.300(c432e3r1p12), before ever-l29b_9.1.0.300(c185e3r3p1)

## How do I fix CVE-2019-5221?

1. **Check whether you run it.** Compare your versions with the affected products above. Not sure what you run? Precursor Intelligence can work it out from your public website, or you can pick it from a list.
2. **Apply the vendor’s fix.** Install the update named in the vendor’s advisory. We’ve put the advisory first in the list.
3. **If you can’t patch today.** Follow any mitigation the vendor publishes, and limit who can reach the affected system from the internet until the update is in.
4. **Keep an eye on it.** Track the product and we tell you as soon as we spot this flaw on the list of exploited flaws, or a jump in its exploit likelihood.

### References

- [huawei.com](https://www.huawei.com/en/psirt/security-advisories/huawei-sa-20190703-01-share-en) (Vendor advisory)

## Questions

### What is CVE-2019-5221?

CVE-2019-5221 is a medium-severity flaw in Mate 20 X from Huawei, published on 10 July 2019. An attacker has to be on the same local network without logging in, and nobody has to click anything. If it works, the attacker can change data.

### How serious is CVE-2019-5221?

It scores 6.5 out of 10 on the CVSS severity scale, which is medium. Our risk score for CVE-2019-5221 is 21 out of 100, which is Low. Its action is "Monitor". No sign of exploitation and a low forecast. Patch it in your normal update cycle.

### Is CVE-2019-5221 being exploited?

It is not on the list of flaws known to be exploited today. The latest forecast puts the chance of it being used in the next 30 days at 0.5%. That can change at any time, which is why we keep watching.

### Which versions does CVE-2019-5221 affect?

For Mate 20 X from Huawei: version not specified. The record lists 2 products in all, each with its versions, under "Who is affected" on this page.

### How do I fix CVE-2019-5221?

Install the update the vendor names in its advisory, linked first under "How do I fix" on this page. If you can't patch today, follow the vendor's mitigation and limit who can reach the affected system from the internet.

## Does CVE-2019-5221 affect you?

Precursor Intelligence keeps checking for you:

- **Tell us what you run.** Pick your software from a list, or let us work it out from your website.
- **We match it to every flaw.** Over 400,000 published flaws, checked against your list.
- **Ranked by real-world risk.** Every flaw gets a 0 to 100 risk score, kept up to date, led by evidence criminals are using it.
- **Told as soon as we know.** An alert by email, in the app or by webhook to your own tools.

Start free (no card, nothing to install): https://www.precursorintelligence.com/register
Book a demo: https://www.precursorintelligence.com/contact

