CVE-2021-21626 Missing permission checks in Jenkins Warnings Next Generation Plugin allow listing workspace contents

Medium 4.3 Published Updated

Attackers with read permissions can bypass authorization checks to verify if specific file patterns exist in the workspace.

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-2021-21626?

CVE-2021-21626 is a medium-severity missing authorization vulnerability in Jenkins Warnings Next Generation Plugin, published on 18 Mar 2021. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Jenkins Warnings Next Generation Plugin 8.4.4 and earlier does not perform a permission check in methods implementing form validation, allowing attackers with Item/Read permission but without Item/Workspace or Item/Configure permission to check whether attacker-specified file patterns match workspace contents.

Weakness: CWE-862

Which versions are affected by CVE-2021-21626?

2 open source packages ship an affected version, including io.jenkins.plugins:warnings-ng. It affects 1 product.

PackageAffectedFixed in
io.jenkins.plugins:warnings-ng MavenAll versions8.5.0
io.jenkins.plugins:warnings-ng MavenAll versions8.5.0

Products include Jenkins Warnings Next Generation.

How do I fix CVE-2021-21626?

Upgrade io.jenkins.plugins:warnings-ng to 8.5.0 or later.

Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.

Is CVE-2021-21626 being exploited?

There is no known exploitation of CVE-2021-21626 in the wild and no public exploit code.

Sources

Also known as GHSA-7j3x-xm4j-jfj7.

Is CVE-2021-21626 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free