Amenazas en vivo

Todas las CVE / Libgit2

CVE-2023-22742Libgit2

Media 5.9 Sin autenticación

Prioridad
50
CVSS 3.1
5.9
EPSS
0.5%
probabilidad de explotación en 30 días · percentil 33
Requiere autenticación
No
Publicada
20 ene 2023
Actualizada
17 jun 2026
Categoría
Aplicación · Multiplataforma
Debilidad (CWE)
CWE-347
SSVC (CISA)
Explotación: ninguna · Automatizable: no · Impacto técnico: parcial
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N

Qué pasa

libgit2 is a cross-platform, linkable library implementation of Git. When using an SSH remote with the optional libssh2 backend, libgit2 does not perform certificate checking by default. Prior versions of libgit2 require the caller to set the `certificate_check` field of libgit2's `git_remote_callbacks` structure - if a certificate check callback is not set, libgit2 does not perform any certificate checking. This means that by default - without configuring a certificate check callback, clients will not perform validation on the server SSH keys and may be subject to a man-in-the-middle attack. Users are encouraged to upgrade to v1.4.5 or v1.5.1. Users unable to upgrade should ensure that all relevant certificates are manually checked.

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 Libgit2.
  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
crates.io git2 < 0.16.1 0.16.1 cargo update -p git2 --precise 0.16.1
crates.io libgit2-sys ≥ 0.14.0 < 0.14.2 0.14.2 cargo update -p libgit2-sys --precise 0.14.2
crates.io libgit2-sys < 0.13.5 0.13.5 cargo update -p libgit2-sys --precise 0.13.5
crates.io libgit2-sys ≥ 0.0.0-0 < 0.13.5 0.13.5 cargo update -p libgit2-sys --precise 0.13.5
crates.io libgit2-sys ≥ 0.14.0 < 0.14.2 0.14.2 cargo update -p libgit2-sys --precise 0.14.2

Según OSV / GitHub Advisories (GHSA-m4ch-rfv5-x5g3, RUSTSEC-2023-0003). Verifica la versión en tu lockfile antes de actualizar.

Productos afectados (CPE)

FabricanteProductoVersiones
libgit2libgit2< 1.4.5
libgit2libgit21.5.0

Fuentes oficiales

Referencias

Enlaces publicados por las fuentes. Ábrelos con criterio.