PT-2026-51459 · Go · Gogs.Io/Gogs

Publicado

2026-06-23

·

Atualizado

2026-06-23

·

CVE-2026-52801

CVSS v3.1

8.1

Alta

VetorAV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H

Summary

The Gogs Mirror Settings functionality provide an alternative way from the well protected New Migration functionality for any authenticated users to import local repositories. This issue stems from a lack of validation of SaveAddress function.

Details

Here is the function implementation of the secure New Migration functionality. image
Here is the function implementation of the Mirror Settings without any validation. image

PoC

The New Migration feature correctly blocked my attempt to import a local repository. image
But if I create a normal migration with a valid repository. image
Then, I could use the Mirror Settings feature under the Repository Settings sync a local repository. image
Here is the result after the sync. image

Impact

Users can import local repositories from the server's filesystem, which allows accessing any repository the git user has access to. There is also a potential issue of blind SSRF.

Correção

RCE

Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾

Enumeração de Fraquezas

Identificadores relacionados

CVE-2026-52801
GHSA-WV27-2VQP-J7G5

Produtos afetados

Gogs.Io/Gogs