File Descriptor Re-use Vulnerability in GitLab Runner

MonitorSensitive data exposure over the network by a logged-in user.
5.3MEDIUM

CVE-2021-39947

Key Information:

Vendor

Gitlab

CVE ID
CVE ID:
CVE-2021-39947
Vendor
CVE Published:
6 June 2022
Fixed in
Fixed in:
14.3.4, 14.4, 14.4.2, 14.5, 14.5.2

Timeline

  • Vulnerability published

  • Vulnerability Reserved

How risky is it?

  • Partly: Works over the network, but needs a login
  • No: No public exploit yet
  • No: Not on CISA's exploited list
  • No: No ransomware use seen

Our verdict

Monitor

Low risk for most. Patch in your normal cycle.

What to do

1Update to a fixed version
GitLab Runner <14.3.4 to below 14.3.4 is vulnerable
GitLab Runner >=14.4, <14.4.2 to below 14.4, 14.4.2 is vulnerable
GitLab Runner >=14.5, <14.5.2 to below 14.5, 14.5.2 is vulnerable

Install the GitLab Runner release that fixes your version line, or later:

14.3.414.4, 14.4.214.5, 14.5.2
Read the vendor advisory β†—
2Can't patch yet? Reduce exposure

It can be reached over the network, so limit who can reach GitLab Runner. Block it from the internet, allow only trusted hosts or a VPN, and turn off the affected feature if you don't use it, until you can update.

3Why it's rated "Monitor"
  • Its CVSS severity is medium (5.3).

What is CVE-2021-39947?

A vulnerability in GitLab Runner allows the unintended re-use of file descriptor 0 in specific scenarios, leading to the mixing of output from multiple jobs. This issue can occur in various versions of GitLab Runner, causing potential confusion and inconsistency in job output that could impact CI/CD processes.

References

Integer Overflow Vulnerability in GitLab CE/EE Affects Multiple Versions

CVE-2026-110264
GitlabGitlabπŸ˜„πŸ‘Ύ10CRITICAL

Arbitrary Code Execution Vulnerability in GitLab CE/EE

CVE-2026-97229
GitlabGitlabπŸ˜„πŸ‘Ύ10CRITICAL

Arbitrary Command Execution Vulnerability in GitLab AI Gateway Component

CVE-2026-90970
GitlabGitlab Ai Gateway9.9CRITICAL
View more Gitlab vulnerabilities...

Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities Β· Report a correction

CVSS V3.1

Score:
5.3
Severity:
MEDIUM
Confidentiality:
High
Integrity:
None
Availability:
High
Attack Vector:
Network
Attack Complexity:
High
Privileges Required:
Low
User Interaction:
None
Scope:
Unchanged

Credit

This vulnerability has been discovered internally by the GitLab team
.