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

CVE-2025-46816: goshs route not protected, allows command execution

May 6, 2025

It seems that when running goshs without arguments it is possible for anyone to execute commands on the server. This was tested on version 1.0.4 of goshs. The command function was introduced in version 0.3.4.

References

  • github.com/advisories/GHSA-rwj2-w85g-5cmm
  • github.com/patrickhener/goshs
  • github.com/patrickhener/goshs/commit/160220974576afe5111485b8d12fd36058984cfa
  • github.com/patrickhener/goshs/security/advisories/GHSA-rwj2-w85g-5cmm
  • nvd.nist.gov/vuln/detail/CVE-2025-46816

Code Behaviors & Features

Detect and mitigate CVE-2025-46816 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 0.3.4 before 1.0.5

Fixed versions

  • 1.0.5

Solution

Upgrade to version 1.0.5 or above.

Impact 9.4 CRITICAL

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

Learn more about CVSS

Weakness

  • CWE-284: Improper Access Control
  • CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')

Source file

go/github.com/patrickhener/goshs/CVE-2025-46816.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Tue, 13 May 2025 12:14:52 +0000.