Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2026-40188: goshs is a SimpleHTTPServer written in Go

38
Routine
HIGH 7.7UPGRADE

CVE-2026-40188 is a high-severity flaw (CVSS 7.7) affecting goshs. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

goshs is a SimpleHTTPServer written in Go. From 1.0.7 to before 2.0.0-beta.4, the SFTP command rename sanitizes only the source path and not the destination, so it is possible to write outside of the root directory of the SFTP. This vulnerability is fixed in 2.0.0-beta.4.

Why this priority

  • High severity
  • Public exploit reference

A fixed release or distro patch exists.

Risk facts

CVSS score7.7 (High)
Attack vectorNetwork (remote)
Attack complexityLow
Privileges neededLow
User interactionNone
EPSS exploit chance0.3% (top 75%)
CISA exploited listNo
WeaknessCWE-1314
Published2026-04-10
Last modified2026-10-26
Publisher (CNA): GitHub, Inc. · Vendor: goshs

Share: LinkedIn · X · Reddit

Last updated 2026-10-26 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

goshs goshs UPGRADE
Affected: >= 1.0.7 and < 2.0.0 · 2.0.0 beta1 · 2.0.0 beta2 · 2.0.0 beta3
Fixed in: 2.0.0
Safe to downgrade to: a release before 1.0.7
1. Check installed version
apt-cache policy goshs || rpm -q goshs || goshs --version
2. UPGRADE to 2.0.0 (Debian / Ubuntu)
sudo apt update && sudo apt install --only-upgrade goshs
2. UPGRADE (RHEL / Amazon Linux / Fedora)
sudo dnf upgrade goshs
Note
Distros often backport fixes without changing the version number. Confirm with the distro advisory or changelog.
3. If no update is available yet, DOWNGRADE to a release before 1.0.7 (Debian / Ubuntu)
apt-cache madison goshs sudo apt install goshs=<VERSION_BEFORE_1.0.7> sudo apt-mark hold goshs
3. If no update is available yet, DOWNGRADE (RHEL / Amazon Linux / Fedora)
dnf --showduplicates list goshs sudo dnf downgrade goshs-<VERSION_BEFORE_1.0.7> sudo dnf versionlock add goshs
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.
Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2026-40188?

goshs: upgrade to 2.0.0. Exact commands for each OS are on this page.

Is CVE-2026-40188 being exploited?

CVE-2026-40188 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.

What does CVE-2026-40188 affect?

CVE-2026-40188 affects goshs. Severity is high (CVSS 7.7). goshs is a SimpleHTTPServer written in Go. From 1.0.7 to before 2.0.0-beta.4, the SFTP command rename sanitizes only the source path and not the destination, so it is possible to write outside of the root directory of the SFTP. This vulnera

How urgent is CVE-2026-40188?

Priority 38/100. High severity; Public exploit reference

Related CVEs

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.