5 Star 0 Fork 5

OpenCloudOS Stream/grafana

 / 详情

【CVE修复】CVE-2023-45142

已完成
bug 拥有者
创建于  
2024-07-01 09:00

【软件包名】

grafana

【CVE ID】

CVE-2023-45142

【漏洞评级】

High

【评分向量】

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

【CWE ID】

CWE-770

【漏洞描述】

OpenTelemetry-Go Contrib is a collection of third-party packages for OpenTelemetry-Go. A handler wrapper out of the box adds labels `http.user_agent` and `http.method` that have unbound cardinality. It leads to the server's potential memory exhaustion when many malicious requests are sent to it. HTTP header User-Agent or HTTP method for requests can be easily set by an attacker to be random and long. The library internally uses `httpconv.ServerRequest` that records every value for HTTP `method` and `User-Agent`. In order to be affected, a program has to use the `otelhttp.NewHandler` wrapper and not filter any unknown HTTP methods or User agents on the level of CDN, LB, previous middleware, etc. Version 0.44.0 fixed this issue when the values collected for attribute `http.request.method` were changed to be restricted to a set of well-known values and other high cardinality attributes were removed. As a workaround to stop being affected, `otelhttp.WithFilter()` can be used, but it requires manual careful configuration to not log certain requests entirely. For convenience and safe usage of this library, it should by default mark with the label `unknown` non-standard HTTP methods and User agents to show that such requests were made but do not increase cardinality. In case someone wants to stay with the current behavior, library API should allow to enable it.

【参考链接】


评论 (1)

ocs-bot 创建了bug
ocs-bot 添加了
 
CVE
标签
ocs-bot 添加协作者Jackey_1024
展开全部操作日志

此漏洞影响golang vendor库go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp <= v0.44.0版本.
grafana升级到10.2.6,引用go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp 项目的版本是v0.46.1, 因此该CVE已经升级修复。
对应ISSUE:
!4:【软件升级】 [grafana] 可升级至 [10.2.6]

luochenglcs 任务状态待办的 修改为已完成

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(3)
5479204 luochenglcs 1691216215
1
https://gitee.com/opencloudos-stream/grafana.git
git@gitee.com:opencloudos-stream/grafana.git
opencloudos-stream
grafana
grafana

搜索帮助

344bd9b3 5694891 D2dac590 5694891