CVE-2019-6111
Improper Limitation of a Pathname to a Restricted Directory
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
Description
An issue was discovered in OpenSSH 7.9. Due to the scp implementation being derived from 1983 rcp, the server chooses which files/directories are sent to the client. However, the scp client only performs cursory validation of the object name returned (only directory traversal attacks are prevented). A malicious scp server (or Man-in-The-Middle attacker) can overwrite arbitrary files in the scp 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).
Official description from the CVE record, published by mitre. Copyright © 1999-2026 The MITRE Corporation. See /security/cve/legal for the CVE license. View the record on cve.org
Key data
CVSS 3.1 Medium 5.9
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
Attack vector: Network
The vulnerable component can be reached over a network, possibly from the Internet.
Attack complexity: High
The attack depends on conditions outside the attacker's control, so it takes preparation.
Privileges required: None
No account or privileges are needed.
User interaction: None
No action from any user is needed.
Scope: Unchanged
The impact stays within the vulnerable component.
Confidentiality impact: None
No effect on the secrecy of data.
Integrity impact: High
Serious or total effect on the trustworthiness of data.
Availability impact: None
No effect on availability.
| Metric | Value | What it means |
|---|---|---|
| Attack vector | Network | The vulnerable component can be reached over a network, possibly from the Internet. |
| Attack complexity | High | The attack depends on conditions outside the attacker's control, so it takes preparation. |
| Privileges required | None | No account or privileges are needed. |
| User interaction | None | No action from any user is needed. |
| Scope | Unchanged | The impact stays within the vulnerable component. |
| Confidentiality impact | None | No effect on the secrecy of data. |
| Integrity impact | High | Serious or total effect on the trustworthiness of data. |
| Availability impact | None | No effect on availability. |
CVSS is owned and managed by FIRST.Org, Inc. (FIRST) and is used by permission. Each CVSS score on this site is shown together with its vector string, as published in the CVE record by the source named next to it. Learn more at first.org/cvss.
EPSS
- Score
- 0.58204 (58.2% probability)
- Percentile
- 99.1%
- Scores of
- Nov 10, 2026
- Model
- v2026.06.15
CISA assessment as of Dec 18, 2025
- Exploitation
- Public proof of concept recorded by CISA
- Automatable
- no
- Technical impact
- partial
Weakness (CWE)
- CWE-22Improper Limitation of a Pathname to a Restricted Directory
References
- DSA-4387 (debian.org)vendor-advisory
- security.netapp.com/advisory/ntap-20190213-0001
- 106741 (securityfocus.com)vdb-entry
- cvsweb.openbsd.org/src/usr.bin/ssh/scp.c
- USN-3885-1 (usn.ubuntu.com)vendor-advisory
- USN-3885-2 (usn.ubuntu.com)vendor-advisory
- bugzilla.redhat.com/show_bug.cgi?id=1677794
- sintonen.fi/advisories/scp-client-multiple-vulnerabilities.…
- 46193 (exploit-db.com)exploit
- GLSA-201903-16 (security.gentoo.org)vendor-advisory
- [debian-lts-announce] 20190325 [SECURITY] [DLA 1728-1] openssh security update (lists.debian.org)mailing-list
- [oss-security] 20190417 Announce: OpenSSH 8.0 released (openwall.com)mailing-list
- FEDORA-2019-0f4190cdb0 (lists.fedoraproject.org)vendor-advisory
- [mina-dev] 20190620 [jira] [Created] (SSHD-925) See if SCP vulnerability CVE-2019-6111 applies and mitigate it if so (lists.apache.org)mailing-list
- [mina-dev] 20190623 [jira] [Comment Edited] (SSHD-925) See if SCP vulnerability CVE-2019-6111 applies and mitigate it if so (lists.apache.org)mailing-list
- [mina-dev] 20190623 [jira] [Commented] (SSHD-925) See if SCP vulnerability CVE-2019-6111 applies and mitigate it if so (lists.apache.org)mailing-list
- openSUSE-SU-2019:1602 (lists.opensuse.org)vendor-advisory
- FreeBSD-EN-19:10 (freebsd.org)vendor-advisory
- [mina-dev] 20190820 [jira] [Resolved] (SSHD-925) See if SCP vulnerability CVE-2019-6111 applies and mitigate it if so (lists.apache.org)mailing-list
- oracle.com/technetwork/security-advisory/cpuoct2019-5072832…
- RHSA-2019:3702 (access.redhat.com)vendor-advisory
- [oss-security] 20220802 CVE-2022-29154: Rsync client-side arbitrary file write vulnerability. (openwall.com)mailing-list
- cert-portal.siemens.com/productcert/pdf/ssa-412672.pdf
Timeline
- ID reserved
- Record published
- Record last updated
Look up another CVE
About CubePath
Data from the CVE Program (MITRE), CISA KEV and FIRST EPSS. CVSS is owned by FIRST and used by permission. Not affiliated with or endorsed by MITRE, CISA or FIRST. Data as of Nov 10, 2026, 19:49 UTC. Sources and licenses