4.8medium
Misdirected I/O in syscall
- Severity
- 4.8medium CVSS:3.1 by NVD
- Exploit likelihood
- 2.01% (higher than 81% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GO-2022-0289BIT-GOLANG-2021-44717
Description
Go before 1.16.12 and 1.17.x before 1.17.5 on UNIX allows write operations to an unintended file or unintended network connection as a consequence of erroneous closing of file descriptor 0 after file-descriptor exhaustion.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| stdlib (Go) | before 1.16.12, from 1.17.0-0 before 1.17.5 | Go Vulnerability Database |
| golang go | before 1.16.12, from 1.17.0 before 1.17.5 | NVD |
| debian debian_linux | 9.0 | NVD |
| golang (Bitnami) | before 1.16.12, from 1.17.0 before 1.17.5 | Bitnami Vulnerability Database |
All scores
| NVD | 4.8medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N |
| NVD | 5.8medium CVSS:2.0 | AV:N/AC:M/Au:N/C:P/I:P/A:N |
| Bitnami Vulnerability Database | medium rating |
Classification
What each source says
CVE List
Go before 1.16.12 and 1.17.x before 1.17.5 on UNIX allows write operations to an unintended file or unintended network connection as a consequence of erroneous closing of file descriptor 0 after file-descriptor exhaustion.
Go Vulnerability Database
When a Go program running on a Unix system is out of file descriptors and calls syscall.ForkExec (including indirectly by using the os/exec package), syscall.ForkExec can close file descriptor 0 as it fails. If this happens (or can be provoked) repeatedly, it can result in misdirected I/O such as writing network traffic intended for one connection to a different connection, or content intended for one file to a different one.
For users who cannot immediately update to the new release, the bug can be mitigated by raising the per-process file descriptor limit.
NVD (es)
Go versiones anteriores a 1.16.12 y versiones 1.17.x anteriores a 1.17.5 en UNIX, permite operaciones de escritura en un archivo no deseado o en una conexión de red no deseada como consecuencia de un cierre erróneo del descriptor de archivo 0 tras el agotamiento del descriptor de archivo.
References
| https://groups.google.com/g/golang-announce/c/hcmEScgc00k | advisory, patch, vendor-advisory, web | |
| https://lists.debian.org/debian-lts-announce/2022/01/msg00016.html | advisory, mailing-list, third-party-advisory | |
| https://lists.debian.org/debian-lts-announce/2022/01/msg00017.html | advisory, mailing-list, third-party-advisory | |
| https://security.gentoo.org/glsa/202208-02 | advisory, third-party-advisory, vendor-advisory | |
| https://cert-portal.siemens.com/productcert/pdf/ssa-744259.pdf | ||
| https://lists.debian.org/debian-lts-announce/2023/04/msg00021.html | mailing-list, web | |
| https://go.dev/cl/370576 | fix | |
| https://go.googlesource.com/go/+/a76511f3a40ea69ee4f5cd86e735e1c8a84f0aa2 | fix | |
| https://go.dev/issue/50057 | report | |
| https://go.dev/cl/370577 | fix | |
| https://go.dev/cl/370795 | fix | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-44717 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-44717 changed 2024-08-04 | CVE Terms of Use |
| Go Vulnerability Database | GO-2022-0289 changed 2024-05-20 | CC-BY-4.0 |
| NVD | CVE-2021-44717 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-GOLANG-2021-44717 changed 2026-10-16 | Apache-2.0 |