cve.bz

CVE-2021-21684 jenkins git: Improper Encoding or Escaping of Output

6.1 mediumEPSS 1.2%Fix available

Medium (6.1) in jenkins git. EPSS 1.2% estimated probability of exploitation activity in the next 30 days. Fixed in org.jenkins-ci.plugins:git 4.8.3.

On this page
Jenkins Git Plugin 4.8.2 and earlier does not escape the Git SHA-1 checksum parameters provided to commit notifications when displaying them in a build cause, resulting in a stored cross-site scripting (XSS) vulnerability.

Severity

CVSS 3.1

6.1 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS
1.2% (unchanged from 1.2% a week ago; 1.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 70th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-116 Improper Encoding or Escaping of Output
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-21684 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-21684?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-21684?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-21684 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Jenkins project Jenkins Git Pluginthrough 4.8.2

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-gghc-g8cj-4vfvMavenorg.jenkins-ci.plugins:git<4.8.34.8.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Red Hatopenshift:4.10::el7cri-o, cri-o-debuginfo0:1.23.0-92.rhaos4.10.gitdaab4d1.el7RHSA-2022:0055
Red Hatopenshift:4.10::el7openshift, openshift-hyperkube0:4.10.0-202202250816.p0.ge419edf.assembly.stream.el7RHSA-2022:0055
Red Hatopenshift:4.10::el7openshift-clients, openshift-clients-redistributable0:4.10.0-202202160023.p0.gf93da17.assembly.stream.el7RHSA-2022:0055
Red Hatopenshift:4.10::el8coreos-installer, coreos-installer-bootinfra, coreos-installer-debuginfo and 2 more0:0.12.0-1.rhaos4.10.el8RHSA-2022:0055
Red Hatopenshift:4.10::el8cri-o, cri-o-debuginfo, cri-o-debugsource0:1.23.1-9.rhaos4.10.gitbdffb9a.el8RHSA-2022:0055
Red Hatopenshift:4.10::el8jenkins0:2.319.2.1643288987-1.el8RHSA-2022:0055
Red Hatopenshift:4.10::el8jenkins-2-plugins0:4.10.1643404185-1.el8RHSA-2022:0055
Red Hatopenshift:4.10::el8openshift, openshift-hyperkube0:4.10.0-202202250816.p0.ge419edf.assembly.stream.el8RHSA-2022:0055
Red Hatopenshift:4.10::el8openshift-clients, openshift-clients-redistributable0:4.10.0-202202160023.p0.gf93da17.assembly.stream.el8RHSA-2022:0055
Azure Linux3gitno fix listedAZL-112952

From the distributions' data via OSV.dev: Red Hat Security Data © Red Hat, Inc., CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Red Hat.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This vulnerability is only exploitable in Jenkins 2.314 and earlier, LTS 2.303.1 and earlier [1]

[1] https://www.jenkins.io/doc/upgrade-guide/2.303/#SECURITY-2452

ProductPackageStateAdvisory
Red Hat OpenShift Container Platform 4.10jenkins-2-plugins-0:4.10.1643404185-1.el8Fixed 2022-03-10RHSA-2022:0055
Red Hat Fuse 7jenkinsNot affected
Red Hat OpenShift Container Platform 3.11jenkins-2-pluginsOut of support scope

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-21684.

Attack patterns (CAPEC)

  • CAPEC-73 User-Controlled Filename Likelihood: High · Severity: High
  • CAPEC-81 Web Server Logs Tampering Likelihood: Medium · Severity: High
  • CAPEC-85 AJAX Footprinting Likelihood: High · Severity: Low
  • CAPEC-104 Cross Zone Scripting Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON