GitHub Advisoryadvisory · Maven
GHSA-84cm-vjwm-m979 Path traversal in Jenkins Git Mercurial and Repo Plugins
HIGH
Official page ↗
- Aliases
- CVE-2022-30947
- Ecosystem
- Maven
- Packages
- org.jenkins-ci.plugins:git, org.jenkins-ci.plugins:mercurial, org.jenkins-ci.plugins:repo
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- Weaknesses
- CWE-22
- Reviewed
- 2022-06-02
Affected packages
• Maven org.jenkins-ci.plugins:git: < 4.11.2 → fixed in 4.11.2
• Maven org.jenkins-ci.plugins:mercurial: < 2.16.1 → fixed in 2.16.1
• Maven org.jenkins-ci.plugins:repo: < 1.15.0 → fixed in 1.15.0
Description
Jenkins SCMs support a number of different URL schemes, including local file system paths (e.g. using `file:` URLs).
Historically in Jenkins, only agents checked out from SCM, and if multiple projects share the same agent, there is no expected isolation between builds besides using different workspaces unless overridden. Some Pipeline-related features check out SCMs from the Jenkins controller as well.
This allows attackers able to configure pipelines to check out some SCM repositories stored on the Jenkins controller’s file system using local paths as SCM URLs, obtaining limited information about other projects' SCM contents.
Related
Alias · CVE (1)
- CVE-2022-30947 Jenkins Git Plugin 4.11.1 and earlier allows attackers able to configure pipelines to check out some SCM repositories stored on the Jenkins… vulnerability
Weakness · CWE (1)
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-30947 advisory
- https://github.com/jenkinsci/git-plugin/commit/b295606e0b865c298fde27bea14f9b7535a976e6 web
- https://github.com/jenkinsci/mercurial-plugin/commit/55904fbb8c9d3e0b36fc26330374904cb68e8758 web
- https://github.com/jenkinsci/repo-plugin/commit/3c8e6236b1088fc138a1a3e6af5ebbcb8b616f2f web
- https://github.com/jenkinsci/git-plugin package
- https://www.jenkins.io/security/advisory/2022-05-17/#SECURITY-2478 web
- http://www.openwall.com/lists/oss-security/2022/05/17/8 web