UBUNTU-CVE-2023-24538

Source
https://ubuntu.com/security/CVE-2023-24538
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-24538.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2023-24538
Related
Published
2023-04-06T16:15:00Z
Modified
2024-10-15T14:11:23Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Ubuntu:Pro:14.04:LTS / golang-1.10

Package

Name
golang-1.10
Purl
pkg:deb/ubuntu/golang-1.10?arch=src?distro=trusty/esm

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*

1.10.4-2ubuntu1~14.04.1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:Pro:16.04:LTS / golang-1.10

Package

Name
golang-1.10
Purl
pkg:deb/ubuntu/golang-1.10?arch=src?distro=esm-infra/xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*

1.10.4-2ubuntu1~16.04.1
1.10.4-2ubuntu1~16.04.2

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:Pro:16.04:LTS / golang-1.6

Package

Name
golang-1.6
Purl
pkg:deb/ubuntu/golang-1.6?arch=src?distro=esm-infra/xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*

1.6-0ubuntu1
1.6-0ubuntu2
1.6-0ubuntu3
1.6-0ubuntu4
1.6-0ubuntu5
1.6.1-0ubuntu1
1.6.2-0ubuntu5~16.04
1.6.2-0ubuntu5~16.04.2
1.6.2-0ubuntu5~16.04.3
1.6.2-0ubuntu5~16.04.4

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:Pro:16.04:LTS / golang-1.13

Package

Name
golang-1.13
Purl
pkg:deb/ubuntu/golang-1.13?arch=src?distro=esm-apps/xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.13.8-1ubuntu1~16.04.3+esm3

Affected versions

1.*

1.13.8-1ubuntu1~16.04.2
1.13.8-1ubuntu1~16.04.3
1.13.8-1ubuntu1~16.04.3+esm2

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "1.13.8-1ubuntu1~16.04.3+esm3",
            "binary_name": "golang-1.13"
        },
        {
            "binary_version": "1.13.8-1ubuntu1~16.04.3+esm3",
            "binary_name": "golang-1.13-doc"
        },
        {
            "binary_version": "1.13.8-1ubuntu1~16.04.3+esm3",
            "binary_name": "golang-1.13-go"
        },
        {
            "binary_version": "1.13.8-1ubuntu1~16.04.3+esm3",
            "binary_name": "golang-1.13-go-dbgsym"
        },
        {
            "binary_version": "1.13.8-1ubuntu1~16.04.3+esm3",
            "binary_name": "golang-1.13-src"
        }
    ]
}

Ubuntu:18.04:LTS / golang-1.18

Package

Name
golang-1.18
Purl
pkg:deb/ubuntu/golang-1.18?arch=src?distro=bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.18.1-1ubuntu1~18.04.4

Affected versions

1.*

1.18.1-1ubuntu1~18.04.3

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "1.18.1-1ubuntu1~18.04.4",
            "binary_name": "golang-1.18"
        },
        {
            "binary_version": "1.18.1-1ubuntu1~18.04.4",
            "binary_name": "golang-1.18-doc"
        },
        {
            "binary_version": "1.18.1-1ubuntu1~18.04.4",
            "binary_name": "golang-1.18-go"
        },
        {
            "binary_version": "1.18.1-1ubuntu1~18.04.4",
            "binary_name": "golang-1.18-src"
        }
    ]
}

Ubuntu:Pro:18.04:LTS / golang-1.10

Package

Name
golang-1.10
Purl
pkg:deb/ubuntu/golang-1.10?arch=src?distro=esm-infra/bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*

1.10~rc1-1
1.10~rc1-1ubuntu1
1.10~rc1-2ubuntu1
1.10~rc2-1ubuntu1
1.10-1ubuntu1
1.10.1-1ubuntu2
1.10.4-2ubuntu1~18.04.1
1.10.4-2ubuntu1~18.04.2

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:Pro:18.04:LTS / golang-1.13

Package

Name
golang-1.13
Purl
pkg:deb/ubuntu/golang-1.13?arch=src?distro=esm-apps/bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.13.8-1ubuntu1~18.04.4+esm1

