CVE-2021-44717
JSON

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 packageVersionsReported by
Unspecified productn/aCVE List
stdlib (Go)before 1.16.12, from 1.17.0-0 before 1.17.5Go Vulnerability Database
golang gobefore 1.16.12, from 1.17.0 before 1.17.5NVD
debian debian_linux9.0NVD
golang (Bitnami)before 1.16.12, from 1.17.0 before 1.17.5Bitnami Vulnerability Database

All scores

NVD4.8medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
NVD5.8medium CVSS:2.0AV:N/AC:M/Au:N/C:P/I:P/A:N
Bitnami Vulnerability Databasemedium 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

Sources

SourceRecordLicence
CVE ListCVE-2021-44717 changed 2024-08-04CVE Terms of Use
Go Vulnerability DatabaseGO-2022-0289 changed 2024-05-20CC-BY-4.0
NVDCVE-2021-44717 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-GOLANG-2021-44717 changed 2026-10-16Apache-2.0