目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1359 元

100%

CVE-2023-24538— Google Golang 代码注入漏洞

一分钟漏洞结论

影响对象
Go standard library html/template
利用判断
存在公开或 AI PoC,应优先验证
建议动作
优先检查厂商安全公告和参考链接中的修复版本;无法立即升级时,限制受影响服务暴露并加强监测。

Google Golang是美国谷歌(Google)公司的一种静态强类型、编译型语言。Go的语法接近C语言,但对于变量的声明有所不同。Go支持垃圾回收功能。Go的并行模型是以东尼·霍尔的通信顺序进程(CSP)为基础,采取类似模型的其他语言包括Occam和Limbo,但它也具有Pi运算的特征,比如通道传输。在1.8版本中开放插件(Plugin)的支持,这意味着现在能从Go中动态加载部分函数。 Google Golang 存在安全漏洞,该漏洞源于Templates没有正确地将反引号` 视为 Javascrip

AI 预测 6.1 利用难度: 中等 EPSS 2.28% · P83
获取后续新漏洞提醒 登录后订阅

一、 漏洞 CVE-2023-24538 基础信息

漏洞信息

对漏洞内容有疑问?看看神龙的深度分析是否有帮助!
查看神龙十问 ↗

尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。

Vulnerability Title
Backticks not treated as string delimiters in html/template
来源: CVE Program / CVE List V5
Vulnerability Description
Templates do not properly consider backticks (`) as Javascript string delimiters, and do not escape them as expected. Backticks are used, since ES6, for JS template literals. If a template contains a Go template action within a Javascript template literal, the contents of the action can be used to terminate the literal, injecting arbitrary Javascript code into the Go template. As ES6 template literals are rather complex, and themselves can do string interpolation, the decision was made to simply disallow Go template actions from being used inside of them (e.g. "var a = {{.}}"), since there is no obviously safe way to allow this behavior. This takes the same approach as github.com/google/safehtml. With fix, Template.Parse returns an Error when it encounters templates like this, with an ErrorCode of value 12. This ErrorCode is currently unexported, but will be exported in the release of Go 1.21. Users who rely on the previous behavior can re-enable it using the GODEBUG flag jstmpllitinterp=1, with the caveat that backticks will now be escaped. This should be used with caution.
来源: CVE Program / CVE List V5
CVSS Information
N/A
来源: CVE Program / CVE List V5
Vulnerability Type
N/A
来源: CVE Program / CVE List V5
Vulnerability Title
Google Golang 代码注入漏洞
来源: 中国国家信息安全漏洞库 CNNVD
Vulnerability Description
Google Golang是美国谷歌(Google)公司的一种静态强类型、编译型语言。Go的语法接近C语言,但对于变量的声明有所不同。Go支持垃圾回收功能。Go的并行模型是以东尼·霍尔的通信顺序进程(CSP)为基础,采取类似模型的其他语言包括Occam和Limbo,但它也具有Pi运算的特征,比如通道传输。在1.8版本中开放插件(Plugin)的支持,这意味着现在能从Go中动态加载部分函数。 Google Golang 存在安全漏洞,该漏洞源于Templates没有正确地将反引号` 视为 Javascrip
来源: 中国国家信息安全漏洞库 CNNVD
CVSS Information
N/A
来源: 中国国家信息安全漏洞库 CNNVD
Vulnerability Type
N/A
来源: 中国国家信息安全漏洞库 CNNVD

受影响产品

厂商 产品 影响版本 CPE 订阅
Go standard library html/template 0 ~ 1.19.8 -

二、漏洞 CVE-2023-24538 的公开POC

# POC 描述 源链接 神龙链接
1 go CVE-2023-24538 patch issue resolver - Dunfell https://github.com/skulkarni-mv/goIssue_dunfell POC详情
2 go CVE-2023-24538 patch issue resolver - Kirkstone https://github.com/skulkarni-mv/goIssue_kirkstone POC详情
AI 生成 POC 高级

未找到公开 POC。

登录以生成 AI POC

三、漏洞 CVE-2023-24538 的情报信息

请登录查看更多情报信息。

CVE-2023-24538 厂商安全公告 (1)

CVE-2023-24538 其他参考 (4)

同批安全公告 · Go standard library · 2023-04-06 · 共 4 条

CVE-2023-24534 Google Golang 资源管理错误漏洞
CVE-2023-24536 Google Golang 安全漏洞
CVE-2023-24537 Google Golang 输入验证错误漏洞

IV. Related Vulnerabilities

V. Comments for CVE-2023-24538

暂无评论


发表评论