{"cve":"CVE-2026-44300","nvd":{"published":"2026-09-15T18:17:21.280","modified":"2026-09-30T17:43:24.057","status":"Awaiting Analysis","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.","cvss_v4":{"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","score":8.8},"cvss_v3":null,"cwes":["CWE-20","CWE-309"],"references":["https://github.com/opencost/opencost/commit/69430e7f627b3e62c8999312c06949267fab813a","https://github.com/opencost/opencost/commit/a49a25bc2e0d6e220a131a4dc58f38ebe6ae851b","https://github.com/opencost/opencost/pull/3651","https://github.com/opencost/opencost/pull/3910","https://github.com/opencost/opencost/releases/tag/v1.120.0"],"products":[],"source":"nvd","synced_at":"2026-10-19T22:54:41.405518556+00:00"},"epss":{"cve":"CVE-2026-44300","score":0.00753,"percentile":0.5476,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-wmj8-9953-vff5","url":"https://osv.dev/vulnerability/GHSA-wmj8-9953-vff5","summary":"OpenCost ServiceKey Endpoint Unauthorized Credential Overwrite/Injection","modified":"2026-07-21T19:19:21.614612775Z","packages":[{"ecosystem":"Go","name":"github.com/opencost/opencost","purl":"pkg:golang/github.com/opencost/opencost","ranges":["<1.119.1"],"fixed":["1.119.1"]}]},{"id":"GO-2026-5974","url":"https://osv.dev/vulnerability/GO-2026-5974","summary":"OpenCost ServiceKey Endpoint Unauthorized Credential Overwrite/Injection in github.com/opencost/opencost","modified":"2026-07-21T19:15:29.293533533Z","packages":[{"ecosystem":"Go","name":"github.com/opencost/opencost","purl":"pkg:golang/github.com/opencost/opencost","ranges":["<1.119.1"],"fixed":["1.119.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}