CVE-2023-29453CWE-94

Agent 2 package are built with Go version affected by CVE-2023-24538

Critical · published October 12, 2023

CVSS v3.1
9.8
EPSS
1%
Percentile
59.2
In the wild
Unconfirmed
What it is

🚨 A sneaky oversight allows backticks to let attackers inject arbitrary JavaScript into your Go templates! 🔥 Think of it like a restaurant recipe that mistakenly accepts any ingredient the chef throws in without checking — one wrong move and you could end up with a dish that poisons everyone! An attacker exploiting this flaw can inject malicious JavaScript code into your Go templates, potentially leading to devastating consequences such as data theft or unauthorized actions being performed on behalf of your users. The consequences could be catastrophic!

Put simply

Think of it like a restaurant recipe that mistakenly accepts any ingredient the chef throws in without checking — one wrong move and you could end up with a dish that poisons everyone! This vulnerability arises because Go templates do not properly process backticks as JavaScript string delimiters, allowing for unsafe JavaScript execution via template literals containing Go template actions.

What to do

An attacker exploiting this flaw can inject malicious JavaScript code into your Go templates, potentially leading to devastating consequences such as data theft or unauthorized actions being performed on behalf of your users. The consequences could be catastrophic! To secure your application, upgrade to Go version 1.21 when it releases; it will introduce an error handling mechanism for these templates. If necessary, you can use the GODEBUG flag to revert to the previous behavior, but do so with caution! You've got this! Follow these steps and protect your application from this vulnerability! 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00897 · 59.2th percentile
Weakness
CWE-94 · Improper Control of Generation of Code ('Code Injection')
Published
2023-10-12T05:50Z
EPSS history
Timeline
  • 12 OCT 05:50Z
    Agent 2 package are built with Go version affected by CVE-2023-24538
    cvelistv5