CVE-2024-55947
Gogs Análise e mitigação de vulnerabilidades

Visão geral

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).

Detalhes técnicos

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).

Impacto

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).

Mitigação e soluções alternativas

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).

Recursos adicionais


OrigemEste relatório foi gerado usando IA

Relacionado Gogs Vulnerabilidades:

CVE ID

Gravidade

Pontuação

Tecnologias

Nome do componente

Exploração do CISA KEV

Tem correção

Data de publicação

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

Avaliação de vulnerabilidade gratuita

Compare sua postura de segurança na nuvem

Avalie suas práticas de segurança na nuvem em 9 domínios de segurança para comparar seu nível de risco e identificar lacunas em suas defesas.

Solicitar avaliação

Marque uma demonstração personalizada

Pronto para ver a Wiz em ação?

"A melhor experiência do usuário que eu já vi, fornece visibilidade total para cargas de trabalho na nuvem."
David EstlickCISO
"A Wiz fornece um único painel de vidro para ver o que está acontecendo em nossos ambientes de nuvem."
Adam FletcherDiretor de Segurança
"Sabemos que se a Wiz identifica algo como crítico, na verdade é."
Greg PoniatowskiChefe de Gerenciamento de Ameaças e Vulnerabilidades