# CVE-2021-39940: An issue has been discovered in GitLab CE/EE affecting all versions starting from 13.2 before 14.3.6, all versions starting from 14.4 befor…

- Severity: Medium 4.3 (CVSS:3.1, scored by GitLab) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.57%, higher than 76% of CVEs (2026-12-01)
- Published: 2021-12-13T15:47:47.000Z
- Modified: 2026-09-10T16:01:32.978Z
- Also known as: BIT-GITLAB-2021-39940
- Weaknesses: CWE-1333
- Assigned by: GitLab

## Description

An issue has been discovered in GitLab CE/EE affecting all versions starting from 13.2 before 14.3.6, all versions starting from 14.4 before 14.4.4, all versions starting from 14.5 before 14.5.2. GitLab Maven Package registry is vulnerable to a regular expression denial of service when a specifically crafted string is sent.

(As written by CVE List.)

## Affected

- GitLab GitLab: >=14.5, <14.5.2; >=14.4, <14.4.4; >=13.2, <14.3.6; from 13.2.0 before 14.3.6; from 14.4.0 before 14.4.4; from 14.5.0 before 14.5.2
- gitlab (Bitnami): from 13.2.0 before 14.3.6; from 14.4.0 before 14.4.4; from 14.5.0 before 14.5.2

## Every score

- GitLab: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 4.0 Medium `AV:N/AC:L/Au:S/C:N/I:N/A:P`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://gitlab.com/gitlab-org/gitlab/-/issues/263116> (broken-link, web)
- <https://hackerone.com/reports/997961> (advisory, permissions-required, third-party-advisory)
- <https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-39940.json> (advisory, third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-39940> (web)

## Sources

- CVE List: [CVE-2021-39940](https://www.cve.org/CVERecord?id=CVE-2021-39940), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2021-39940](https://nvd.nist.gov/vuln/detail/CVE-2021-39940), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-GITLAB-2021-39940](https://osv.dev/vulnerability/BIT-GITLAB-2021-39940), Apache-2.0, modified 2026-09-10

---

Page: https://cve.day/CVE-2021-39940 · Whole record: https://cve.day/CVE-2021-39940.json · Rebuilt by cve.day 2026-11-25T22:58:05.951Z
