{
  "id": "CVE-2026-44300",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-44300",
  "published_at": "2026-09-15T17:08:15.845Z",
  "title": "OpenCost ServiceKey Endpoint Unauthorized Credential Overwrite/Injection",
  "vendor": "opencost",
  "product": "opencost",
  "cvss": {
    "score": 8.8,
    "source": "cna",
    "vector": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "OpenCost provides cost monitoring for Kubernetes workloads and cloud costs. Prior to 1.121.0, the POST /serviceKey endpoint in pkg/costmodel/router.go allows a network client to invoke AddServiceKey without mandatory authentication and submit an arbitrary key form value that is written to the GCP service-account key.json file returned by GetGCPAuthSecretFilePath in core/pkg/env/core.go. The attacker controls the file contents but not the CONFIG_PATH-derived directory, the key.json filename, or the file mode. Replacing the credential contents can disrupt GCP cost collection or cause OpenCost to use attacker-selected credentials, and the wildcard Access-Control-Allow-Origin response permits browser-assisted requests when the service is reachable from a browser. This issue is fixed in version 1.121.0.",
  "cwe": "CWE-20",
  "cvss_by_source": {
    "cna": 8.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "opencost",
        "product": "opencost",
        "ranges": [
          "\u003c 1.121.0"
        ],
        "fixed_in": [
          "1.121.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade opencost to 1.121.0 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/opencost/opencost/security/advisories/GHSA-wmj8-9953-vff5"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/opencost/opencost/pull/3651"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/opencost/opencost/pull/3910"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/opencost/opencost/commit/69430e7f627b3e62c8999312c06949267fab813a"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/opencost/opencost/commit/a49a25bc2e0d6e220a131a4dc58f38ebe6ae851b"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/opencost/opencost/releases/tag/v1.120.0"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/opencost/opencost/releases/tag/v1.121.0"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
