{"id":"CVE-2026-44300","state":"PUBLISHED","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 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.","publishedAt":"2026-09-15T17:08:15.845Z","updatedAt":"2026-09-15T19:45:01.536Z","severity":{"score":8.8,"label":"High","version":"4.0","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","source":"GitHub_M"},"assigner":"GitHub_M","products":["opencost opencost"],"affected":[{"vendor":"opencost","product":"opencost","versions":[{"version":"< 1.121.0","status":"affected"}]}],"references":["https://github.com/opencost/opencost/security/advisories/GHSA-wmj8-9953-vff5","https://github.com/opencost/opencost/pull/3651","https://github.com/opencost/opencost/pull/3910","https://github.com/opencost/opencost/commit/69430e7f627b3e62c8999312c06949267fab813a","https://github.com/opencost/opencost/commit/a49a25bc2e0d6e220a131a4dc58f38ebe6ae851b","https://github.com/opencost/opencost/releases/tag/v1.120.0","https://github.com/opencost/opencost/releases/tag/v1.121.0"],"weaknesses":["CWE-20","CWE-309"],"ingestedAt":"2026-10-29T20:11:57.932Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/44xxx/CVE-2026-44300.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-44300","state":"PUBLISHED","datePublished":"2026-09-15T17:08:15.845Z","dateUpdated":"2026-09-15T19:45:01.536Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-05-05T17:39:31.113Z"},"containers":{"cna":{"title":"OpenCost ServiceKey Endpoint Unauthorized Credential Overwrite/Injection","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"opencost","product":"opencost","versions":[{"version":"< 1.121.0","status":"affected"}]}],"references":[{"url":"https://github.com/opencost/opencost/security/advisories/GHSA-wmj8-9953-vff5","name":"https://github.com/opencost/opencost/security/advisories/GHSA-wmj8-9953-vff5","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/opencost/opencost/pull/3651","name":"https://github.com/opencost/opencost/pull/3651","tags":["x_refsource_MISC"]},{"url":"https://github.com/opencost/opencost/pull/3910","name":"https://github.com/opencost/opencost/pull/3910","tags":["x_refsource_MISC"]},{"url":"https://github.com/opencost/opencost/commit/69430e7f627b3e62c8999312c06949267fab813a","name":"https://github.com/opencost/opencost/commit/69430e7f627b3e62c8999312c06949267fab813a","tags":["x_refsource_MISC"]},{"url":"https://github.com/opencost/opencost/commit/a49a25bc2e0d6e220a131a4dc58f38ebe6ae851b","name":"https://github.com/opencost/opencost/commit/a49a25bc2e0d6e220a131a4dc58f38ebe6ae851b","tags":["x_refsource_MISC"]},{"url":"https://github.com/opencost/opencost/releases/tag/v1.120.0","name":"https://github.com/opencost/opencost/releases/tag/v1.120.0","tags":["x_refsource_MISC"]},{"url":"https://github.com/opencost/opencost/releases/tag/v1.121.0","name":"https://github.com/opencost/opencost/releases/tag/v1.121.0","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"NONE","userInteraction":"NONE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"HIGH","vulnAvailabilityImpact":"HIGH","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":8.8,"baseSeverity":"HIGH","vectorString":"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","version":"4.0"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-20","lang":"en","description":"CWE-20: Improper Input Validation","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-309","lang":"en","description":"CWE-309: Use of Password System for Primary Authentication","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-09-15T17:08:15.845Z"},"source":{"advisory":"GHSA-wmj8-9953-vff5","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-09-15T19:16:35.644735Z","id":"CVE-2026-44300","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-09-15T19:45:01.536Z"}}]}}}