Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/patrickhener/goshs
  4. ›
  5. CVE-2026-40188

CVE-2026-40188: goshs is Missing Write Protection for Parametric Data Values

April 10, 2026

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.

References

  • github.com/advisories/GHSA-2943-crp8-38xx
  • github.com/patrickhener/goshs
  • github.com/patrickhener/goshs/commit/141c188ce270ffbec087844a50e5e695b7da7744
  • github.com/patrickhener/goshs/releases/tag/v2.0.0-beta.4
  • github.com/patrickhener/goshs/security/advisories/GHSA-2943-crp8-38xx
  • nvd.nist.gov/vuln/detail/CVE-2026-40188

Code Behaviors & Features

Detect and mitigate CVE-2026-40188 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 1.0.7 up to 1.1.4

Solution

Unfortunately, there is no solution available yet.

Impact 7.7 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-1314: Missing Write Protection for Parametric Data Values

Source file

go/github.com/patrickhener/goshs/CVE-2026-40188.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:18:31 +0000.