GitLab
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in GitLab
GitLab has remediated an issue in GitLab CE/EE affecting all versions from 18.7 before 18.11.12, 19.0 before 19.0.9, 19.1 before 19.1.8, 19.2 before 19.2.6, and 19.3 before 19.3.2 that, under certain conditions, an unauthenticated user could have read arbitrary files from the GitLab server due to improper path confinement and missing authentication enforcement in the repository commits API.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 18.7, < 18.11.12
- >= 19.0, < 19.0.9
- >= 19.1, < 19.1.8
- >= 19.2, < 19.2.6
- >= 19.3, < 19.3.2
Fixed in 18.11.12, 19.0.9, 19.1.8, 19.2.6, 19.3.2
Mitigation
Upgrade to versions 18.11.12, 19.0.9, 19.1.8, 19.2.6, 19.3.2 or above.
Timeline
Days relative to CVE publicationFirst public PoC 15 h before publication; added to CISA KEV 1 day before publication. First PoC: FlowerWitch/CVE-2026-85706_docker_exp (created 11 Sep 2026, found by us: backfilled).
PoC repositories
Found on GitHub.14 PoCs · 1 suspicious or fake
PoCs 14
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| FlowerWitch/CVE-2026-85706_docker_exp | 11 Sep 2026 −15 h | 2 | PoC |
| guneykabel/cve-2026-85706 | 11 Sep 2026 −11 h | 45 | PoC |
| solivaquaant/CVE-2026-85706 | 11 Sep 2026 −11 h | 0 | PoC |
| solivaquaant/CVE-2026-85706-PoC | 11 Sep 2026 −11 h | 0 | PoC |
| ynsmroztas/GitLabSniper | 11 Sep 2026 −5 h | 9 | PoC older repo: PoC date unknown, not used for the first PoC |
| jithinkrishnanrs/gitlab-cve-2026-85706-ioc | 12 Sep 2026 +8 h | 2 | Scanner |
| 0xlyvio/cve-2026-85706-poc-exploit-gitlab | 12 Sep 2026 +18 h | 4 | PoC |
| gagaltotal/CVE-2026-85706-gitlab-poc | 13 Sep 2026 +1.5 d | 1 | PoC |
| plur1bu5/gitread | 13 Sep 2026 +1.7 d | 1 | PoC |
| gabrielunknown/CVE-2026-85706 | 14 Sep 2026 +2.1 d | 0 | PoC |
| unh00k3d/cve-2026-85706 | 14 Sep 2026 +2.3 d | 1 | PoC |
| jweny/vuln-screenshot | 17 Sep 2026 +5.2 d | 7 | PoC |
| EQSTLab/CVE-2026-85706 | 28 Sep 2026 +16 d | 29 | PoC |
| wuyou6956-glitch/cve-2026-85706 | 30 Sep 2026 +18 d | 0 | PoC |
Suspicious or fake 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| tc4dy/CVE-2026-85706-PoC-Toolkit | 17 Sep 2026 +5.6 d | 2 | Fake |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| CVE record (tagged exploit) | HackerOne Bug Bounty Report #3909881 | unknown | 14 Nov 2026 |
| Metasploit | Metasploit auxiliary: GitLab Unauthenticated Arbitrary File Read (auxiliary/gather/gitlab_file_read_cve_2026_85706) | 16 Sep 2026 | 14 Nov 2026 |
| nuclei template | nuclei template: GitLab CE/EE <=19.1.7/19.2.5/19.3.1 - Arbitrary File Read | 13 Sep 2026 | 14 Nov 2026 |
| PoC Index | https://github.com/unh00k3d/cve-2026-85706/blob/f64c9eaec4e5c2d9dc7bd6edc87f5d882a36617e/poc/exploit.sh | unknown | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 14 PoC reposPOST /api/v4/projects/1/repository/%63ommits
- Query
file=file.path=/flag.txtfile.size=1Content-Type=application/x-www-form-urlencodedfile.path=/etc/passwd- Content-Type
application/x-www-form-urlencoded- Ports
- 8080
- PoC User-Agent
cve-2026-85706-perl-poc/1.0.0- Seen in
- 2 repos: EQSTLab/CVE-2026-85706, gabrielunknown/CVE-2026-85706
- Evidence
- EQSTLab/CVE-2026-85706/README.md:89 gabrielunknown/CVE-2026-85706/README.md:95 gabrielunknown/CVE-2026-85706/README_pt-BR.md:95
POST /api/v4/projects/1/repository/commits/
- Body markers
file=file.path=/tmp/canary.txtfile.size=1Content-Type=application/x-www-form-urlencodedfile.path=/etc/gitlab/gitlab.rbinapplication/x-www-form-urlencoded- Ports
- 8080, 8085
- Seen in
- 2 repos: FlowerWitch/CVE-2026-85706_docker_exp, plur1bu5/gitread
- Evidence
- FlowerWitch/CVE-2026-85706_docker_exp/README.md:23 plur1bu5/gitread/README.md:50
POST /api/v4/projects/{var}/repository/commits/
- Body markers
file=file.path=/etc/gitlab/gitlab-secrets.jsonfile.size=1Content-Type=application/x-www-form-urlencodedinapplication/x-www-form-urlencoded- Ports
- 8080, 8929
- Seen in
- 2 repos: solivaquaant/CVE-2026-85706, solivaquaant/CVE-2026-85706-PoC
- Evidence
- solivaquaant/CVE-2026-85706/ANALYSIS.md:114 solivaquaant/CVE-2026-85706-PoC/ANALYSIS.md:114
POST /api/v4/projects/1/repository/%66iles/probe
- Query
file=file.path=/cve-2026-85706-nuclei-probefile.size=1- Ports
- 8929
- Seen in
- 1 repo: unh00k3d/cve-2026-85706
- Evidence
- unh00k3d/cve-2026-85706/docs/ANALYSIS.md:289
GET /api/v4/version
- Seen in
- 1 repo: EQSTLab/CVE-2026-85706
- Evidence
- EQSTLab/CVE-2026-85706/seed.sh:27
GET /etc/gitlab/gitlab.rb
- Seen in
- 1 repo: ynsmroztas/GitLabSniper
- Evidence
- ynsmroztas/GitLabSniper/README.md:158
GET /etc/hostname
- Seen in
- 1 repo: ynsmroztas/GitLabSniper
- Evidence
- ynsmroztas/GitLabSniper/GitLabSniper.py:542
GET /etc/passwd
- Ports
- 8080
- Seen in
- 1 repo: plur1bu5/gitread
- Evidence
- plur1bu5/gitread/README.md:121
GET /path
- Ports
- 8080
- Seen in
- 1 repo: plur1bu5/gitread
- Evidence
- plur1bu5/gitread/gitread.py:655
POST /api/v4/projects/1/repository/%66iles/test
- Query
file=file.path=/nonexistentfile.size=1file.path=/etc/passwd- Ports
- 8929
- Seen in
- 1 repo: unh00k3d/cve-2026-85706
- Evidence
- unh00k3d/cve-2026-85706/docs/ANALYSIS.md:448 unh00k3d/cve-2026-85706/docs/ANALYSIS.md:460
POST /api/v4/projects/1/repository/commits.json
- Body markers
"file""file.path":"/tmp/canary.txt""file.size""Content-Type":"application/x-www-form-urlencoded"inapplication/json- Ports
- 8085
- Seen in
- 1 repo: FlowerWitch/CVE-2026-85706_docker_exp
- Evidence
- FlowerWitch/CVE-2026-85706_docker_exp/README.md:18
POST /api/v4/projects/1/repository/files/test
- Ports
- 8929
- Seen in
- 1 repo: unh00k3d/cve-2026-85706
- Evidence
- unh00k3d/cve-2026-85706/docs/ANALYSIS.md:436
POST /api/v4/projects/{var}/repository/%%63ommits
- Query
{var}=- Seen in
- 1 repo: EQSTLab/CVE-2026-85706
- Evidence
- EQSTLab/CVE-2026-85706/exploit.py:60
POST /dev/null
- Content-Type
application/x-www-form-urlencoded- Ports
- 8929
- Seen in
- 1 repo: unh00k3d/cve-2026-85706
- Evidence
- unh00k3d/cve-2026-85706/poc/exploit.sh:37
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/api/v4/projects/1/repository/%63ommits\?(?:.*&)?file=.*file\.path=/flag\.txt.*file\.size=1.*Content-Type=application/x-www-form-urlencoded.*file\.path=/etc/passwd
(?i)^/api/v4/projects/1/repository/commits/(?:[?#].*)?$
(?i)^/api/v4/projects/[^/?#]*/repository/commits/(?:[?#].*)?$
(?i)^/api/v4/projects/1/repository/%66iles/probe\?(?:.*&)?file=.*file\.path=/cve-2026-85706-nuclei-probe.*file\.size=1
(?i)^/api/v4/version(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2026-85706 GitLab GitLab exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/v4/projects/1/repository/%63ommits"; http.uri; content:"file="; http.uri; content:"file.path=/flag.txt"; http.uri; content:"file.size=1"; http.uri; content:"Content-Type=application/x-www-form-urlencoded"; http.uri; content:"file.path=/etc/passwd"; reference:url,poc.griffinguard.io/cve/CVE-2026-85706; classtype:web-application-attack; sid:9454937; rev:1;)
alert http any any -> $HOME_NET [8080,8085] (msg:"GG PoC-Monitor CVE-2026-85706 GitLab GitLab exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/v4/projects/1/repository/commits/"; http.request_body; content:"file="; http.request_body; content:"file.path=/tmp/canary.txt"; http.request_body; content:"file.size=1"; http.request_body; content:"Content-Type=application/x-www-form-urlencoded"; http.request_body; content:"file.path=/etc/gitlab/gitlab.rb"; reference:url,poc.griffinguard.io/cve/CVE-2026-85706; classtype:web-application-attack; sid:9852801; rev:1;)
alert http any any -> $HOME_NET [8080,8929] (msg:"GG PoC-Monitor CVE-2026-85706 GitLab GitLab exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/repository/commits/"; http.uri; content:"/api/v4/projects/"; http.request_body; content:"file="; http.request_body; content:"file.path=/etc/gitlab/gitlab-secrets.json"; http.request_body; content:"file.size=1"; http.request_body; content:"Content-Type=application/x-www-form-urlencoded"; reference:url,poc.griffinguard.io/cve/CVE-2026-85706; classtype:web-application-attack; sid:9695015; rev:1;)
alert http any any -> $HOME_NET [8929] (msg:"GG PoC-Monitor CVE-2026-85706 GitLab GitLab exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/v4/projects/1/repository/%66iles/probe"; http.uri; content:"file="; http.uri; content:"file.path=/cve-2026-85706-nuclei-probe"; http.uri; content:"file.size=1"; reference:url,poc.griffinguard.io/cve/CVE-2026-85706; classtype:web-application-attack; sid:9374005; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2026-85706 GitLab GitLab exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/api/v4/version"; reference:url,poc.griffinguard.io/cve/CVE-2026-85706; classtype:web-application-attack; sid:9694822; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: GitLab GitLab exploit attempt (CVE-2026-85706)
id: gg-pocmon-cve-2026-85706-9454937
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-85706. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-85706
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/api/v4/projects/1/repository/%63ommits'
cs-uri-query|contains|all:
- 'file='
- 'file.path=/flag.txt'
- 'file.size=1'
- 'Content-Type=application/x-www-form-urlencoded'
- 'file.path=/etc/passwd'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.85706
title: GitLab GitLab exploit attempt (CVE-2026-85706)
id: gg-pocmon-cve-2026-85706-9852801
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-85706. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-85706
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/api/v4/projects/1/repository/commits/'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.85706
title: GitLab GitLab exploit attempt (CVE-2026-85706)
id: gg-pocmon-cve-2026-85706-9695015
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-85706. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-85706
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/repository/commits/'
- '/api/v4/projects/'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.85706
title: GitLab GitLab exploit attempt (CVE-2026-85706)
id: gg-pocmon-cve-2026-85706-9374005
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-85706. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-85706
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/api/v4/projects/1/repository/%66iles/probe'
cs-uri-query|contains|all:
- 'file='
- 'file.path=/cve-2026-85706-nuclei-probe'
- 'file.size=1'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.85706
title: GitLab GitLab exploit attempt (CVE-2026-85706)
id: gg-pocmon-cve-2026-85706-9694822
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-85706. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-85706
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/api/v4/version'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.85706