CVE-2024-55947
Gogs Analyse et atténuation des vulnérabilités

Aperçu

Gogs, an open source self-hosted Git service, was found to contain a critical path traversal vulnerability (CVE-2024-55947) that allows malicious users to write files to arbitrary paths on the server, potentially gaining SSH access. The vulnerability was discovered in versions prior to 0.13.1 and was fixed in version 0.13.1. The issue received a CVSS score of 8.7 (HIGH) with vector string CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N (NVD, Security Online).

Détails techniques

The vulnerability stems from improper path validation in the repository file update API. An authenticated attacker could exploit this by using the API to write files outside the repository Git directory. The issue was classified as CWE-22 (Improper Limitation of a Pathname to a Restricted Directory). The vulnerability could be exploited through a specially crafted PUT request to the API endpoint, allowing writes to arbitrary paths on the server filesystem (GitHub Advisory).

Impact

The vulnerability allows authenticated users to write files to arbitrary locations on the server filesystem, including the ability to modify SSH configuration files. This could lead to unauthorized SSH access to the server, potentially resulting in complete system compromise (GitHub Advisory, Security Online).

Exploitabilité

The vulnerability requires authentication to exploit, as the attacker needs a valid Personal Access Token to make API calls. A proof of concept exists demonstrating how an attacker can modify the SSH authorized_keys file using a crafted API request to gain SSH access to the server (GitHub Advisory).

Atténuation et solutions de contournement

The vulnerability has been patched in Gogs version 0.13.1 by implementing proper path validation and prohibiting file writes outside the repository Git directory. For affected versions, there is no viable workaround other than limiting access to the Gogs instance to trusted users only (GitHub Advisory).

Ressources additionnelles


SourceCe rapport a été généré à l’aide de l’IA

Apparenté Gogs Vulnérabilités:

Identifiant CVE

Sévérité

Score

Technologies

Nom du composant

Exploit CISA KEV

A corrigé

Date de publication

CVE-2026-26194HIGH8.8
  • Gogs logoGogs
  • gogs.io/gogs
NonOuiMar 05, 2026
CVE-2026-26196MEDIUM6.9
  • Gogs logoGogs
  • gogs
NonOuiMar 05, 2026
CVE-2026-26195MEDIUM6.9
  • Gogs logoGogs
  • gogs
NonOuiMar 05, 2026
CVE-2026-26276MEDIUM5.4
  • Gogs logoGogs
  • gogs
NonOuiMar 05, 2026
CVE-2026-26022MEDIUM5.4
  • Gogs logoGogs
  • gogs
NonOuiMar 05, 2026

Évaluation gratuite des vulnérabilités

Évaluez votre posture de sécurité dans le cloud

Évaluez vos pratiques de sécurité cloud dans 9 domaines de sécurité pour évaluer votre niveau de risque et identifier les failles dans vos défenses.

Demander une évaluation

Obtenez une démo personnalisée

Prêt(e) à voir Wiz en action ?

"La meilleure expérience utilisateur que j’ai jamais vue, offre une visibilité totale sur les workloads cloud."
David EstlickRSSI
"Wiz fournit une interface unique pour voir ce qui se passe dans nos environnements cloud."
Adam FletcherChef du service de sécurité
"Nous savons que si Wiz identifie quelque chose comme critique, c’est qu’il l’est réellement."
Greg PoniatowskiResponsable de la gestion des menaces et des vulnérabilités