{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-44300","id":"CVE-2026-44300","title":"OpenCost ServiceKey Endpoint Unauthorized Credential Overwrite/Injection","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 attack","descriptionLong":"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.","published":"2026-09-15T17:08:15.845Z","updated":"2026-10-28T02:30:37.781622239Z","reserved":"2026-05-05T17:39:31.113Z","status":"Awaiting Analysis","rejected":false,"assigner":"GitHub_M","metric":{"version":"4.0","score":8.8,"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","rating":"high","source":"GitHub_M"},"metrics":[{"version":"4.0","score":8.8,"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","rating":"high","source":"GitHub_M"},{"version":"4.0","score":8.8,"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"high","source":"github.com"},{"version":"4.0","score":null,"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","rating":"unrated","source":"OSV"},{"version":"4.0","score":null,"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","rating":"high","source":"GitHub"}],"rating":"high","products":["opencost"],"affectedProducts":[{"vendor":"opencost","product":"opencost","defaultStatus":null,"versions":[{"version":"< 1.121.0","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"Go","name":"github.com/opencost/opencost","purl":"pkg:golang/github.com/opencost/opencost","ranges":["<1.119.1"],"fixed":["1.119.1"],"advisory":"GHSA-wmj8-9953-vff5"}],"cwes":["CWE-20","CWE-309"],"aliases":["GHSA-wmj8-9953-vff5","GO-2026-5974"],"references":[{"url":"https://github.com/opencost/opencost/security/advisories/GHSA-wmj8-9953-vff5","tags":["x_refsource_CONFIRM","advisory","web"]},{"url":"https://github.com/opencost/opencost/pull/3651","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/opencost/opencost/pull/3910","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/opencost/opencost/commit/69430e7f627b3e62c8999312c06949267fab813a","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/opencost/opencost/commit/a49a25bc2e0d6e220a131a4dc58f38ebe6ae851b","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/opencost/opencost/releases/tag/v1.120.0","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/opencost/opencost/releases/tag/v1.121.0","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/44xxx/CVE-2026-44300.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-44300","tags":["advisory"]},{"url":"https://github.com/opencost/opencost","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total"},"epss":0.00753,"epssPercentile":0.55961,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-44300","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-44300","ok":true,"note":"Awaiting Analysis"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-44300","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-wmj8-9953-vff5","ok":true,"note":"GHSA-wmj8-9953-vff5"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-44300","ok":true,"note":"scored 2026-11-20"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}