CWE
150
EPSS
0.045%
Advisory Published
CVE Published
Updated

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

First published: Tue Mar 05 2024(Updated: )

Golang Go could allow a remote attacker to bypass security restrictions, caused by a flaw in the MarshalJSON methods in the html/template package. By sending a specially crafted request, an attacker could exploit this vulnerability to inject unexpected content into templates.

Credit: security@golang.org security@golang.org

Affected SoftwareAffected VersionHow to fix
redhat/go<1.21.8
1.21.8
redhat/go<1.22.1
1.22.1
debian/golang-1.15<=1.15.15-1~deb11u4
debian/golang-1.19<=1.19.8-2
debian/golang-1.22
1.22.12-3
IBM Rational Team Concert<=1.0.0, 1.0.1, 1.0.2, 1.0.2.1

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Reference Links

Parent vulnerabilities

(Appears in the following advisories)

Frequently Asked Questions

  • What is the severity of CVE-2024-24785?

    CVE-2024-24785 is considered a medium severity vulnerability due to the potential for remote exploitation.

  • How do I fix CVE-2024-24785?

    To fix CVE-2024-24785, update to the appropriate versions of Go or affected software as detailed in the remediation section.

  • What systems are affected by CVE-2024-24785?

    CVE-2024-24785 affects IBM Concert Software versions up to 1.0.2.1 and several versions of Golang packages across different distributions.

  • What type of vulnerability is CVE-2024-24785?

    CVE-2024-24785 is a remote code execution vulnerability due to improper handling of JSON marshaling in the html/template package.

  • Can CVE-2024-24785 lead to further attacks?

    Yes, if exploited, CVE-2024-24785 could allow attackers to inject malicious content into templates, potentially leading to further attacks.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203