CVE-2026-40876
SFTP root escape via prefix-based path validation in goshs in github.com/patrickhener/goshs
8.8
HIGH
CVSS 3.1
EPSS 0.44%
Description
SFTP root escape via prefix-based path validation in goshs in github.com/patrickhener/goshs
How to fix CVE-2026-40876
To remediate CVE-2026-40876, upgrade the affected package to a fixed version below.
- Go/github.com/patrickhener/goshs—no fix listed
- Go/github.com/patrickhener/goshs—no fix listed
- —upgrade to 2.0.0 or later
- —upgrade to 2.0.0 or later
Is CVE-2026-40876 being exploited?
Low — EPSS is 0.4%, meaning exploitation activity has not been observed at scale.
Affected packages (4)
- from 0, <= 1.1.4
- from 0
- from 0, < 2.0.0
- from 0, < 2.0.0
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| osv | CVSS 3.1 | HIGH8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |