Description
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.
Metrics
CVSS 3.1 5.3/10
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:NWeakness enumeration
Affected software
Source: the vendor's advisory (CNA). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| opencost | OpenCost | <= 1.121.5 |
References
- https://github.com/opencost/opencost/blob/v1.121.5/core/pkg/util/apiutil/apiutil.go#L11-L17
- https://github.com/opencost/opencost/blob/v1.121.5/core/pkg/util/apiutil/loglevel.go#L37-L51
- https://github.com/opencost/opencost/blob/v1.121.5/pkg/cmd/costmodel/costmodel.go#L114-L120
- https://www.vulncheck.com/advisories/opencost-through-1.121.5-missing-authentication-via-logs-level-and-logs-exclude
Timeline
- Published
- Dec 2, 2026
- Last modified
- Dec 2, 2026
- NVD status
- Received