- Accueil
- Vulnérabilités
- CVE-2026-123012
CVE-2026-123012
In Gogs 0.14.3, the Git Smart HTTP authorization layer in internal/route/repo/http.go allows a push when only…
Résumé
In Gogs 0.14.3, the Git Smart HTTP authorization layer in internal/route/repo/http.go allows a push when only read access was intended, a different vulnerability than CVE-2026-52810. This occurs because of a case-sensitivity desync between the authorization classifier and the request dispatcher: the gitHTTPIsPull function compares the Git action verb case-sensitively and defaults to pull (read access) for any unrecognized string, whereas the request dispatcher lowercases the same verb before routing it to the receive-pack handler. Capitalizing a single letter in the URL (e.g. info/Refs instead of info/refs, or git-receive-Pack instead of git-receive-pack) causes the classifier to misidentify a push as a pull, granting only read-level authorization, whereas the dispatcher routes it to the write handler. An authenticated read-only collaborator can exploit this to push to a private repository, creating, updating, or deleting refs.
Aucune traduction française : description d’origine affichée.
Produits et versions affectés
Gogs (1 ligne(s))
| Produit | Versions | Corrigé dans | Source |
|---|---|---|---|
| Gogs | 0.14.3 |
— | CNA (éditeur ou attributeur) |
Go (2 ligne(s))
| Produit | Versions | Corrigé dans | Source |
|---|---|---|---|
| gogs.io/gogs | avant 0.14.3 (exclu) |
0.14.3 |
GitHub Advisory |
| gogs.io/gogs | Versions non précisées | — | OSV |
Correctif
Correctifsource officielle
No patch available. Use case-insensitive comparison (strings.EqualFold) in gitHTTPIsPull in internal/route/repo/http.go
Source : CNA (éditeur ou attributeur)
Mise à jour — Go/gogs.io/gogs 0.14.3source officielle
Source : GitHub Advisory
Contournement
Contournementsource officielle
Disable Git Smart HTTP access (set DISABLE_HTTP_GIT = true in app.ini) and use SSH-only for Git operations
Source : CNA (éditeur ou attributeur)
Savoir si vous êtes touché
Exploit signalé par les sources
Ces liens sont étiquetés « exploit » par le NVD ou par CVE.org. Nous ne les avons pas vérifiés ni copiés ; ouvrez-les avec prudence.
Chronologie
- — Publication de la CVE (cve)
Avis CERT-FR
- GO-2026-5712 — Gogs allows users to write to readonly repositories using receive-pack + service=git-upload-pack confusion in gogs.io/gogs 25 juin 2026
- GHSA-wmfg-5p4h-5fw3 — Gogs allows users to write to readonly repositories using receive-pack + service=git-upload-pack confusion 23 juin 2026
Références
- https://github.com/gogs/gogs/security/advisories/GHSA-wmfg-5p4h-5fw3exploit
- https://github.com/gogs/gogs/blob/3ba8aca90e17e5410b7e8b227c9f29256ac3e875/internal/route/repo/http.go#L415-L418product
- https://github.com/gogs/gogs/blob/3ba8aca90e17e5410b7e8b227c9f29256ac3e875/internal/route/repo/http.go#L64-:68product
- https://github.com/gogs/gogs/blob/3ba8aca90e17e5410b7e8b227c9f29256ac3e875/internal/route/repo/http.go#L64-L68product
- https://nvd.nist.gov/vuln/detail/CVE-2026-52810ADVISORY
- https://github.com/gogs/gogs/pull/8331WEB
- https://github.com/gogs/gogs/commit/7c9cf53aca957959bcd98b0cc987d9901b7cb184WEB
- https://github.com/gogs/gogsPACKAGE
- https://github.com/gogs/gogs/releases/tag/v0.14.3WEB
- https://humanoid.sh/blog/gogs-cve-2026-123012/third-party-advisory
Provenance des données
- Statut
- NVD
- Date de publication
- NVD
- Description
- CNA (éditeur ou attributeur)
- Score CVSS
- CNA (éditeur ou attributeur)
- Faiblesse (CWE)
- NVD
- Vecteur CVSS
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:L/SC:N/SI:L/SA:N(CVSS 4.0, CNA:mitre)- Faiblesse
- CWE-178 · Autre (CWE-178)