/Vulnerability Library

GitLab CE/EE <=19.1.7/19.2.5/19.3.1 - Arbitrary File Read

CVE-2026-85706
Verified

Description

GitLab CE/EE contains an unauthenticated arbitrary file read. Workhorse, the reverse proxy in front of Rails, matches upload routes using EscapedPath() and path.Clean without decoding percent sequences, while Puma decodes them before routing to Grape. Appending a trailing slash to commits or percent-encoding a static path segment as %63ommits therefore bypasses Workhorse upload route rewriting, and Rails reaches file_params_from_body_upload() which opens the path given in the file.path parameter before authenticate! is enforced. On the application/x-www-form-urlencoded branch the file bytes are handed to Rack::Utils.parse_nested_query, and any invalid percent sequence raises an ArgumentError whose message is interpolated into the HTTP 400 response body, disclosing file content to an unauthenticated caller.

Severity

Critical

CVSS Score

10

Exploit Probability

92%

Affected Product

gitlab

Published Date

September 13, 2026

Template Author

flx

CVE-2026-85706.yaml
10.0Score

CVSS Metrics

CVSS Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N
CVE ID:
cve-2026-85706
CWE ID:
cwe-22

References

https://about.gitlab.com/releases/2026/09/10/patch-release-gitlab-19-3-2-released/https://gitlab.com/gitlab-org/gitlab/-/commit/0ff7b6b2911723389f2271b10362591b0a69a166https://github.com/ynsmroztas/GitLabSniperhttps://github.com/mhtsec/CVE-2026-85706https://nvd.nist.gov/vuln/detail/CVE-2026-85706

Remediation Steps

Upgrade GitLab CE/EE to 19.1.8, 19.2.6, or 19.3.2 or later. The fix moves authenticate! ahead of file processing and stops accepting raw file.path and file.size parameters from untrusted clients.