Skip to content
Heist/ feed
Back to feed
Critical

goshs route not protected, allows command execution

Type: advisorySources: OSV

goshs is a SimpleHTTPServer written in Go. Starting in version 0.3.4 and prior to version 1.0.5, running goshs without arguments makes it possible for anyone to execute commands on the server. The function `dispatchReadPump` does not checks the option cli `-c`, thus allowing anyone to execute arbitrary command through the use of websockets. Version 1.0.5 fixes the issue.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2025-46816
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 04:09 UTC · Revision 1

Source evidence

goshs route not protected, allows command execution

core-osv · Original source

Published 6 May 2025, 18:41 UTC

goshs is a SimpleHTTPServer written in Go. Starting in version 0.3.4 and prior to version 1.0.5, running goshs without arguments makes it possible for anyone to execute commands on the server. The function `dispatchReadPump` does not checks the option cli `-c`, thus allowing anyone to execute arbitrary command through the use of websockets. Version 1.0.5 fixes the issue.

osv:CVE-2025-46816
Complete source record
{
  "id": "c03f761c23c0bcd0881386330332e84f99e06a7a7e232a9cd0a5938cf2518768",
  "url": "https://osv.dev/vulnerability/CVE-2025-46816",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "goshs route not protected, allows command execution",
    "summary": "goshs is a SimpleHTTPServer written in Go. Starting in version 0.3.4 and prior to version 1.0.5, running goshs without arguments makes it possible for anyone to execute commands on the server. The function `dispatchReadPump` does not checks the option cli `-c`, thus allowing anyone to execute arbitrary command through the use of websockets. Version 1.0.5 fixes the issue.",
    "evidence": "osv:CVE-2025-46816",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2025-46816",
      "aliases": [
        "CVE-2025-46816",
        "GHSA-rwj2-w85g-5cmm",
        "GO-2025-3672"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/goshs-labs/goshs",
              "type": "GIT",
              "events": [
                {
                  "introduced": "188589596594765ad4b22d2709fc5ca848c6a56a"
                },
                {
                  "fixed": "1eb190b81f7a7d8bbb94387c3d192a0dfa420e87"
                },
                {
                  "fixed": "160220974576afe5111485b8d12fd36058984cfa"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0.3.4"
                      },
                      {
                        "fixed": "1.0.5"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "160220974576afe5111485b8d12fd36058984cfa"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v1.0.4",
            "v1.0.3",
            "v1.0.2",
            "v1.0.1",
            "v1.0.0",
            "v0.4.2",
            "v0.4.1",
            "v0.4.0",
            "v0.3.9",
            "v0.3.8",
            "v0.3.7",
            "v0.3.6",
            "v0.3.5",
            "v0.3.4"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-46816.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:26.064694Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/46xxx/CVE-2025-46816.json",
        "https://github.com/patrickhener/goshs/security/advisories/GHSA-rwj2-w85g-5cmm",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-46816",
        "https://github.com/patrickhener/goshs/commit/160220974576afe5111485b8d12fd36058984cfa"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-284",
          "CWE-77"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/46xxx/CVE-2025-46816.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-46816",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 492403,
  "published_at": "2025-05-06T18:41:58.035+00:00"
}