Search covers the description text, product and vendor names and weakness types (also partial words).

CVE-2023-24538
golang go

Score9.8 Critical
CVSS 3.1
Exploit probability (EPSS)2.4%
within the next 30 days
CategoryCode execution & injection
Published6 April 2023
Last modified: 17 June 2026

In short

This vulnerability can be exploited remotely over the network, without logging in, without any user interaction.

A successful attack has high impact: reading confidential data, modifying data, crashing the system or making it unavailable.

Weakness type: Code injection.

✨ AI commentary

After a short ad, a plain-language commentary on this vulnerability is shown. AI can make mistakes; base decisions on the official sources.

Official 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.

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

Weakness: CWE-94 – Code injection

Affected products

VendorProductVersions
golanggo<1.19.8
golanggo>=1.20.0 <1.20.3

Sources

Latest in the same category

  • CVE-2026-139895 Low 2.1
    A vulnerability was determined in itsourcecode Stock Management System 1.0. The impacted element is an unknown function of the file fetchOrderData.php. Executing a manipulation of the argument orderId can lead to sql…
    Code execution & injection · 1 December 2026
  • CVE-2026-140281 Critical 9.2
    GPT-SoVITS through 20250606v2pro contains an unsafe deserialization vulnerability in the api.py /set_model endpoint that allows unauthenticated attackers to load arbitrary model checkpoints. Attackers can set…
    Code execution & injection · 1 December 2026
  • CVE-2026-121479 Medium 6.3
    A flaw was found in sequoia-sq. This vulnerability can lead to arbitrary code execution when the tool displays suggested command hints derived from untrusted inputs, such as user identities. Because command arguments…
    Code execution & injection · 1 December 2026
  • CVE-2026-139863 Medium 5.5
    A weakness has been identified in itsourcecode Stock Management System 1.0. This affects an unknown part of the file php_action/fetchProductImageUrl.php. This manipulation of the argument i causes sql injection. The…
    Code execution & injection · 30 November 2026
  • CVE-2026-139862 Medium 5.5
    A vulnerability was identified in itsourcecode Stock Management System 1.0. Affected by this vulnerability is an unknown functionality of the file php_action/fetchSelectedCategories.php. The manipulation of the…
    Code execution & injection · 30 November 2026
  • CVE-2026-139861 Medium 5.5
    A vulnerability was determined in itsourcecode Stock Management System 1.0. Affected is an unknown function of the file php_action/fetchSelectedBrand.php. Executing a manipulation of the argument brandId can lead to…
    Code execution & injection · 30 November 2026