CVE-2019-25017 Path traversal in n/a
A malicious rcp server can overwrite arbitrary files on the client, potentially leading to privilege escalation via SSH key injection.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2019-25017?
CVE-2019-25017 is a medium-severity path traversal vulnerability in n/a, published on 2 Feb 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
An issue was discovered in rcp in MIT krb5-appl through 1.0.3. Due to the rcp implementation being derived from 1983 rcp, the server chooses which files/directories are sent to the client. However, the rcp client only performs cursory validation of the object name returned (only directory traversal attacks are prevented). A malicious rcp server (or Man-in-The-Middle attacker) can overwrite arbitrary files in the rcp client target directory. If recursive operation (-r) is performed, the server can manipulate subdirectories as well (for example, to overwrite the .ssh/authorized_keys file). This issue is similar to CVE-2019-6111 and CVE-2019-7283. NOTE: MIT krb5-appl is not supported upstream but is shipped by a few Linux distributions. The affected code was removed from the supported MIT Kerberos 5 (aka krb5) product many years ago, at version 1.8.
Weakness: CWE-863
Which versions are affected by CVE-2019-25017?
It affects 1 product.
Products include Mit Krb5-Appl.
How do I fix CVE-2019-25017?
Product is end of life, replace it.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2019-25017 being exploited?
There is no known exploitation of CVE-2019-25017 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as GHSA-hj6m-8794-335m.