<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title>Most recent entries from all</title>
    <link>https://vulnerability.circl.lu</link>
    <description>Contains only the most 10 recent entries.</description>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>python-feedgen</generator>
    <language>en</language>
    <lastBuildDate>Tue, 29 Sep 2026 15:15:02 +0000</lastBuildDate>
    <item>
      <title>fkie_cve-2026-44300</title>
      <link>https://vulnerability.circl.lu/vuln/fkie_cve-2026-44300</link>
      <description>&lt;p&gt;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.&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;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.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/fkie_cve-2026-44300</guid>
    </item>
    <item>
      <title>GHSA-wmj8-9953-vff5 — OpenCost ServiceKey Endpoint Unauthorized Credential Overwrite/Injection</title>
      <link>https://vulnerability.circl.lu/vuln/ghsa-wmj8-9953-vff5</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Go: github.com/opencost/opencost&lt;/p&gt;
&lt;p&gt;## Summary&lt;/p&gt;
&lt;p&gt;OpenCost contains an unauthenticated  file write vulnerability in the `/serviceKey` endpoint that allows remote attackers to overwrite the GCP service account key file without authentication. This can lead to service disruption, credential theft, and potential privilege escalation within Kubernetes clusters.&lt;/p&gt;
&lt;p&gt;---&lt;/p&gt;
&lt;p&gt;## Affected Versions&lt;/p&gt;
&lt;p&gt;- **OpenCost**: All versions up to and including the latest release
- **Vulnerable File**: `pkg/costmodel/router.go` (lines 365-379)
- **Vulnerable Endpoint**: `POST /serviceKey`&lt;/p&gt;
&lt;p&gt;---&lt;/p&gt;
&lt;p&gt;## Vulnerability Details&lt;/p&gt;
&lt;p&gt;### Root Cause&lt;/p&gt;
&lt;p&gt;The `AddServiceKey` function in `pkg/costmodel/router.go` accepts user-supplied data via POST request and writes it directly to a file without any authentication or input validation:&lt;/p&gt;
&lt;p&gt;```go
func (a *Accesses) AddServiceKey(w http.ResponseWriter, r *http.Request, ps httprouter.Params) {
    w.Header().Set(&amp;#34;Content-Type&amp;#34;, &amp;#34;application/json&amp;#34;)
    w.Header().Set(&amp;#34;Access-Control-Allow-Origin&amp;#34;, &amp;#34;*&amp;#34;)  // Overly permissive CORS&lt;/p&gt;
&lt;p&gt;r.ParseForm()&lt;/p&gt;
&lt;p&gt;key := r.PostForm.Get(&amp;#34;key&amp;#34;)  // User-controlled input, no validation
    k := []byte(key)
    err := os.WriteFile(env.GetGCPAuthSecretFilePath(), k, 0644)  //  Direct file write
    if err != nil {
        fmt.Fprintf(w, &amp;#34;Error writing service key: %s&amp;#34;, err)
    }&lt;/p&gt;
&lt;p&gt;w.WriteHeader(http.StatusOK)
}
```&lt;/p&gt;
&lt;p&gt;**File Path Determination** (`core/pkg/env/core.go`):
```go
func GetGCPAuthSecretFilePath() string {
    return GetPathFromConfig(&amp;#34;key.json&amp;#34;)
}&lt;/p&gt;
&lt;p&gt;func GetPathFromConfi…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Go: github.com/opencost/opencost&lt;/p&gt;
&lt;p&gt;## Summary&lt;/p&gt;
&lt;p&gt;OpenCost contains an unauthenticated  file write vulnerability in the `/serviceKey` endpoint that allows remote attackers to overwrite the GCP service account key file without authentication. This can lead to service disruption, credential theft, and potential privilege escalation within Kubernetes clusters.&lt;/p&gt;
&lt;p&gt;---&lt;/p&gt;
&lt;p&gt;## Affected Versions&lt;/p&gt;
&lt;p&gt;- **OpenCost**: All versions up to and including the latest release
- **Vulnerable File**: `pkg/costmodel/router.go` (lines 365-379)
- **Vulnerable Endpoint**: `POST /serviceKey`&lt;/p&gt;
&lt;p&gt;---&lt;/p&gt;
&lt;p&gt;## Vulnerability Details&lt;/p&gt;
&lt;p&gt;### Root Cause&lt;/p&gt;
&lt;p&gt;The `AddServiceKey` function in `pkg/costmodel/router.go` accepts user-supplied data via POST request and writes it directly to a file without any authentication or input validation:&lt;/p&gt;
&lt;p&gt;```go
func (a *Accesses) AddServiceKey(w http.ResponseWriter, r *http.Request, ps httprouter.Params) {
    w.Header().Set(&amp;#34;Content-Type&amp;#34;, &amp;#34;application/json&amp;#34;)
    w.Header().Set(&amp;#34;Access-Control-Allow-Origin&amp;#34;, &amp;#34;*&amp;#34;)  // Overly permissive CORS&lt;/p&gt;
&lt;p&gt;r.ParseForm()&lt;/p&gt;
&lt;p&gt;key := r.PostForm.Get(&amp;#34;key&amp;#34;)  // User-controlled input, no validation
    k := []byte(key)
    err := os.WriteFile(env.GetGCPAuthSecretFilePath(), k, 0644)  //  Direct file write
    if err != nil {
        fmt.Fprintf(w, &amp;#34;Error writing service key: %s&amp;#34;, err)
    }&lt;/p&gt;
&lt;p&gt;w.WriteHeader(http.StatusOK)
}
```&lt;/p&gt;
&lt;p&gt;**File Path Determination** (`core/pkg/env/core.go`):
```go
func GetGCPAuthSecretFilePath() string {
    return GetPathFromConfig(&amp;#34;key.json&amp;#34;)
}&lt;/p&gt;
&lt;p&gt;func GetPathFromConfi…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/ghsa-wmj8-9953-vff5</guid>
    </item>
  </channel>
</rss>
