CVE-2023-6159: ReDoS in Cargo.toml blob viewer

Published Jan 25, 2024
·
Updated

An issue has been discovered in GitLab CE/EE affecting all versions from 12.7 prior to 16.6.6, 16.7 prior to 16.7.4, and 16.8 prior to 16.8.1 It was possible for an attacker to trigger a Regular Expression Denial of Service via a Cargo.toml containing maliciously crafted input.

Other sources

An issue has been discovered in GitLab CE/EE affecting all versions from 12.7 prior to 16.6.6, 16.7 prior to 16.7.4, and 16.8 prior to 16.8.1 It was possible for an attacker to trigger a Regular Expression Denial of Service via a Cargo.toml containing maliciously crafted input. This is a medium severity issue (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H, 6.5). It is now mitigated in the latest release and is assigned CVE-2023-6159.

GitLab

Affected Software

7 affected componentsFixes available
GitLab GitLab>=12.7.0<16.6.6
GitLab GitLab>=12.7.0<16.6.6
GitLab GitLab>=16.7.0<16.7.4
GitLab GitLab>=16.7.0<16.7.4
GitLab GitLab=16.8.0
GitLab GitLab=16.8.0
GitLab GitLab>=12.7<16.6.6, >=16.7<16.7.4, >=16.8<16.8.1
16.6.616.7.416.8.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 16.6.6Fixed in 16.7.4Fixed in 16.8.1
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 16.8.1
  3. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 16.7.4
  4. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 16.6.6

Event History

Jan 26, 2024
CVE Published
via MITRE·02:02 AM
Data Sourced
via MITRE·02:02 AM
RemedyDescriptionSeverityWeakness
Apr 22, 2026
Data Sourced
via GitLab·08:52 AM
DescriptionSeverityAffected Software

Peer vulnerabilities

Found alongside the following vulnerabilities.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2023-6159?

The severity of CVE-2023-6159 is classified as high due to its potential for Denial of Service attacks.

2

How do I fix CVE-2023-6159?

To fix CVE-2023-6159, update your GitLab installation to version 16.8.1 or later.

3

Which versions of GitLab are affected by CVE-2023-6159?

CVE-2023-6159 affects GitLab CE/EE versions from 12.7 up to, but not including, 16.6.6, 16.7 up to, but not including, 16.7.4, and 16.8.0.

4

What type of attack is possible with CVE-2023-6159?

CVE-2023-6159 allows an attacker to execute a Regular Expression Denial of Service via a specially crafted Cargo.toml file.

5

Is there a workaround for CVE-2023-6159?

There are no recommended workarounds for CVE-2023-6159; updating to a fixed version is necessary.

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