MediumFix available
openssh — security advisory
In OpenSSH 7.9, scp.c in the scp client allows remote SSH servers to bypass intended access restrictions via the filename of . or an empty filename. The impact is modifying the permissions of the target directory on the client side.
- Products
- openssh
- Affected versions
- Not specified
- Fixed versions
- 1:7.9p1-5
- CVEs
- CVE-2018-20685
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 00:12 UTC · Revision 1
Source evidence
In OpenSSH 7.9, scp.c in the scp client allows remote SSH servers to bypass intended access restrictions via the filename of . or an empty filename. The impact is modifying the permissions of the target directory on the client side.
osv:DEBIAN-CVE-2018-20685
openssh
Fixed versions: 1:7.9p1-5
openssh
Fixed versions: 1:7.9p1-5
openssh
Fixed versions: 1:7.9p1-5
Complete source record
{
"id": "b5ffafb519fb72777aa6ffb09c1f61680396b87cd5eb3c0d0bb1ed797221b87b",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2018-20685",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2018-20685",
"summary": "In OpenSSH 7.9, scp.c in the scp client allows remote SSH servers to bypass intended access restrictions via the filename of . or an empty filename. The impact is modifying the permissions of the target directory on the client side.",
"evidence": "osv:DEBIAN-CVE-2018-20685",
"products": [
{
"name": {
"value": "openssh",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1:7.9p1-5",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "openssh",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1:7.9p1-5",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "openssh",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1:7.9p1-5",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": []
}
],
"severity": "medium",
"structured": {
"id": "DEBIAN-CVE-2018-20685",
"aliases": [
"DEBIAN-CVE-2018-20685"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1:7.9p1-5"
}
]
}
],
"package": {
"name": "openssh",
"purl": "pkg:deb/debian/openssh?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2018-20685.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1:7.9p1-5"
}
]
}
],
"package": {
"name": "openssh",
"purl": "pkg:deb/debian/openssh?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2018-20685.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1:7.9p1-5"
}
]
}
],
"package": {
"name": "openssh",
"purl": "pkg:deb/debian/openssh?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2018-20685.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-23T18:03:05.377177976Z",
"provider": "osv",
"upstream": [
"CVE-2018-20685"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2018-20685"
]
},
"related_cves": [
{
"value": "CVE-2018-20685",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 420377,
"published_at": "2019-01-10T21:29:00.377+00:00"
}