PoC Monitor
← All CVEs
CVE-2026-25232published 19 Feb 2026 02:25 UTCData: JSON · API

Gogs

Gogs has a Protected Branch Deletion Bypass in Web Interface

Gogs is an open source self-hosted Git service. Versions 0.13.4 and below have an access control bypass vulnerability which allows any repository collaborator with Write permissions to delete protected branches (including the default branch) by sending a direct POST request, completely bypassing the branch protection mechanism. This vulnerability in the DeleteBranchPost function eenables privilege escalation from Write to Admin level, allowing low-privilege users to perform dangerous operations that should be restricted to administrators only. Although Git Hook layer correctly prevents protected branch deletion via SSH push, the web interface deletion operation does not trigger Git Hooks, resulting in complete bypass of protection mechanisms. In oder to exploit this vulnerability, attackers must have write permissions to the target repository, protected branches configured to the target repository and access to the Gogs web interface. This issue has been fixed in version 0.14.1.

First public PoC 59 daysafter publication · 18 Apr 2026
Public PoCs11 on GitHub
CVSS8.8high · scored by NVD · CWE-863
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

gogs gogs
  • < 0.14.1

Fixed in 0.14.1

Timeline

Days relative to CVE publication
t=0+7+14+21+28+35+42+49+56CVE published19 Feb 2026 · t = 0First public PoC18 Apr 2026 · t+59d

First public PoC 59 days after publication; not in CISA KEV. First PoC: H1sok444/CVE-2026-25232-PoC (created 18 Apr 2026, found by us: backfilled).

PoC repositories

Found on GitHub.

1 PoCs

PoCs 1
RepositoryCreatedStarsAssessment
H1sok444/CVE-2026-25232-PoC 18 Apr 2026 +59 d 1 PoC via PoC Index

Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.

PoC characteristics

What to hunt for in your logs · from 1 PoC repo

DELETE /api/v1/repos/admin/important-repo/branches/main

Ports
3001
Seen in
1 repo: H1sok444/CVE-2026-25232-PoC
Evidence
H1sok444/CVE-2026-25232-PoC/README.md:57

GET /admin/important-repo

Key headers
Cookie: cookies.txt
Ports
3001
Seen in
1 repo: H1sok444/CVE-2026-25232-PoC
Evidence
H1sok444/CVE-2026-25232-PoC/README.md:76

GET /api/v1/repos/admin/important-repo/branches

Ports
3001
Seen in
1 repo: H1sok444/CVE-2026-25232-PoC
Evidence
H1sok444/CVE-2026-25232-PoC/README.md:101

POST /admin/important-repo/branches/delete

Key headers
Cookie: cookies.txt
Body markers
_csrf= name=main in application/x-www-form-urlencoded
Ports
3001
Seen in
1 repo: H1sok444/CVE-2026-25232-PoC
Evidence
H1sok444/CVE-2026-25232-PoC/README.md:88

POST /user/login

Key headers
Cookie: cookies.txt
Body markers
user_name=attacker password=Password123! in application/x-www-form-urlencoded
Ports
3001
Seen in
1 repo: H1sok444/CVE-2026-25232-PoC
Evidence
H1sok444/CVE-2026-25232-PoC/README.md:70

Regex

Generated from PoC characteristics; not yet reviewed. Matches the request path and query.

