CVE-2026-44300
published high CVSS 4.0 · 8.8OpenCost ServiceKey Endpoint Unauthorized Credential Overwrite/Injection
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| opencost | — | opencost< 1.121.0 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.8 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- 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
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| opencost | opencost | < 1.121.0 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-20 CWE-20: Improper Input Validation
- CWE-309 CWE-309: Use of Password System for Primary Authentication
References
7- 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
- https://github.com/opencost/opencost/releases/tag/v1.121.0
- https://github.com/opencost/opencost/security/advisories/GHSA-wmj8-9953-vff5
Provider assertions
2GitHub_M · cna
OpenCost ServiceKey Endpoint Unauthorized Credential Overwrite/Injection
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 69d1b66837044ff6957e646e32a1c4798e517af3072fc732387172a9ed7575f8
- Ingested
- 23 Sep 2026, 09:15:17 UTC
- Source record
- Official CVE record