Affected versions

1.*

1.13.8-1ubuntu1~18.04.2
1.13.8-1ubuntu1~18.04.3
1.13.8-1ubuntu1~18.04.4

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "1.13.8-1ubuntu1~18.04.4+esm1",
            "binary_name": "golang-1.13"
        },
        {
            "binary_version": "1.13.8-1ubuntu1~18.04.4+esm1",
            "binary_name": "golang-1.13-doc"
        },
        {
            "binary_version": "1.13.8-1ubuntu1~18.04.4+esm1",
            "binary_name": "golang-1.13-go"
        },
        {
            "binary_version": "1.13.8-1ubuntu1~18.04.4+esm1",
            "binary_name": "golang-1.13-go-dbgsym"
        },
        {
            "binary_version": "1.13.8-1ubuntu1~18.04.4+esm1",
            "binary_name": "golang-1.13-src"
        }
    ]
}

Ubuntu:Pro:18.04:LTS / golang-1.16

Package

Name
golang-1.16
Purl
pkg:deb/ubuntu/golang-1.16?arch=src?distro=esm-apps/bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.16.2-0ubuntu1~18.04.2+esm1

Affected versions

1.*

1.16.2-0ubuntu1~18.04.2

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "1.16.2-0ubuntu1~18.04.2+esm1",
            "binary_name": "golang-1.16"
        },
        {
            "binary_version": "1.16.2-0ubuntu1~18.04.2+esm1",
            "binary_name": "golang-1.16-doc"
        },
        {
            "binary_version": "1.16.2-0ubuntu1~18.04.2+esm1",
            "binary_name": "golang-1.16-go"
        },
        {
            "binary_version": "1.16.2-0ubuntu1~18.04.2+esm1",
            "binary_name": "golang-1.16-go-dbgsym"
        },
        {
            "binary_version": "1.16.2-0ubuntu1~18.04.2+esm1",
            "binary_name": "golang-1.16-src"
        }
    ]
}

Ubuntu:Pro:18.04:LTS / golang-1.8

Package

Name
golang-1.8
Purl
pkg:deb/ubuntu/golang-1.8?arch=src?distro=esm-apps/bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*

1.8.3-2ubuntu1
1.8.3-2ubuntu1.18.04.1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:Pro:18.04:LTS / golang-1.9

Package

Name
golang-1.9
Purl
pkg:deb/ubuntu/golang-1.9?arch=src?distro=esm-apps/bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*

1.9.1-2ubuntu1
1.9.2-1ubuntu1
1.9.2-3ubuntu1
1.9.3-1ubuntu1
1.9.4-1ubuntu1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:20.04:LTS / golang-1.13

Package

Name
golang-1.13
Purl
pkg:deb/ubuntu/golang-1.13?arch=src?distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.13.8-1ubuntu1.2

Affected versions

1.*

1.13.1-1ubuntu1
1.13.3-1ubuntu1
1.13.4-1ubuntu1
1.13.5-1ubuntu1
1.13.6-1ubuntu1
1.13.6-2ubuntu1
1.13.7-1ubuntu1
1.13.8-1ubuntu1
1.13.8-1ubuntu1.1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "1.13.8-1ubuntu1.2",
            "binary_name": "golang-1.13"
        },
        {
            "binary_version": "1.13.8-1ubuntu1.2",
            "binary_name": "golang-1.13-doc"
        },
        {
            "binary_version": "1.13.8-1ubuntu1.2",
            "binary_name": "golang-1.13-go"
        },
        {
            "binary_version": "1.13.8-1ubuntu1.2",
            "binary_name": "golang-1.13-go-dbgsym"
        },
        {
            "binary_version": "1.13.8-1ubuntu1.2",
            "binary_name": "golang-1.13-src"
        }
    ]
}

Ubuntu:20.04:LTS / golang-1.14

Package

Name
golang-1.14
Purl
pkg:deb/ubuntu/golang-1.14?arch=src?distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*

