{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "0.51.311"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "DESCRIPTION",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "938ac9f55b53def1eefb48c4c42dabaf9c22e99c"
            }
          ],
          "repo": "https://github.com/nesquena/hermes-webui",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-78"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/49xxx/CVE-2026-49959.json"
  },
  "details": "Hermes WebUI before version 0.51.311 contains a remote code execution vulnerability that allows authenticated attackers to execute arbitrary commands by placing malicious executable Git configuration in a workspace repository's .git/config file. Attackers can exploit Git subprocess invocations in api/workspace_git.py through vectors such as core.fsmonitor during git status, protocol.ext.allow with ext:: remotes during git fetch, credential.helper, core.askPass, core.gitProxy, or inherited environment variables including GIT_SSH_COMMAND to achieve arbitrary command execution on the host running the application.",
  "id": "CVE-2026-49959",
  "modified": "2026-07-08T05:35:53.670324561Z",
  "published": "2026-06-09T16:46:03.502Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/49xxx/CVE-2026-49959.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/nesquena/hermes-webui/releases/tag/v0.51.311"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-49959"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/hermes-webui-rce-via-git-configuration-injection"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/nesquena/hermes-webui/pull/3776"
    },
    {
      "type": "FIX",
      "url": "https://github.com/nesquena/hermes-webui/commit/938ac9f55b53def1eefb48c4c42dabaf9c22e99c"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/nesquena/hermes-webui"
    }
  ],
  "schema_version": "1.7.5",
  "severity": [
    {
      "score": "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Hermes WebUI \u003c 0.51.311 RCE via Git Configuration Injection"
}