CVE-2016-4987 Jenkins Image Gallery Plugin allows Path Traversal
Remote attackers can list arbitrary directories and read arbitrary files in the Jenkins Image Gallery plugin due to a directory traversal flaw.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2016-4987?
CVE-2016-4987 is a medium-severity path traversal vulnerability in n/a, published on 9 Feb 2017. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Directory traversal vulnerability in the Image Gallery plugin before 1.4 in Jenkins allows remote attackers to list arbitrary directories and read arbitrary files via unspecified form fields.
Weakness: CWE-22
Which versions are affected by CVE-2016-4987?
2 open source packages ship an affected version, including com.tupilabs.image_gallery:image-gallery. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
com.tupilabs.image_gallery:image-gallery Maven | All versions | 1.4 |
com.tupilabs.image_gallery:image-gallery Maven | All versions | 1.4 |
Products include Jenkins Image Gallery.
How do I fix CVE-2016-4987?
Upgrade com.tupilabs.image_gallery:image-gallery to 1.4 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2016-4987 being exploited?
There is no known exploitation of CVE-2016-4987 in the wild and no public exploit code.
Sources
Also known as GHSA-8xr3-54w2-8xjp.