{"id":"CVE-2026-142238","summary":"OpenCost through 1.121.5 Missing Authentication via /logs/level and /logs/exclude","details":"OpenCost through 1.121.5 contains a missing authentication vulnerability that allows unauthenticated attackers to change logging configuration through the POST /logs/level and /logs/exclude diagnostic endpoints. Attackers reaching the API port can disable logging, set verbose levels, or install exclusion patterns to suppress the audit trail or flood service logs.","modified":"2026-12-02T23:45:26.548043474Z","published":"2026-12-02T16:50:05.078Z","database_specific":{"cwe_ids":["CWE-306"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142238.json","cna_assigner":"VulnCheck"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142238.json"},{"type":"PACKAGE","url":"https://github.com/opencost/opencost"},{"type":"ARTICLE","url":"https://github.com/opencost/opencost/blob/v1.121.5/core/pkg/util/apiutil/apiutil.go#L11-L17"},{"type":"ARTICLE","url":"https://github.com/opencost/opencost/blob/v1.121.5/core/pkg/util/apiutil/loglevel.go#L37-L51"},{"type":"ARTICLE","url":"https://github.com/opencost/opencost/blob/v1.121.5/pkg/cmd/costmodel/costmodel.go#L114-L120"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142238"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/opencost-through-1.121.5-missing-authentication-via-logs-level-and-logs-exclude"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/opencost/opencost","events":[{"introduced":"0"},{"last_affected":"32dbf049c84c66db1efeb9fc9a98e5042f076cf1"}],"database_specific":{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"StandardRange","range":[{"introduced":"0"},{"last_affected":"1.121.5"}]}]}}],"versions":["v1.121.5","v1.121","modules/prometheus-source/v1.121.5","modules/collector-source/v1.121.5","core/v1.121.5","v1.121.4","modules/prometheus-source/v1.121.4","modules/collector-source/v1.121.4","core/v1.121.4","modules/pricing/public/v1.0.10","modules/pricing/public/v1.0.9","modules/pricing/public/v1.0.8","modules/pricing/public/v1.0.7","modules/pricing/public/v1.0.6","modules/pricing/public/v1.0.5","v1.121.3","modules/prometheus-source/v1.121.3","modules/pricing/public/v1.0.4","modules/collector-source/v1.121.3","core/v1.121.3","v1.121.2","modules/prometheus-source/v1.121.2","modules/collector-source/v1.121.2","core/v1.121.2","modules/pricing/public/v1.0.3","modules/pricing/public/v1.0.2","modules/pricing/public/v1.0.1","modules/pricing/public/v1.0.0","v1.121.1","modules/prometheus-source/v1.121.1","modules/collector-source/v1.121.1","core/v1.121.1","v1.121.0","modules/prometheus-source/v1.121.0","modules/collector-source/v1.121.0","core/v1.121.0","v1.120.4","v1.120","modules/prometheus-source/v1.120.4","modules/collector-source/v1.120.4","core/v1.120.4","v1.120.3","modules/prometheus-source/v1.120.3","modules/collector-source/v1.120.3","core/v1.120.3","v1.120.2","modules/prometheus-source/v1.120.2","modules/collector-source/v1.120.2","core/v1.120.2","kc-3.2.1-rc.4","kc-3.2.1-rc.2","kc-3.2.1","kc-3.2.0-rc.3","kc-3.2.0-rc.2","kc-3.2.0-rc.1","kc-3.2.0-rc.0","kc-3.2.0","v1.120.1","modules/prometheus-source/v1.120.1","modules/collector-source/v1.120.1","core/v1.120.1","v1.120.0","modules/prometheus-source/v1.120.0","modules/collector-source/v1.120.0","core/v1.120.0","v1.119.2","v1.119","modules/prometheus-source/v1.119.2","modules/collector-source/v1.119.2","core/v1.119.2","v1.119.1","modules/prometheus-source/v1.119.1","modules/collector-source/v1.119.1","kc-3.1.0-rc.0","kc-3.1.0","core/v1.119.1","v1.119.0","modules/prometheus-source/v1.119.0","modules/collector-source/v1.119.0","core/v1.119.0","v1.118.1","modules/prometheus-source/v1.118.1","modules/collector-source/v1.118.1","core/v1.118.1","v1.118.0","v1.118","modules/prometheus-source/v1.118.0","modules/collector-source/v1.118.0","kc-3.0.4-rc.0","kc-3.0.3-rc.1","kc-3.0.3-rc.0","kc-3.0.3","core/v1.118.0","kc-2.9.7","v1.117.5","modules/prometheus-source/v1.117.5","modules/collector-source/v1.117.5","kc-3.0.0-rc.6","kc-3.0.0-rc.5","kc-3.0.0","core/v1.117.5","v1.117.6","v1.117","modules/prometheus-source/v1.117.6","modules/collector-source/v1.117.6","core/v1.117.6","v1.117.4","kc-3.0.0-rc.2","kc-3.0.0-rc.1","kc-3.0.0-rc.0","v1.117.2","modules/prometheus-source/v1.117.2","modules/collector-source/v1.117.2","kc-3.0.0-test.0","core/v1.117.2","v1.117.3","modules/prometheus-source/v1.117.3","modules/collector-source/v1.117.3","core/v1.117.3","v1.117.0","modules/prometheus-source/v1.117.0","modules/collector-source/v1.117.0","core/v1.117.0","v1.116.0","v1.116","kc-2.8.0-rc.0","kc-2.7.0-rc.2","kc-2.7.0-rc.1","kc-2.7.0-rc.0","kc-2.7.0","v2.6.0-rc.0","kc-2.6.5-rc.1","kc-2.6.5-rc.0","kc-2.6.5","kc-2.6.4-rc.0","kc-2.6.4","kc-2.6.3-rc.2","kc-2.6.3","kc-2.6.2-rc.1","kc-2.6.2-rc.0","kc-2.6.2","kc-2.6.1-rc.2","kc-2.6.1-rc.1","kc-2.6.1-rc.0","kc-2.6.1","kc-2.6.0-rc.7","kc-2.6.0-rc.6","kc-2.6.0-rc.5","kc-2.6.0-rc.4","kc-2.6.0-rc.3","kc-2.6.0-rc.2","kc-2.6.0-rc.1","kc-2.6.0","kc-2.5.5-rc.2","kc-2.5.5-rc.1","kc-2.5.5-rc.0","kc-2.5.5","kc-2.5.4-rc.4","kc-2.5.4-rc.3","kc-2.5.4","v1.114.0","v2.5.0-rc.1","v2.5.0-rc.0","v1.113.0","v1.112.0","v2.4.0-rc.0","v1.111.0","v1.110","v2.3.0-rc.0","v2.2.0-rc.2","v2.2.0-rc.1","v2.2.0-rc.0","v2.1.0-rc.5","v2.1.0-rc.4","v2.1.0-rc.3","v2.1.0-rc.2","v2.1.0-rc.1","v2.1.0-rc.0","v1.109","v2.0.0-rc.1","v2.0.0-rc.0","v1.107.0-rc.0","v0.0.1-depotprodtestrun.1","v0.0.1-actdev.2","v1.106.0-rc.1","v1.106.0-rc.0","v1.105.0-rc.0","v0.0.1-depotdev.01","v0.0.1-actdev.1","v0.0.0000001-depotdev.01","v0.0.000000001-rc.0","v0.0.0000000001-test.0","v0.0.0000000001-rc.0","v1.104.0-rc.0","v1.103.0-rc.1","v1.103.0-rc.0","v1.102.0-rc.0","v0.000000001.0-rc.0","v1.91.0-rc.0","v1.45.3"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142238.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N"}]}