Amenazas en vivo

Todas las CVE / Golang

CVE-2022-41720Golang Go

Alta 7.5 Sin autenticación

Prioridad
60
CVSS 3.1
7.5
EPSS
1.3%
probabilidad de explotación en 30 días · percentil 70
Requiere autenticación
No
Publicada
7 dic 2022
Actualizada
17 jun 2026
Categoría
Aplicación · Multiplataforma
Debilidad (CWE)
CWE-22
SSVC (CISA)
Explotación: ninguna · Automatizable: sí · Impacto técnico: parcial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Qué pasa

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 root was treated equivalently to "/", so os.DirFS("").Open("tmp") would open the path "/tmp". This now returns an error.

Texto original de NVD, en inglés. La traducción y el resumen en español llegan pronto.

Qué hacer

  1. Aplica la actualización de seguridad del fabricante para Go.
  2. Se explota sin autenticación: si no puedes parchear ya, limita el acceso desde Internet al servicio afectado.

Paquetes afectados

EcosistemaPaqueteVersiones afectadasCorregida enCómo actualizar
Go stdlib < 1.18.9 1.18.9 go get stdlib@v1.18.9
Go stdlib ≥ 1.19.0-0 < 1.19.4 1.19.4 go get stdlib@v1.19.4

Según OSV / GitHub Advisories (GO-2022-1143). Verifica la versión en tu lockfile antes de actualizar.

Productos afectados (CPE)

FabricanteProductoVersiones
golanggo< 1.18.9
golanggo≥ 1.19.0 < 1.19.4

Fuentes oficiales

Referencias

Enlaces publicados por las fuentes. Ábrelos con criterio.