Ubuntu CVE Tracker
UBUNTU-CVE-2024-24785
Details
If errors returned from MarshalJSON methods contain user controlled data, they may be used to break the contextual auto-escaping behavior of the html/template package, allowing for subsequent actions to inject unexpected content into templates.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Ubuntu:14.04:LTS | golang-1.10 | All versions, no fix listed |
| Ubuntu:Pro:16.04:LTS | golang-1.18 | All versions before 1.18.1-1ubuntu1~16.04.6+esm1 (fixed in 1.18.1-1ubuntu1~16.04.6+esm1) |
| Ubuntu:16.04:LTS | golang-1.10 | All versions, no fix listed |
| Ubuntu:16.04:LTS | golang-1.6 | All versions, no fix listed |
| Ubuntu:Pro:16.04:LTS | golang-1.13 | All versions, no fix listed |
| Ubuntu:18.04:LTS | golang-1.10 | All versions, no fix listed |
| Ubuntu:Pro:18.04:LTS | golang-1.13 | All versions, no fix listed |
| Ubuntu:Pro:18.04:LTS | golang-1.16 | All versions, no fix listed |
| Ubuntu:Pro:18.04:LTS | golang-1.18 | All versions before 1.18.1-1ubuntu1~18.04.4+esm1 (fixed in 1.18.1-1ubuntu1~18.04.4+esm1) |
| Ubuntu:18.04:LTS | golang-1.8 | All versions, no fix listed |
| Ubuntu:18.04:LTS | golang-1.9 | All versions, no fix listed |
| Ubuntu:20.04:LTS | golang-1.18 | All versions before 1.18.1-1ubuntu1~20.04.3 (fixed in 1.18.1-1ubuntu1~20.04.3) |
| Ubuntu:20.04:LTS | golang-1.21 | All versions before 1.21.1-1~ubuntu20.04.3 (fixed in 1.21.1-1~ubuntu20.04.3) |
| Ubuntu:20.04:LTS | golang-1.13 | All versions, no fix listed |
| Ubuntu:20.04:LTS | golang-1.14 | All versions, no fix listed |
| Ubuntu:Pro:20.04:LTS | golang-1.16 | All versions, no fix listed |
| Ubuntu:22.04:LTS | golang-1.17 | All versions before 1.17.13-3ubuntu1.2 (fixed in 1.17.13-3ubuntu1.2) |
| Ubuntu:22.04:LTS | golang-1.18 | All versions before 1.18.1-1ubuntu1.2 (fixed in 1.18.1-1ubuntu1.2) |
| Ubuntu:22.04:LTS | golang-1.21 | All versions before 1.21.1-1~ubuntu22.04.3 (fixed in 1.21.1-1~ubuntu22.04.3) |
| Ubuntu:Pro:22.04:LTS | golang-1.13 | All versions, no fix listed |
References
- https://ubuntu.com/security/CVE-2024-24785
- https://github.com/golang/go/issues/65697
- https://github.com/golang/go/commit/056b0edcb8c152152021eebf4cf42adbfbe77992
- https://github.com/golang/go/commit/3643147a29352ca2894fd5d0d2069bc4b4335a7e
- https://go.dev/issue/65697
- https://go.dev/cl/564196
- https://groups.google.com/g/golang-announce/c/5pwGVUPoMbg
- https://pkg.go.dev/vuln/GO-2024-2610
- https://www.cve.org/CVERecord?id=CVE-2024-24785
- https://ubuntu.com/security/notices/USN-6886-1
- https://ubuntu.com/security/notices/USN-7061-1
- https://ubuntu.com/security/notices/USN-7109-1