CVE-2026-1606

Improper Control of Generation of Code ('Code Injection') in GitLab

Published Jun 25, 2026 CVSS 3.1 · 4.3 Medium EPSS < 1% KEV · Not listed
Description
GitLab has remediated an issue in GitLab CE/EE affecting all versions from 14.8 before 18.11.6, 19.0 before 19.0.3, and 19.1 before 19.1.1 that under certain conditions could have allowed an authenticated user to conceal content within a Snippet due to improper input validation.

Analysis

AI-generated

Technical impact

GitLab’s governance of generated code was insufficiently validated, allowing an authenticated user to conceal content within a Snippet by inserting arbitrary code. This flaw is classified as CWE‑94, indicating potential code injection that could alter the behavior of the snippet module. The vulnerability can permit a malicious actor to embed invisible or malicious code, potentially facilitating further exploitation or data exfiltration through the snippet interface. "Concealing content" implies that the injected code could evade normal user visibility while still being processed by GitLab's rendering engine, raising concerns about confidentiality and integrity within the platform.

Affected Systems

All GitLab Community and Enterprise Edition releases from version 14.8 up to but excluding 18.11.6, 19.0 up to but excluding 19.0.3, and 19.1 up to but excluding 19.1.1 are affected. The issue persists across both CE and EE variants, meaning any organization deploying these versions is at risk.

Risk and Exploitability

The CVSS score of 4.3 indicates low overall severity, and no EPSS data is available; furthermore the vulnerability is not listed in the CISA KEV catalogue. Exploitation requires authentication and is thus limited to users with snippet creation privileges. While the flaw offers code injection potential, there is no evidence of external exploitation or widespread deployment. The likely attack vector involves an authenticated user crafting a snippet that includes malicious code, which the platform could render during display or processing. Given the low CVSS, the risk to systems remains moderate but should not be ignored.

Remediation

Vendor Solution

Upgrade to versions 18.11.6, 19.0.3, 19.1.1 or above.


OpenCVE Recommended Actions

  • Upgrade GitLab to version 18.11.6, 19.0.3, 19.1.1 or later, where the code injection flaw has been fixed.
  • If an immediate upgrade is not feasible, disable or restrict snippet creation permissions for all users until the patch is applied.
  • Conduct an audit of existing snippets to identify and remove any embedded malicious code that may have been inserted prior to patching.

Generated by OpenCVE AI on June 25, 2026 at 06:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description GitLab has remediated an issue in GitLab CE/EE affecting all versions from 14.8 before 18.11.6, 19.0 before 19.0.3, and 19.1 before 19.1.1 that under certain conditions could have allowed an authenticated user to conceal content within a Snippet due to improper input validation.
Title Improper Control of Generation of Code ('Code Injection') in GitLab
First Time appeared Gitlab
Gitlab gitlab
Weaknesses CWE-94
CPEs cpe:2.3:a:gitlab:gitlab:*:*:*:*:*:*:*:*
Vendors & Products Gitlab
Gitlab gitlab
References
Metrics cvssV3_1

{'score': 4.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N'}

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')

Sources

Status
PUBLISHED
Assigner
GitLab
Published
Updated
Jun 25, 2026, 12:55 PM
Reserved
Jan 29, 2026, 11:33 AM
Status
Analyzed
Published
Jun 25, 2026, 5:16 AM
Modified
Jun 26, 2026, 6:40 PM