# CVE-2022-30947: Path traversal in Jenkins Git Mercurial and Repo Plugins

Source: https://junglewise.ai/threats/cve-2022-30947-path-traversal-in-jenkins-git-mercurial-and-repo-plugins  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-05-18  
License: CC BY 4.0 with a link back

CVE-2022-30947 · Severity: low · CVSS 3.1 · Published 2022-05-18

Path traversal in Jenkins Git Mercurial and Repo Plugins

Technologies: [org.jenkins-ci.plugins:git (Maven)](https://junglewise.ai/threats/technologies/org-jenkins-ci-plugins-git), [org.jenkins-ci.plugins:mercurial (Maven)](https://junglewise.ai/threats/technologies/org-jenkins-ci-plugins-mercurial), [org.jenkins-ci.plugins:repo (Maven)](https://junglewise.ai/threats/technologies/org-jenkins-ci-plugins-repo). Vendors: [Maven](https://junglewise.ai/threats/vendors/maven).

## Quick answers

**Is CVE-2022-30947 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2022-30947 being exploited in the wild.

**How severe is CVE-2022-30947?** Low severity, with a CVSS score of 3.1, published 18 May 2022.

**Which products and versions are affected?** org.jenkins-ci.plugins:git (Maven) ECOSYSTEM:introduced=0,fixed=4.11.2; org.jenkins-ci.plugins:mercurial (Maven) ECOSYSTEM:introduced=0,fixed=2.16.1; org.jenkins-ci.plugins:repo (Maven) ECOSYSTEM:introduced=0,fixed=1.15.0.

**Is there a fix for CVE-2022-30947?** Yes. org.jenkins-ci.plugins:git (Maven): upgrade to 4.11.2 or later; org.jenkins-ci.plugins:mercurial (Maven): upgrade to 2.16.1 or later; org.jenkins-ci.plugins:repo (Maven): upgrade to 1.15.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2022-30947?** Check whether you run org.jenkins-ci.plugins:git (Maven), org.jenkins-ci.plugins:mercurial (Maven) or org.jenkins-ci.plugins:repo (Maven) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- org.jenkins-ci.plugins:git (Maven): upgrade to 4.11.2 or later

  ```sh
  # set org.jenkins-ci.plugins:git to 4.11.2 in your pom.xml or build.gradle
  ```

- org.jenkins-ci.plugins:mercurial (Maven): upgrade to 2.16.1 or later

  ```sh
  # set org.jenkins-ci.plugins:mercurial to 2.16.1 in your pom.xml or build.gradle
  ```

- org.jenkins-ci.plugins:repo (Maven): upgrade to 1.15.0 or later

  ```sh
  # set org.jenkins-ci.plugins:repo to 1.15.0 in your pom.xml or build.gradle
  ```


## Affected products

- org.jenkins-ci.plugins:git (Maven) ECOSYSTEM:introduced=0,fixed=4.11.2
- org.jenkins-ci.plugins:mercurial (Maven) ECOSYSTEM:introduced=0,fixed=2.16.1
- org.jenkins-ci.plugins:repo (Maven) ECOSYSTEM:introduced=0,fixed=1.15.0

## Identifiers

- CVE-2022-30947
- GHSA-84cm-vjwm-m979

## Related threats

- [XXE vulnerability in Jenkins REPO Plugin](https://junglewise.ai/threats/cve-2022-43415-xxe-vulnerability-in-jenkins-repo-plugin)
- [Webhook endpoint discloses job names to unauthorized users in Jenkins Mercurial Plugin](https://junglewise.ai/threats/cve-2022-43410-webhook-endpoint-discloses-job-names-to-unauthorized-users-in)
- [Improper masking of credentials Jenkins in Git Plugin](https://junglewise.ai/threats/cve-2022-38663-improper-masking-of-credentials-jenkins-in-git-plugin)
- [Lack of authentication mechanism in Jenkins Git Plugin webhook](https://junglewise.ai/threats/cve-2022-36884-lack-of-authentication-mechanism-in-jenkins-git-plugin-webhook)
- [Lack of authentication mechanism in Jenkins Git Plugin webhook](https://junglewise.ai/threats/cve-2022-36883-lack-of-authentication-mechanism-in-jenkins-git-plugin-webhook)
