Servers and applications
GHSA-hxxx-g3gp-2mmx
Repository URL check accepts relative paths: a project admin can run commands on the server through an attacker-written git directory
- Severity
- High 7.2
- Published
- 3 Dec 2026
- Last changed
- 3 Dec 2026
- Added to UpHeron
- 3 Dec 2026
- Attack
- Over the network · Needs an administrator account · No user action needed
- Attacker can
- Read data · Change data · Take it down
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H- Sources
- Project advisories (GitHub)
Description
A user with the project permission manage_repository (seeded role "Project admin", not an instance administrator) can make the server run git with --git-dir pointing at a directory whose content the user wrote. Git then reads that directory's config, and the diff.external setting in it is executed as the application user when a diff is requested in the repository browser.
The check that should prevent this, OpenProject::SCM::LocalPathValidator.points_to_openproject_directory?, only looks at values that start with / (or file: URLs). A relative path such as repositories// is treated as "not local" and accepted, while the Git adapter uses every value that is not file/http/https/git as a local git directory.
- lib/open_project/scm/local_path_validator.rb:66: return unless raw_path.start_with?("/"). Relative values return nil, so points_to_openproject_directory? is false.
Affected software
| Software | Affected versions |
|---|---|
OpenProjectServers and applications · github:opf/openproject |
|
About OpenProject
web-based project management system
- Total downloads
- 30M+OpenProject
- Docker Hub pulls
- 6,539,922Docker Hub, 29 Nov 2026
- GitHub stars
- 17,836GitHub, 29 Nov 2026
- Forks
- 3,855GitHub, 29 Nov 2026
- Latest release
- v17.8.3GitHub, 29 Nov 2026
- Released
- 19 Nov 2026GitHub
- License
- GNU General Public License, version 3.0Wikidata
- Written in
- RubyWikidata
- First published on GitHub
- 28 Nov 2012GitHub
Website Source code Docker image
Vulnerabilities in OpenProject
- In our list
- 144
- Published in the last 12 months
- 134
- Critical, last 12 months
- 13
- High, last 12 months
- 17
- Known exploited
- 0
- GHSA-xffq-c939-hm39Script URL schemes in allowed link protocols are kept in rendered linksMedium 4.0 3 Dec 2026
- GHSA-whr5-wq86-jc59Project phase definition link is shared between users through the representer cacheLow 3.1 3 Dec 2026
- GHSA-wc93-w836-rgxmProject copy duplicates public queries of other projects referenced by overview widgetsMedium 4.3 3 Dec 2026
- GHSA-vhcm-j4w9-7rr4Moving a recurring meeting to another project leaves its template and occurrences in the old projectMedium 5.5 3 Dec 2026
- GHSA-gmv8-48mh-c22wPublic cost reports of other projects can be opened by IDMedium 4.3 3 Dec 2026
- GHSA-8cmf-hvc8-pc75Auto-login tokens stay valid after an administrator password reset or an email changeMedium 4.8 3 Dec 2026
References
- GitHub Advisory Database https://github.com/advisories/GHSA-hxxx-g3gp-2mmx
- github.com https://github.com/opf/openproject/security/advisories/GHSA-hxxx-g3gp-2mmx