1.14~beta1-1
1.14~beta1-2
1.14~rc1-1
1.14-1
1.14.1-1
1.14.2-1
1.14.2-1ubuntu1
1.14.3-2ubuntu2~20.04.1
1.14.3-2ubuntu2~20.04.2

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:20.04:LTS / golang-1.16

Package

Name
golang-1.16
Purl
pkg:deb/ubuntu/golang-1.16?arch=src?distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.16.2-0ubuntu1~20.04.1

Affected versions

1.*

1.16.2-0ubuntu1~20.04

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "1.16.2-0ubuntu1~20.04.1",
            "binary_name": "golang-1.16"
        },
        {
            "binary_version": "1.16.2-0ubuntu1~20.04.1",
            "binary_name": "golang-1.16-doc"
        },
        {
            "binary_version": "1.16.2-0ubuntu1~20.04.1",
            "binary_name": "golang-1.16-go"
        },
        {
            "binary_version": "1.16.2-0ubuntu1~20.04.1",
            "binary_name": "golang-1.16-go-dbgsym"
        },
        {
            "binary_version": "1.16.2-0ubuntu1~20.04.1",
            "binary_name": "golang-1.16-src"
        }
    ]
}

Ubuntu:20.04:LTS / golang-1.18

Package

Name
golang-1.18
Purl
pkg:deb/ubuntu/golang-1.18?arch=src?distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.18.1-1ubuntu1~20.04.2

Affected versions

1.*

1.18.1-1ubuntu1~20.04.1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "1.18.1-1ubuntu1~20.04.2",
            "binary_name": "golang-1.18"
        },
        {
            "binary_version": "1.18.1-1ubuntu1~20.04.2",
            "binary_name": "golang-1.18-doc"
        },
        {
            "binary_version": "1.18.1-1ubuntu1~20.04.2",
            "binary_name": "golang-1.18-go"
        },
        {
            "binary_version": "1.18.1-1ubuntu1~20.04.2",
            "binary_name": "golang-1.18-go-dbgsym"
        },
        {
            "binary_version": "1.18.1-1ubuntu1~20.04.2",
            "binary_name": "golang-1.18-src"
        }
    ]
}

Ubuntu:20.04:LTS / golang-1.20

Package

Name
golang-1.20
Purl
pkg:deb/ubuntu/golang-1.20?arch=src?distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.20.3-1ubuntu0.1~20.04

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "1.20.3-1ubuntu0.1~20.04",
            "binary_name": "golang-1.20"
        },
        {
            "binary_version": "1.20.3-1ubuntu0.1~20.04",
            "binary_name": "golang-1.20-doc"
        },
        {
            "binary_version": "1.20.3-1ubuntu0.1~20.04",
            "binary_name": "golang-1.20-go"
        },
        {
            "binary_version": "1.20.3-1ubuntu0.1~20.04",
            "binary_name": "golang-1.20-go-dbgsym"
        },
        {
            "binary_version": "1.20.3-1ubuntu0.1~20.04",
            "binary_name": "golang-1.20-src"
        }
    ]
}

Ubuntu:22.04:LTS / golang-1.13

Package

Name
golang-1.13
Purl
pkg:deb/ubuntu/golang-1.13?arch=src?distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.13.8-1ubuntu2.22.04.2

Affected versions

1.*

1.13.8-1ubuntu2
1.13.8-1ubuntu2.22.04.1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "1.13.8-1ubuntu2.22.04.2",
            "binary_name": "golang-1.13"
        },
        {
            "binary_version": "1.13.8-1ubuntu2.22.04.2",
            "binary_name": "golang-1.13-doc"
        },
        {
            "binary_version": "1.13.8-1ubuntu2.22.04.2",
            "binary_name": "golang-1.13-go"
        },
        {
            "binary_version": "1.13.8-1ubuntu2.22.04.2",
            "binary_name": "golang-1.13-go-dbgsym"
        },
        {
            "binary_version": "1.13.8-1ubuntu2.22.04.2",
            "binary_name": "golang-1.13-src"
        }
    ]
}