DELETE /api/v1/repos/admin/important-repo/branches/main
(?i)^/api/v1/repos/admin/important-repo/branches/main(?:[?#].*)?$
GET /admin/important-repo
(?i)^/admin/important-repo(?:[?#].*)?$
GET /api/v1/repos/admin/important-repo/branches
(?i)^/api/v1/repos/admin/important-repo/branches(?:[?#].*)?$
POST /admin/important-repo/branches/delete
(?i)^/admin/important-repo/branches/delete(?:[?#].*)?$
POST /user/login
(?i)^/user/login(?:[?#].*)?$

Suricata

Template generated from PoC characteristics. Review before deploying.

DELETE /api/v1/repos/admin/important-repo/branches/main
alert http any any -> $HOME_NET [3001] (msg:"GG PoC-Monitor CVE-2026-25232 gogs gogs exploit attempt"; flow:established,to_server; http.method; content:"DELETE"; http.uri; content:"/api/v1/repos/admin/important-repo/branches/main"; reference:url,poc.griffinguard.io/cve/CVE-2026-25232; classtype:web-application-attack; sid:9040490; rev:1;)
GET /admin/important-repo
alert http any any -> $HOME_NET [3001] (msg:"GG PoC-Monitor CVE-2026-25232 gogs gogs exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/admin/important-repo"; http.header; content:"Cookie: cookies.txt"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2026-25232; classtype:web-application-attack; sid:9370277; rev:1;)
GET /api/v1/repos/admin/important-repo/branches
alert http any any -> $HOME_NET [3001] (msg:"GG PoC-Monitor CVE-2026-25232 gogs gogs exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/api/v1/repos/admin/important-repo/branches"; reference:url,poc.griffinguard.io/cve/CVE-2026-25232; classtype:web-application-attack; sid:9644751; rev:1;)
POST /admin/important-repo/branches/delete
alert http any any -> $HOME_NET [3001] (msg:"GG PoC-Monitor CVE-2026-25232 gogs gogs exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/admin/important-repo/branches/delete"; http.header; content:"Cookie: cookies.txt"; nocase; http.request_body; content:"_csrf="; http.request_body; content:"name=main"; reference:url,poc.griffinguard.io/cve/CVE-2026-25232; classtype:web-application-attack; sid:9858352; rev:1;)
POST /user/login
alert http any any -> $HOME_NET [3001] (msg:"GG PoC-Monitor CVE-2026-25232 gogs gogs exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/user/login"; http.header; content:"Cookie: cookies.txt"; nocase; http.request_body; content:"user_name=attacker"; http.request_body; content:"password=Password123!"; reference:url,poc.griffinguard.io/cve/CVE-2026-25232; classtype:web-application-attack; sid:9721253; rev:1;)

Sigma

Template generated from PoC characteristics. Review before deploying.

DELETE /api/v1/repos/admin/important-repo/branches/main
title: gogs gogs exploit attempt (CVE-2026-25232)
id: gg-pocmon-cve-2026-25232-9040490
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-25232. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2026-25232
logsource:
  category: webserver
detection:
  selection:
    cs-method: DELETE
    cs-uri-stem|contains|all:
      - '/api/v1/repos/admin/important-repo/branches/main'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: high
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2026.25232
GET /admin/important-repo
title: gogs gogs exploit attempt (CVE-2026-25232)
id: gg-pocmon-cve-2026-25232-9370277
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-25232. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2026-25232
logsource:
  category: webserver
detection:
  selection:
    cs-method: GET
    cs-uri-stem|contains|all:
      - '/admin/important-repo'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: high
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2026.25232
GET /api/v1/repos/admin/important-repo/branches
title: gogs gogs exploit attempt (CVE-2026-25232)
id: gg-pocmon-cve-2026-25232-9644751
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-25232. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2026-25232
logsource:
  category: webserver
detection:
  selection:
    cs-method: GET
    cs-uri-stem|contains|all:
      - '/api/v1/repos/admin/important-repo/branches'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: high
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2026.25232
POST /admin/important-repo/branches/delete
title: gogs gogs exploit attempt (CVE-2026-25232)
id: gg-pocmon-cve-2026-25232-9858352
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-25232. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2026-25232
logsource:
  category: webserver
detection:
  selection:
    cs-method: POST
    cs-uri-stem|contains|all:
      - '/admin/important-repo/branches/delete'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: high
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2026.25232
POST /user/login
title: gogs gogs exploit attempt (CVE-2026-25232)
id: gg-pocmon-cve-2026-25232-9721253
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-25232. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2026-25232
logsource:
  category: webserver
detection:
  selection:
    cs-method: POST
    cs-uri-stem|contains|all:
      - '/user/login'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: high
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2026.25232