CVE Feed

    Dashboard / CVE / CVE-2023-24538

    CVE-2023-24538

    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.

    Published:Apr 4, 2023
    Last Modified:Feb 13, 2025
    EPS:Apr 6, 2023
    EPSS Score:0.00646
    CVSS Score:9.8

    Affected Products

    Vendor
    Golang
    Product
    Go
    Vendor
    Redhat
    Product
    Advanced Cluster Security
    Vendor
    Redhat
    Product
    Ansible Automation Platform
    Vendor
    Redhat
    Product
    Ceph Storage
    Vendor
    Redhat
    Product
    Cert Manager
    Vendor
    Redhat
    Product
    Container Native Virtualization
    Vendor
    Redhat
    Product
    Devtools
    Vendor
    Redhat
    Product
    Enterprise Linux
    Vendor
    Redhat
    Product
    Migration Toolkit Applications
    Vendor
    Redhat
    Product
    Migration Toolkit Virtualization
    Vendor
    Redhat
    Product
    Openshift
    Vendor
    Redhat
    Product
    Openshift Api Data Protection
    Vendor
    Redhat
    Product
    Openshift Distributed Tracing
    Vendor
    Redhat
    Product
    Openshift Ironic
    Vendor
    Redhat
    Product
    Openshift Secondary Scheduler
    Vendor
    Redhat
    Product
    Openshift Serverless
    Vendor
    Redhat
    Product
    Openstack
    Vendor
    Redhat
    Product
    Rhmt
    Vendor
    Redhat
    Product
    Rhosemc
    Vendor
    Redhat
    Product
    Serverless
    Vendor
    Redhat
    Product
    Service Interconnect

    Related CVEs

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High