Ubuntu:22.04:LTS / golang-1.17

Package

Name
golang-1.17
Purl
pkg:deb/ubuntu/golang-1.17?arch=src?distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.17.13-3ubuntu1.2

Affected versions

1.*

1.17-1ubuntu2
1.17.3-1ubuntu1
1.17.3-1ubuntu2
1.17.13-3ubuntu1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "1.17.13-3ubuntu1.2",
            "binary_name": "golang-1.17"
        },
        {
            "binary_version": "1.17.13-3ubuntu1.2",
            "binary_name": "golang-1.17-doc"
        },
        {
            "binary_version": "1.17.13-3ubuntu1.2",
            "binary_name": "golang-1.17-go"
        },
        {
            "binary_version": "1.17.13-3ubuntu1.2",
            "binary_name": "golang-1.17-go-dbgsym"
        },
        {
            "binary_version": "1.17.13-3ubuntu1.2",
            "binary_name": "golang-1.17-src"
        }
    ]
}

Ubuntu:22.04:LTS / golang-1.18

Package

Name
golang-1.18
Purl
pkg:deb/ubuntu/golang-1.18?arch=src?distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.18.1-1ubuntu1.1

Affected versions

1.*

1.18~beta1-0ubuntu1
1.18~beta2-1ubuntu1
1.18~beta2-1ubuntu2
1.18~rc1-1ubuntu1
1.18-1ubuntu1
1.18.1-1ubuntu1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "1.18.1-1ubuntu1.1",
            "binary_name": "golang-1.18"
        },
        {
            "binary_version": "1.18.1-1ubuntu1.1",
            "binary_name": "golang-1.18-doc"
        },
        {
            "binary_version": "1.18.1-1ubuntu1.1",
            "binary_name": "golang-1.18-go"
        },
        {
            "binary_version": "1.18.1-1ubuntu1.1",
            "binary_name": "golang-1.18-go-dbgsym"
        },
        {
            "binary_version": "1.18.1-1ubuntu1.1",
            "binary_name": "golang-1.18-src"
        }
    ]
}

Ubuntu:22.04:LTS / golang-1.20

Package

Name
golang-1.20
Purl
pkg:deb/ubuntu/golang-1.20?arch=src?distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.20.3-1ubuntu0.1~22.04

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "1.20.3-1ubuntu0.1~22.04",
            "binary_name": "golang-1.20"
        },
        {
            "binary_version": "1.20.3-1ubuntu0.1~22.04",
            "binary_name": "golang-1.20-doc"
        },
        {
            "binary_version": "1.20.3-1ubuntu0.1~22.04",
            "binary_name": "golang-1.20-go"
        },
        {
            "binary_version": "1.20.3-1ubuntu0.1~22.04",
            "binary_name": "golang-1.20-go-dbgsym"
        },
        {
            "binary_version": "1.20.3-1ubuntu0.1~22.04",
            "binary_name": "golang-1.20-src"
        }
    ]
}

Ubuntu:Pro:22.04:LTS / golang-1.13

Package

Name
golang-1.13
Purl
pkg:deb/ubuntu/golang-1.13?arch=src?distro=esm-apps/jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.13.8-1ubuntu2.22.04.2

Affected versions

1.*

1.13.8-1ubuntu2
1.13.8-1ubuntu2.22.04.1
1.13.8-1ubuntu2.22.04.1+esm1

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "1.13.8-1ubuntu2.22.04.2",
            "binary_name": "golang-1.13"
        },
        {
            "binary_version": "1.13.8-1ubuntu2.22.04.2",
            "binary_name": "golang-1.13-doc"
        },
        {
            "binary_version": "1.13.8-1ubuntu2.22.04.2",
            "binary_name": "golang-1.13-go"
        },
        {
            "binary_version": "1.13.8-1ubuntu2.22.04.2",
            "binary_name": "golang-1.13-go-dbgsym"
        },
        {
            "binary_version": "1.13.8-1ubuntu2.22.04.2",
            "binary_name": "golang-1.13-src"
        }
    ]
}