{"answers":{"affected":"3 open source packages ship an affected version, including github.com/opencost/opencost.","exploited":"There is no known exploitation of CVE-2026-44300 in the wild and no public exploit code.","fix":"Upgrade github.com/opencost/opencost to 1.119.1 or later.","what":"CVE-2026-44300 is a high-severity missing authorization vulnerability in opencost, published on 15 Sep 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-44300 and fix it if it is affected.\n\nWhat it is: CVE-2026-44300 is a high-severity missing authorization vulnerability in opencost, published on 15 Sep 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-44300 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/opencost/opencost (Go): affected all versions; fixed in 1.119.1\n- github.com/opencost/opencost (Go): affected all versions; fixed in 1.119.1\n- github.com/opencost/opencost (Go): affected all versions; fixed in 1.119.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-44300/ (Markdown: https://insights.sbomify.com/CVE-2026-44300/index.md)","id":"CVE-2026-44300","markdown":"https://insights.sbomify.com/CVE-2026-44300/index.md","name":"CVE-2026-44300","record":{"aliases":["GHSA-wmj8-9953-vff5","GO-2026-5974"],"analysis":{"component_type":"cloud_service","fix_type":"upgrade","impacts":["privilege_escalation","denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Kubernetes cost monitoring","requires_auth":"none","summary":"Unauthenticated attackers can overwrite GCP service account credentials in OpenCost, potentially hijacking cloud cost collection or causing service disruption.","user_interaction":"not_required","vuln_class":"missing_authorization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":8.8,"severity":"high","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-309","name":"Use of Password System for Primary Authentication"},{"id":"CWE-20","name":"Improper Input Validation"}],"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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"OpenCost ServiceKey Endpoint Unauthorized Credential Overwrite/Injection","id":"CVE-2026-44300","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"missing_authorization","year":"2026"},"n_packages":3,"n_references":7,"next":{"headline":"Hugo: Node tool execution allows file system access outside the project directory","id":"CVE-2026-44301"},"packages":[{"ecosystem":"Go","fixed":["1.119.1"],"introduced":["0"],"last_affected":[],"package":"github.com/opencost/opencost","purl":null,"source":"GHSA-wmj8-9953-vff5"},{"ecosystem":"Go","fixed":["1.119.1"],"introduced":["0"],"last_affected":[],"package":"github.com/opencost/opencost","purl":"pkg:golang/github.com/opencost/opencost","source":"GHSA-wmj8-9953-vff5"},{"ecosystem":"Go","fixed":["1.119.1"],"introduced":["0"],"last_affected":[],"package":"github.com/opencost/opencost","purl":"pkg:golang/github.com/opencost/opencost","source":"GO-2026-5974"}],"prev":{"headline":"Kimai: Arbitrary file read in invoice PDF renderer (admin)","id":"CVE-2026-44298"},"products":["opencost"],"published":"2026-09-15","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-09-15","vendors":["opencost"]},"summary":"Unauthenticated attackers can overwrite GCP service account credentials in OpenCost, potentially hijacking cloud cost collection or causing service disruption.","url":"https://insights.sbomify.com/CVE-2026-44300/"}