Skip to content
High 7.1

Gogsで読み取り専用の権限を越えてプッシュされる脆弱性

CVE-2026-123012 First seen on SecPulse

Summary

Gogs 0.14.3では、Git Smart HTTPの認可処理で、読み取りのみ許可されたユーザーがプッシュできてしまう脆弱性が見つかりました。HTTPメソッドの大文字と小文字を区別する判定に不整合があることが原因です。CVSS v4.0のスコアは7.1で、深刻度は高とされています。公表時点で修正版の情報は確認できていないため、最新の情報を確認してください。

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

Gogs 0.14.3では、Git Smart HTTPの認可処理で、読み取りのみ許可されたユーザーがプッシュできてしまう脆弱性が見つかりました。HTTPメソッドの大文字と小文字を区別する判定に不整合があることが原因です。CVSS v4.0のスコアは7.1で、深刻度は高とされています。公表時点で修正版の情報は確認できていないため、最新の情報を確認してください。

Affected packages

PackageAffected → Fixed
GogsGogs —
Gogogs.io/gogs
All versions→ Not listed

This record does not list fixed versions. Check the article or the vendor advisory in the references for whether and where it is fixed.

Original description The description as published by the source.

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.

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details