Skip to main content

OpenCost EUVDEUVD-2026-51152

| CVE-2026-67349 HIGH
Missing Authentication for Critical Function (CWE-306)
2026-07-30 VulnCheck GHSA-fq2p-hx59-r7g8
8.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach OpenCost API on cluster network
  2. Delivery
    GET /helmValues unauthenticated
  3. Exploit
    Receive base64-decoded cloud credentials
  4. Execution
    POST /serviceKey overwrites GCP key
  5. Impact
    Redirect billing calls and abuse creds

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Authentication required for critical functions
MITRE ATT&CK

1 technique across 1 tactic: Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires network reachability to the OpenCost cost-model API and, for the /serviceKey admin bypass, that the ADMIN_TOKEN environment variable is UNSET - which is the default state, so default-configured deployments are exploitable. The /helmValues exposure has no precondition at all because the route was registered without any auth middleware. What limits exploitation: the OpenCost API must be reachable by the attacker (typically in-cluster or via an exposed ingress/LoadBalancer rather than the public internet by default), the serviceKey-tampering impact depends on GCP being the configured cloud provider, and setting ADMIN_TOKEN in pre-patch versions closes the write-endpoint bypass but does NOT protect the unauthenticated /helmValues route.

Impact

The vendor CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N, base 8.7) confirms remote, low-complexity, unauthenticated exploitation with high confidentiality impact - corroborated by CWE-306, publicly available exploit code, and an available vendor patch. The vector rates only confidentiality (VC:H) and marks integrity none (VI:N), yet the description explicitly states attackers can modify GCP service account keys via POST /serviceKey, which is an integrity impact - the official vector appears to under-count the serviceKey tampering, so this analysis independently assesses integrity as High. There is no EPSS score in the input and the CVE is not listed in CISA KEV, so exploitation status is 'no public exploit identified as actively used' despite POC availability; do not conflate the public POC with in-the-wild use. Net: a genuine high priority for OpenCost operators because the default configuration (no ADMIN_TOKEN) is vulnerable and credential theft is the payoff, but real-world blast radius depends on how many deployments expose the OpenCost API beyond the cluster boundary.

Exploit ScenarioDerived

An attacker who can reach the OpenCost HTTP API (for example a pod on the cluster network or via an over-exposed ingress) sends an unauthenticated GET /helmValues and receives the base64-decoded HELM_VALUES containing cloud provider credentials. Using the same lack of authentication, they POST /serviceKey to replace the GCP service account key, redirecting billing calls under their control. Publicly available exploit code exists, and the low attack complexity (AC:L, no user interaction) makes this trivial to weaponize.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
1 PoC candidate (unverified) Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 30, 2026

Credential disclosure and admin authentication bypass in OpenCost before 1.121.0 lets remote unauthenticated attackers read cloud provider secrets and tamper with billing configuration. The GET /helmValues endpoint ships with no authentication and returns the base64-decoded HELM_VALUES environment variable containing cloud credentials, while adminAuthMiddleware fails open when ADMIN_TOKEN is unset, allowing POST /serviceKey to overwrite GCP service account keys and redirect billing calls. Publicly available exploit code exists and a vendor patch (v1.121.0) is released; no public active-exploitation record (not in CISA KEV) at time of analysis.

RemediationAI

Vendor-released patch: upgrade to OpenCost core/v1.121.0 or later (https://github.com/opencost/opencost/releases/tag/core/v1.121.0), which adds adminAuthMiddleware to /helmValues and changes the middleware to fail closed - returning HTTP 503 with Cache-Control: no-store when ADMIN_TOKEN is unset (commit a49a25bc2e0d6e220a131a4dc58f38ebe6ae851b, PR https://github.com/opencost/opencost/pull/3910). Note this is a breaking change: after upgrading you must set ADMIN_TOKEN (for example opencost.exporter.adminToken in the Helm chart) or the admin endpoints (POST /serviceKey, GET /helmValues, /cloudCost/rebuild|repair, /cloud/config/*) return 503 and become unusable. If you cannot upgrade immediately, restrict network access to the OpenCost service so the API is reachable only from trusted namespaces (NetworkPolicy) or an authenticating reverse proxy, and specifically block or filter the /helmValues and /serviceKey paths at the ingress; the trade-off is that internal tooling relying on those endpoints will break. Also rotate any cloud provider credentials that may have been exposed via HELM_VALUES.

Affected VersionsENISA

opencost 0 <1.121.0

Affected Packages

euvd opencost fix: 1.121.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

OpenCost is a CNCF cost-monitoring tool for Kubernetes and cloud environments (CPE cpe:2.3:a:opencost:opencost) that exposes an HTTP API via its cost-model server (pkg/costmodel/router.go). The root cause is CWE-306 (Missing Authentication for a Critical Function): the /helmValues route was registered directly to the handler with no middleware, and adminAuthMiddleware was designed to 'fail open' - when the ADMIN_TOKEN environment variable was unset it merely logged a deduped warning and called the next handler, leaving write endpoints such as POST /serviceKey, /cloudCost/rebuild, and /cloud/config/* unauthenticated. HELM_VALUES is an environment variable the Helm chart injects; OpenCost base64-decodes and returns it verbatim, exposing embedded cloud provider credentials. The serviceKey endpoint manages the GCP service account key OpenCost uses for cloud billing queries, so tampering redirects those calls.

Know when Opencost gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 8.7 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
vuln.today AI 9.1 CRITICAL

Remote unauthenticated access against default config (PR:N/AC:L); credential disclosure gives C:H and POST /serviceKey key tampering gives I:H, with no availability impact.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

OpenCost before 1.121.0 fails to authenticate the GET /helmValues endpoint, exposing base64-decoded HELM_VALUES environment variable containing cloud provider credentials. Additionally, adminAuthMiddleware fails open when ADMIN_TOKEN is unset, allowing unauthenticated attackers to modify GCP service account keys via POST /serviceKey to redirect billing calls.

Latest POC

1 PoC candidate from github (unverified)

Sign in to open the public PoC links collected for this CVE.

Executive ViewAI

Why It Matters

OpenCost before v1.121.0 contains critical vulnerabilities allowing unauthenticated remote attackers to extract cloud provider credentials and bypass administrative controls; publicly available exploit code exists. Organizations using OpenCost for cloud cost monitoring face immediate risk of credential theft, infrastructure compromise, and unauthorized billing manipulation. This requires urgent patching of all affected deployments.

Business Impact: Severe
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.3%
Top 79% exploitable
Prevalence
Medium
CNCF Kubernetes cost-monitoring tool, moderate cloud-native adoption
Data Quality
7 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Partial

Priority Score

64
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy