Summary
This update for go1.20 fixes the following issues:
Update to 1.20.4 (bnc#1206346):
- CVE-2023-24539: Fixed an improper sanitization of CSS values (boo#1211029).
- CVE-2023-24540: Fixed an improper handling of JavaScript whitespace (boo#1211030).
- CVE-2023-29400: Fixed an improper handling of empty HTML attributes (boo#1211031).
- runtime: automatically bump RLIMIT_NOFILE on Unix.
- crypto/subtle: xor fails when run with race+purego.
- cmd/compile: encoding/binary.PutUint16 sometimes doesn't write.
- cmd/compile: internal compiler error: cannot call SetType(go.shape.int) on v (type int).
- cmd/compile: miscompilation in star-tex.org/x/cmd/star-tex.
- net/http: FileServer no longer serves content for POST.
- crypto/tls: TLSv1.3 connection fails with invalid PSK binder.
- cmd/compile: incorrect inline function variable.
- cmd/compile: Unified IR exports table is binary unstable in presence of generics.
- go/internal/gcimporter: lookupGorootExport should use the go command from build.Default.GOROOT.
Non-security fixes:
- Reverted go1.x Suggests go1.x-race (boo#1210963).
- Re-enabled binary stripping and debuginfo (boo#1210938).
Fixed packages 1
| Release | Package | Fixed in |
|---|---|---|
| SUSE · SLE Real Time 15 SP3 Linux Enterprise Real Time 15 SP3 | go1.20 | 1.20.4-150000.1.11.1 |
Vulnerabilities 7
-
Critical 9.8CVE-2023-24538 Public exploit
Backticks not treated as string delimiters in html/template
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, th…
-
Critical 9.8
Improper handling of JavaScript whitespace in html/template
Not all valid JavaScript whitespace characters are considered to be whitespace. Templates containing whitespace characters outside of the character set "\t\n\f\r\u0020\u2028\u2029" in JavaScript contexts that also contain actions may not be properly sanitized…
-
High 7.5
Excessive memory allocation in net/http and net/textproto
HTTP and MIME header parsing can allocate large amounts of memory, even when parsing small inputs, potentially leading to a denial of service. Certain unusual patterns of input data can cause the common function used to parse HTTP and MIME headers to allocate…
-
High 7.5
Excessive resource consumption in net/http, net/textproto and mime/multipart
Multipart form parsing can consume large amounts of CPU and memory when processing form inputs containing very large numbers of parts. This stems from several causes: 1. mime/multipart.Reader.ReadForm limits the total memory a parsed multipart form can consum…
-
High 7.5
Infinite loop in parsing in go/scanner
Calling any of the Parse functions on Go source code which contains //line directives with very large line numbers can cause an infinite loop due to integer overflow.
-
High 7.3
Improper sanitization of CSS values in html/template
Angle brackets (<>) are not considered dangerous characters when inserted into CSS contexts. Templates containing multiple actions separated by a '/' character can result in unexpectedly closing the CSS context and allowing for injection of unexpected HTML, i…
-
High 7.3
Improper handling of empty HTML attributes in html/template
Templates containing actions in unquoted HTML attributes (e.g. "attr={{.}}") executed with empty input can result in output with unexpected results when parsed due to HTML normalization rules. This may allow injection of arbitrary attributes into tags.
References
-
report
https://bugzilla.suse.com/1206346
-
report
https://bugzilla.suse.com/1210127
-
report
https://bugzilla.suse.com/1210128
-
report
https://bugzilla.suse.com/1210129
-
report
https://bugzilla.suse.com/1210130
-
report
https://bugzilla.suse.com/1210938
-
report
https://bugzilla.suse.com/1210963
-
report
https://bugzilla.suse.com/1211029
-
report
https://bugzilla.suse.com/1211030
-
report
https://bugzilla.suse.com/1211031
-
web
https://www.suse.com/security/cve/CVE-2023-24534
-
web
https://www.suse.com/security/cve/CVE-2023-24536
-
web
https://www.suse.com/security/cve/CVE-2023-24537
-
web
https://www.suse.com/security/cve/CVE-2023-24538
-
web
https://www.suse.com/security/cve/CVE-2023-24539
-
web
https://www.suse.com/security/cve/CVE-2023-24540
-
web
https://www.suse.com/security/cve/CVE-2023-29400