Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2024-24785— Errors returned from JSON marshaling may break template escaping in html/template

Quick assessment

Affected
Go standard library html/template
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Google Go是美国谷歌(Google)公司的一种静态强类型、编译型、并发型,并具有垃圾回收功能的编程语言。 Google Go 存在安全漏洞。攻击者利用该漏洞将意外内容注入到模板中。

AI Predicted 7.5 Difficulty: Moderate EPSS 0.80% · P55

Possible ATT&CK Techniques 1 AI

T1190 · Exploit Public-Facing Application
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2024-24785

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Errors returned from JSON marshaling may break template escaping in html/template
Source: CVE Program / CVE List V5
Vulnerability Description
If errors returned from MarshalJSON methods contain user controlled data, they may be used to break the contextual auto-escaping behavior of the html/template package, allowing for subsequent actions to inject unexpected content into templates.
Source: CVE Program / CVE List V5
CVSS Information
N/A
Source: CVE Program / CVE List V5
Vulnerability Type
N/A
Source: CVE Program / CVE List V5
Vulnerability Title
Google Go 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Google Go是美国谷歌(Google)公司的一种静态强类型、编译型、并发型,并具有垃圾回收功能的编程语言。 Google Go 存在安全漏洞。攻击者利用该漏洞将意外内容注入到模板中。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
Go standard library html/template 0 ~ 1.21.8 -

II. Public POCs for CVE-2024-24785

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2024-24785

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

Vendor Advisories for CVE-2024-24785 (1)

Mailing List Discussions for CVE-2024-24785 (1)

Other References for CVE-2024-24785 (4)

Same Patch Batch · Go standard library · 2024-03-05 · 5 CVEs total

CVE-2023-45289 Incorrect forwarding of sensitive headers and cookies on HTTP redirect in net/http
CVE-2023-45290 Memory exhaustion in multipart form parsing in net/textproto and net/http
CVE-2024-24783 Verify panics on certificates with an unknown public key algorithm in crypto/x509
CVE-2024-24784 Comments in display names are incorrectly handled in net/mail

IV. Related Vulnerabilities

V. Comments for CVE-2024-24785

No comments yet


Leave a comment