p PatchFirst

PatchFirst · Свежие уязвимости

Уязвимости golang-1.19 · Страница 6

За последние 30 дней в golang-1.19 опубликовано уязвимостей: 15; в каталоге KEV: 0.

Фильтры уязвимостей
Сбросить фильтры

Уязвимостей: 131

  1. CVE-2023-29403

    Высокий · CVSS 7.8EPSS 0,43%Нет опубликованного исправления

    Unsafe behavior in setuid/setgid binaries in runtime

    On Unix platforms, the Go runtime does not behave differently when a binary is run with the setuid/setgid bits. This can be dangerous in certain cases, such as when dumping memory state, or assuming the status of standard i/o file descriptors. If a setuid/setgid binary is executed with standard I/O file descriptors closed, opening any files can result in unexpected content being read or written with elevated privileges. Similarly, if a setuid/setgid program is terminated, either via panic or signal, it may leak the contents of its registers.

  2. CVE-2023-29402

    Критический · CVSS 9.8EPSS 1,69%Нет опубликованного исправления

    Code injection via go command with cgo in cmd/go

    The go command may generate unexpected code at build time when using cgo. This may result in unexpected behavior when running a go program which uses cgo. This may occur when running an untrusted module which contains directories with newline characters in their names. Modules which are retrieved using the go command, i.e. via "go get", are not affected (modules retrieved using GOPATH-mode, i.e. GO111MODULE=off, may be affected).

  3. CVE-2023-24539

    Высокий · CVSS 7.3EPSS 1,04%Нет опубликованного исправления

    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, if executed with untrusted input.

  4. CVE-2023-24540

    Критический · CVSS 9.8EPSS 1,56%Нет опубликованного исправления

    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 during execution.

  5. CVE-2023-29400

    Высокий · CVSS 7.3EPSS 1,04%Нет опубликованного исправления

    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.

  6. CVE-2023-24537

    Высокий · CVSS 7.5EPSS 1,41%Есть исправление

    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.

    • Обновитесь до 1.19.8-2
    Опубликовано Обновлено
  7. CVE-2023-24538

    Критический · CVSS 9.8EPSS 2,28%Есть исправление

    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, 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

    • Обновитесь до 1.19.8-2
    Опубликовано Обновлено
  8. CVE-2023-24534

    Высокий · CVSS 7.5EPSS 1,89%Есть исправление

    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 substantially more memory than required to hold the parsed headers. An attacker can exploit this behavior to cause an HTTP server to allocate large amounts of memory from a small request, potentially leading to memory exhaustion and a denial of service. With fix, header parsing now correctly allocates only the memory required to hold parsed headers.

    • Обновитесь до 1.19.8-2
    Опубликовано Обновлено
  9. CVE-2023-24536

    Высокий · CVSS 7.5EPSS 1,48%Есть исправление

    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 consume. ReadForm can undercount the amount of memory consumed, leading it to accept larger inputs than intended. 2. Limiting total memory does not account for increased pressure on the garbage collector from large numbers of small allocations in forms with many parts. 3. ReadForm can allocate a large number of short-lived buffers, further increasing pressure on the garbage collector. The combi

    • Обновитесь до 1.19.8-2
    Опубликовано Обновлено
  10. CVE-2023-24532

    Средний · CVSS 5.3EPSS 0,82%Есть исправление

    Incorrect calculation on P256 curves in crypto/internal/nistec

    The ScalarMult and ScalarBaseMult methods of the P256 Curve may return an incorrect result if called with some specific unreduced scalars (a scalar larger than the order of the curve). This does not impact usages of crypto/ecdsa or crypto/ecdh.

    • Обновитесь до 1.19.8-2
    Опубликовано Обновлено
  11. CVE-2022-41723

    Высокий · CVSS 7.5EPSS 4,56%Есть исправление

    Denial of service via crafted HTTP/2 stream in net/http and golang.org/x/net

    A maliciously crafted HTTP/2 stream could cause excessive CPU consumption in the HPACK decoder, sufficient to cause a denial of service from a small number of small requests.

    • Обновитесь до 1.19.6-2
  12. CVE-2022-41724

    Высокий · CVSS 7.5EPSS 1,11%Есть исправление

    Panic on large handshake records in crypto/tls

    Large handshake records may cause panics in crypto/tls. Both clients and servers may send large TLS handshake records which cause servers and clients, respectively, to panic when attempting to construct responses. This affects all TLS 1.3 clients, TLS 1.2 clients which explicitly enable session resumption (by setting Config.ClientSessionCache to a non-nil value), and TLS 1.3 servers which request client certificates (by setting Config.ClientAuth >= RequestClientCert).

    • Обновитесь до 1.19.6-2
    Опубликовано Обновлено
  13. CVE-2022-41725

    Высокий · CVSS 7.5EPSS 1,24%Есть исправление

    Excessive resource consumption in mime/multipart

    A denial of service is possible from excessive resource consumption in net/http and mime/multipart. Multipart form parsing with mime/multipart.Reader.ReadForm can consume largely unlimited amounts of memory and disk files. This also affects form parsing in the net/http package with the Request methods FormFile, FormValue, ParseMultipartForm, and PostFormValue. ReadForm takes a maxMemory parameter, and is documented as storing "up to maxMemory bytes +10MB (reserved for non-file parts) in memory". File parts which cannot be stored in memory are stored on disk in temporary files. The unconfigurable 10MB reserved for non-file parts is excessively

    • Обновитесь до 1.19.6-2
    Опубликовано Обновлено
  14. CVE-2022-41722

    Высокий · CVSS 7.5EPSS 1,68%Есть исправление

    Path traversal on Windows in path/filepath

    A path traversal vulnerability exists in filepath.Clean on Windows. On Windows, the filepath.Clean function could transform an invalid path such as "a/../c:/b" into the valid path "c:\b". This transformation of a relative (if invalid) path into an absolute path could enable a directory traversal attack. After fix, the filepath.Clean function transforms this path into the relative (but still invalid) path ".\c:\b".

    • Обновитесь до 1.19.6-2
    Опубликовано Обновлено
  15. CVE-2022-41717

    Средний · CVSS 5.3EPSS 6,08%Есть исправление

    Excessive memory growth in net/http and golang.org/x/net/http2

    An attacker can cause excessive memory growth in a Go server accepting HTTP/2 requests. HTTP/2 server connections contain a cache of HTTP header keys sent by the client. While the total number of entries in this cache is capped, an attacker sending very large keys can cause the server to allocate approximately 64 MiB per open connection.

    • Обновитесь до 1.19.4-1
    Опубликовано Обновлено
  16. CVE-2022-41720

    Высокий · CVSS 7.5EPSS 1,28%Есть исправление

    Restricted file access on Windows in os and net/http

    On Windows, restricted files can be accessed via os.DirFS and http.Dir. The os.DirFS function and http.Dir type provide access to a tree of files rooted at a given directory. These functions permit access to Windows device files under that root. For example, os.DirFS("C:/tmp").Open("COM1") opens the COM1 device. Both os.DirFS and http.Dir only provide read-only filesystem access. In addition, on Windows, an os.DirFS for the directory (the root of the current drive) can permit a maliciously crafted path to escape from the drive and access any path on the system. With fix applied, the behavior of os.DirFS("") has changed. Previously, an empty r

    • Обновитесь до 1.19.4-1
    Опубликовано Обновлено
  17. CVE-2022-41716

    Средний · CVSS 6.3EPSS 0,85%Есть исправление

    Unsanitized NUL in environment variables on Windows in syscall and os/exec

    Due to unsanitized NUL values, attackers may be able to maliciously set environment variables on Windows. In syscall.StartProcess and os/exec.Cmd, invalid environment variable values containing NUL values are not properly checked for. A malicious environment variable value can exploit this behavior to set a value for a different environment variable. For example, the environment variable string "A=B\x00C=D" sets the variables "A=B" and "C=D".

    • Обновитесь до 1.19.3-1
    Опубликовано Обновлено
  18. CVE-2022-41715

    Высокий · CVSS 7.5EPSS 1,73%Есть исправление

    Memory exhaustion when compiling regular expressions in regexp/syntax

    Programs which compile regular expressions from untrusted sources may be vulnerable to memory exhaustion or denial of service. The parsed regexp representation is linear in the size of the input, but in some cases the constant factor can be as high as 40,000, making relatively small regexps consume much larger amounts of memory. After fix, each regexp being parsed is limited to a 256 MB memory footprint. Regular expressions whose representation would use more space than that are rejected. Normal use of regular expressions is unaffected.

    • Обновитесь до 1.19.2-1
    Опубликовано Обновлено
  19. CVE-2022-2880

    Высокий · CVSS 7.5EPSS 1,41%Есть исправление

    Incorrect sanitization of forwarded query parameters in net/http/httputil

    Requests forwarded by ReverseProxy include the raw query parameters from the inbound request, including unparsable parameters rejected by net/http. This could permit query parameter smuggling when a Go proxy forwards a parameter with an unparsable value. After fix, ReverseProxy sanitizes the query parameters in the forwarded query when the outbound request's Form field is set after the ReverseProxy. Director function returns, indicating that the proxy has parsed the query parameters. Proxies which do not parse query parameters continue to forward the original query parameters unchanged.

    • Обновитесь до 1.19.2-1
    Опубликовано Обновлено
  20. CVE-2022-2879

    Высокий · CVSS 7.5EPSS 2,01%Есть исправление

    Unbounded memory consumption when reading headers in archive/tar

    Reader.Read does not set a limit on the maximum size of file headers. A maliciously crafted archive could cause Read to allocate unbounded amounts of memory, potentially causing resource exhaustion or panics. After fix, Reader.Read limits the maximum size of header blocks to 1 MiB.

    • Обновитесь до 1.19.2-1
    Опубликовано Обновлено

Проверьте свой сервер

Сопоставьте установленный стек и версии со свежими базами уязвимостей.

Проверьте свой сервер →