CVE-2022-31268: Path Traversal in Gitblit

com.gitblit:gitblit Updated 02 Oct 2025

Summary

22/05/2022
No i
High
7.5

CVE-2022-31268: Path traversal in Gitblit. Affects com.gitblit:gitblit versions < 1.9.3. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Gitblit is a Maven package that provides a web-based interface for managing Git repositories. It allows users to browse, clone, and manage Git repositories through a web browser. Gitblit is widely used by developers and organizations to facilitate collaboration and version control. However, version 1.9.3 of Gitblit is vulnerable to a Path Traversal attack.

Vulnerability Detail

The Path Traversal vulnerability in Gitblit 1.9.3 allows an attacker to read website files by exploiting a path traversal flaw. By appending '/resources//../' to a URL, an attacker can navigate to sensitive files such as 'WEB-INF' or 'META-INF'. This can lead to unauthorized access to confidential information, potential data breaches, and compromise of the Gitblit application.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, users can implement access controls and restrictions on the affected directories and files. By properly configuring file permissions and access rules, the impact of the Path Traversal vulnerability can be minimized. However, this is not a permanent solution and should be followed by upgrading to a secure version of Gitblit.

Conclusion

The Path Traversal vulnerability in Gitblit 1.9.3 can lead to unauthorized access to sensitive files. It is crucial to upgrade to a secure version of Gitblit and regularly update software to mitigate this vulnerability. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for com.gitblit:gitblit →

Share this vulnerability

FAQ

Gitblit is a web-based interface for managing Git repositories. It provides a convenient way for developers to collaborate and manage version control.

A Path Traversal vulnerability allows an attacker to access files and directories outside of the intended scope. In the case of Gitblit, it can lead to unauthorized access to sensitive files.

The Path Traversal vulnerability in Gitblit can result in unauthorized access to confidential information, potential data breaches, and compromise of the Gitblit application.

To fix this vulnerability, it is recommended to upgrade Gitblit to a version that is not affected by this issue. Regularly updating software is crucial for maintaining security.

Yes, users can implement access controls and restrictions on the affected directories and files as a temporary workaround. However, upgrading to a secure version is essential.

Related vulnerabilities

Recent vulnerabilities recorded for com.gitblit:gitblit.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback