{"id":"CVE-2021-22205","state":"PUBLISHED","title":"An issue has been discovered in GitLab CE/EE affecting all versions starting from 11.9. GitLab was not properly validating image files that were passed to a file parser which resul","description":"An issue has been discovered in GitLab CE/EE affecting all versions starting from 11.9. GitLab was not properly validating image files that were passed to a file parser which resulted in a remote command execution.","publishedAt":"2021-04-23T17:39:36.000Z","updatedAt":"2026-08-06T03:55:21.716Z","severity":{"score":10,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","source":"GitLab"},"assigner":"GitLab","products":["GitLab GitLab"],"affected":[{"vendor":"GitLab","product":"GitLab","versions":[{"version":">=11.9, <13.8.8","status":"affected"},{"version":">=13.9, <13.9.6","status":"affected"},{"version":">=13.10, <13.10.3","status":"affected"}]}],"references":["https://hackerone.com/reports/1154542","https://gitlab.com/gitlab-org/gitlab/-/issues/327121","https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-22205.json","http://packetstormsecurity.com/files/164768/GitLab-Unauthenticated-Remote-ExifTool-Command-Injection.html","http://packetstormsecurity.com/files/164994/GitLab-13.10.2-Remote-Code-Execution.html","https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-22205"],"weaknesses":["CWE-94"],"ingestedAt":"2026-10-29T19:48:02.192Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/22xxx/CVE-2021-22205.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2021-22205","state":"PUBLISHED","datePublished":"2021-04-23T17:39:36.000Z","dateUpdated":"2026-08-06T03:55:21.716Z","assignerShortName":"GitLab","assignerOrgId":"ceab7361-8a18-47b1-92ba-4d7d25f6715a","dateReserved":"2021-01-05T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"An issue has been discovered in GitLab CE/EE affecting all versions starting from 11.9. GitLab was not properly validating image files that were passed to a file parser which resulted in a remote command execution."}],"affected":[{"vendor":"GitLab","product":"GitLab","versions":[{"version":">=11.9, <13.8.8","status":"affected"},{"version":">=13.9, <13.9.6","status":"affected"},{"version":">=13.10, <13.10.3","status":"affected"}]}],"references":[{"url":"https://hackerone.com/reports/1154542","tags":["x_refsource_MISC"]},{"url":"https://gitlab.com/gitlab-org/gitlab/-/issues/327121","tags":["x_refsource_MISC"]},{"url":"https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-22205.json","tags":["x_refsource_CONFIRM"]},{"url":"http://packetstormsecurity.com/files/164768/GitLab-Unauthenticated-Remote-ExifTool-Command-Injection.html","tags":["x_refsource_MISC"]},{"url":"http://packetstormsecurity.com/files/164994/GitLab-13.10.2-Remote-Code-Execution.html","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":10,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"description":"Improper control of generation of code ('code injection') in GitLab","lang":"en","type":"text"}]}],"providerMetadata":{"shortName":"GitLab","dateUpdated":"2021-11-17T16:06:20.000Z","orgId":"ceab7361-8a18-47b1-92ba-4d7d25f6715a"},"credits":[{"lang":"en","value":"Thanks vakzz for reporting this vulnerability through our HackerOne bug bounty program"}],"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"cve@gitlab.com","ID":"CVE-2021-22205","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"GitLab","version":{"version_data":[{"version_value":">=11.9, <13.8.8"},{"version_value":">=13.9, <13.9.6"},{"version_value":">=13.10, <13.10.3"}]}}]},"vendor_name":"GitLab"}]}},"credit":[{"lang":"eng","value":"Thanks vakzz for reporting this vulnerability through our HackerOne bug bounty program"}],"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"An issue has been discovered in GitLab CE/EE affecting all versions starting from 11.9. GitLab was not properly validating image files that were passed to a file parser which resulted in a remote command execution."}]},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":10,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"NONE","vectorString":"AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"Improper control of generation of code ('code injection') in GitLab"}]}]},"references":{"reference_data":[{"name":"https://hackerone.com/reports/1154542","refsource":"MISC","url":"https://hackerone.com/reports/1154542"},{"name":"https://gitlab.com/gitlab-org/gitlab/-/issues/327121","refsource":"MISC","url":"https://gitlab.com/gitlab-org/gitlab/-/issues/327121"},{"name":"https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-22205.json","refsource":"CONFIRM","url":"https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-22205.json"},{"name":"http://packetstormsecurity.com/files/164768/GitLab-Unauthenticated-Remote-ExifTool-Command-Injection.html","refsource":"MISC","url":"http://packetstormsecurity.com/files/164768/GitLab-Unauthenticated-Remote-ExifTool-Command-Injection.html"},{"name":"http://packetstormsecurity.com/files/164994/GitLab-13.10.2-Remote-Code-Execution.html","refsource":"MISC","url":"http://packetstormsecurity.com/files/164994/GitLab-13.10.2-Remote-Code-Execution.html"}]}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://hackerone.com/reports/1154542","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://gitlab.com/gitlab-org/gitlab/-/issues/327121","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-22205.json","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://packetstormsecurity.com/files/164768/GitLab-Unauthenticated-Remote-ExifTool-Command-Injection.html","tags":["x_refsource_MISC","x_transferred"]},{"url":"http://packetstormsecurity.com/files/164994/GitLab-13.10.2-Remote-Code-Execution.html","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T18:37:18.228Z"}},{"title":"CISA ADP Vulnrichment","references":[{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-22205","tags":["government-resource"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2021-10-26T00:00:00+00:00","options":[{"Exploitation":"active"},{"Automatable":"yes"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3","id":"CVE-2021-22205"}}},{"other":{"type":"kev","content":{"dateAdded":"2021-11-03","reference":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-22205"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-94","type":"CWE","lang":"en","description":"CWE-94 Improper Control of Generation of Code ('Code Injection')"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-08-06T03:55:21.716Z"}}]}}}