SecurityContext

CVE-2021-22230: GitLab - Server-Side Template Injection

  • Cve: CVE-2021-22230
  • Name: GitLab - Server-Side Template Injection
  • Description: Improper code rendering while rendering merge requests could be exploited to submit malicious code. This vulnerability affects GitLab CE/EE 9.3 and later through 13.11.6, 13.12.6, and 14.0.2.
  • Impact: Attackers can submit malicious code via merge requests, potentially leading to remote code execution or system compromise.
  • Remediation: Update to version 13.11.7, 13.12.7, or 14.0.3 or later versions.
  • Vulnerability type: template_injection
  • Vulnerability impact: remote_code_execution
  • Requirement type: logged_in
  • Requirements: Attacker needs access to merge request interface
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.2
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.01033
  • Epss percentile: 0.64503
  • Assignee: [email protected]
  • Published at: 2021-07-07T11:15:08Z
  • Age in days: 1966
  • Modified at: 2026-06-17T03:36:51Z
  • Patch available: yes
  • References total: 1
  • Products total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-22230
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
  • Not known: hackerone

Cwe

IdName
NVD-CWE-noinfo—

References

UrlSourceTags
https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-22230.jsonnvdVendor Advisory

Products

ProductAffectedPlatform boundSourcesUrl
gitlab:gitlab>= 14.0.0, < 14.0.2; >= 13.12.0, < 13.12.6; >= 9.3.0, < 13.11.6nonvd/v1/products/gitlab/gitlab

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Authentication required: yes
  • Exposed hosts: 66493
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports