Gogs
Gogs through 0.14.4 Protected Branch Allowlist Bypass via Pull Request Merge
Gogs through 0.14.4 contains an authorization bypass vulnerability that allows collaborators with write access to push to protected branches by merging pull requests. Because MergePullRequest skips branch protection checks and PullRequest.Merge omits hook environment variables, attackers can merge commits into branches restricted to allowlisted users.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- <= 0.14.4
Mitigation
The record names no fix. Check the vendor advisory below.
References
Timeline
Days relative to CVE publicationFirst public PoC 3 h after publication; not in CISA KEV. First PoC: LLCForge/CVE-2026-133113 (created 19 Nov 2026, found by us: 19 Nov 2026).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Found by us | Stars | Assessment |
|---|---|---|---|---|
| LLCForge/CVE-2026-133113 | 19 Nov 2026 +3 h | 19 Nov 2026 | 0 | PoC
Flags · score 15
Below the suspicion threshold (50); does not change the assessment. |
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 repoGET /api/v1/user
- Seen in
- 1 repo: LLCForge/CVE-2026-133113
- Evidence
- LLCForge/CVE-2026-133113/poc.py:94
POST /api/v1/repos/{var}/{var}/branches
- Body markers
"new_branch_name""old_branch_name"inapplication/json- Seen in
- 1 repo: LLCForge/CVE-2026-133113
- Evidence
- LLCForge/CVE-2026-133113/poc.py:47
POST /api/v1/repos/{var}/{var}/contents/llcforge_test.txt
- Body markers
"message":"CVE-2026-133113 PoC""content":"dGVzdA==""branch"inapplication/json- Seen in
- 1 repo: LLCForge/CVE-2026-133113
- Evidence
- LLCForge/CVE-2026-133113/poc.py:57
POST /api/v1/repos/{var}/{var}/pulls
- Body markers
"title":"CVE-2026-133113 PoC""head""base"inapplication/json- Seen in
- 1 repo: LLCForge/CVE-2026-133113
- Evidence
- LLCForge/CVE-2026-133113/poc.py:67
POST /api/v1/repos/{var}/{var}/pulls/{var}/merge
- Body markers
"Do":"merge""MergeMessageField":"CVE-2026-133113 PoC"inapplication/json- Seen in
- 1 repo: LLCForge/CVE-2026-133113
- Evidence
- LLCForge/CVE-2026-133113/poc.py:78
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/api/v1/user(?:[?#].*)?$
(?i)^/api/v1/repos/[^/?#]*/[^/?#]*/branches(?:[?#].*)?$
(?i)^/api/v1/repos/[^/?#]*/[^/?#]*/contents/llcforge_test\.txt(?:[?#].*)?$
(?i)^/api/v1/repos/[^/?#]*/[^/?#]*/pulls(?:[?#].*)?$
(?i)^/api/v1/repos/[^/?#]*/[^/?#]*/pulls/[^/?#]*/merge(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2026-133113 gogs gogs exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/api/v1/user"; reference:url,poc.griffinguard.io/cve/CVE-2026-133113; classtype:web-application-attack; sid:9168056; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2026-133113 gogs gogs exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/v1/repos/"; http.uri; content:"/branches"; http.request_body; content:"|22|new_branch_name|22|"; http.request_body; content:"|22|old_branch_name|22|"; reference:url,poc.griffinguard.io/cve/CVE-2026-133113; classtype:web-application-attack; sid:9638821; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2026-133113 gogs gogs exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/contents/llcforge_test.txt"; http.uri; content:"/api/v1/repos/"; http.request_body; content:"|22|message|22|:|22|CVE-2026-133113 PoC|22|"; http.request_body; content:"|22|content|22|:|22|dGVzdA==|22|"; http.request_body; content:"|22|branch|22|"; reference:url,poc.griffinguard.io/cve/CVE-2026-133113; classtype:web-application-attack; sid:9104767; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2026-133113 gogs gogs exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/v1/repos/"; http.uri; content:"/pulls"; http.request_body; content:"|22|title|22|:|22|CVE-2026-133113 PoC|22|"; http.request_body; content:"|22|head|22|"; http.request_body; content:"|22|base|22|"; reference:url,poc.griffinguard.io/cve/CVE-2026-133113; classtype:web-application-attack; sid:9824579; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2026-133113 gogs gogs exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/v1/repos/"; http.uri; content:"/pulls/"; http.uri; content:"/merge"; http.request_body; content:"|22|Do|22|:|22|merge|22|"; http.request_body; content:"|22|MergeMessageField|22|:|22|CVE-2026-133113 PoC|22|"; reference:url,poc.griffinguard.io/cve/CVE-2026-133113; classtype:web-application-attack; sid:9303394; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: gogs gogs exploit attempt (CVE-2026-133113)
id: gg-pocmon-cve-2026-133113-9168056
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-133113. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-133113
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/api/v1/user'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.133113
title: gogs gogs exploit attempt (CVE-2026-133113)
id: gg-pocmon-cve-2026-133113-9638821
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-133113. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-133113
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/api/v1/repos/'
- '/branches'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.133113
title: gogs gogs exploit attempt (CVE-2026-133113)
id: gg-pocmon-cve-2026-133113-9104767
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-133113. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-133113
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/contents/llcforge_test.txt'
- '/api/v1/repos/'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.133113
title: gogs gogs exploit attempt (CVE-2026-133113)
id: gg-pocmon-cve-2026-133113-9824579
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-133113. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-133113
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/api/v1/repos/'
- '/pulls'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.133113
title: gogs gogs exploit attempt (CVE-2026-133113)
id: gg-pocmon-cve-2026-133113-9303394
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-133113. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-133113
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/api/v1/repos/'
- '/pulls/'
- '/merge'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.133113