VYPR
Moderate severityNVD Advisory· Published Jun 22, 2022· Updated Aug 3, 2024

CVE-2022-34180

CVE-2022-34180

Description

Jenkins Embeddable Build Status Plugin 2.0.3 and earlier does not correctly perform the ViewStatus permission check in the HTTP endpoint it provides for "unprotected" status badge access, allowing attackers without any permissions to obtain the build status badge icon for any attacker-specified job and/or build.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
org.jenkins-ci.plugins:embeddable-build-statusMaven
< 2.0.42.0.4

Affected products

1

Patches

1
402148784b3f

[SECURITY-2794]

1 file changed · +10 4
  • src/main/java/org/jenkinsci/plugins/badge/actions/PublicBuildStatusAction.java+10 4 modified
    @@ -134,8 +134,11 @@ public String doText(StaplerRequest req, StaplerResponse rsp, @QueryParameter St
             }
     
             // check if user has permission to view the status
    -        if(throwErrorWhenNotFound && (p == null || !p.hasPermission(VIEW_STATUS))){
    -            throw HttpResponses.notFound();            
    +        if (p == null || !p.hasPermission(VIEW_STATUS)) {
    +            if (throwErrorWhenNotFound) {
    +                throw HttpResponses.notFound();
    +            }
    +            return null;
             }
             
             return p;
    @@ -180,8 +183,11 @@ public String doText(StaplerRequest req, StaplerResponse rsp, @QueryParameter St
                 }    
             }
             // check if user has permission to view the status
    -        if(throwErrorWhenNotFound && (run == null || !run.hasPermission(VIEW_STATUS))){
    -            throw HttpResponses.notFound();
    +        if (run == null || !run.hasPermission(VIEW_STATUS)) {
    +            if (throwErrorWhenNotFound) {
    +                throw HttpResponses.notFound();
    +            }
    +            return null;
             }
     
             return run;
    

Vulnerability mechanics

Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

4

News mentions

0

No linked articles in our index yet.