CVE-2021-39940: Medium severity gitlab vulnerability

Published Dec 13, 2021
·
Updated

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.

Affected Software

6 affected components
GitLab GitLab>=13.2.0<14.3.6
GitLab GitLab>=13.2.0<14.3.6
GitLab GitLab>=14.4.0<14.4.4
GitLab GitLab>=14.4.0<14.4.4
GitLab GitLab>=14.5.0<14.5.2
GitLab GitLab>=14.5.0<14.5.2

Event History

Dec 13, 2021
CVE Published
via MITRE·03:47 PM
Data Sourced
via MITRE·03:47 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of CVE-2021-39940?

CVE-2021-39940 has been classified as a medium severity vulnerability.

2

How do I fix CVE-2021-39940?

To mitigate CVE-2021-39940, upgrade GitLab to version 14.3.6 or later, 14.4.4 or later, or 14.5.2 or later.

3

What versions of GitLab are affected by CVE-2021-39940?

CVE-2021-39940 affects GitLab CE/EE versions between 13.2.0 and 14.3.6, 14.4.0 and 14.4.4, and 14.5.0 and 14.5.2.

4

What type of attack is possible with CVE-2021-39940?

CVE-2021-39940 allows for a regular expression denial of service attack.

5

Is CVE-2021-39940 present in all GitLab versions?

No, CVE-2021-39940 is only present in specific versions of GitLab prior to the patched releases.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203