CVE-2021-39912
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedA potential DoS vulnerability was discovered in GitLab CE/EE starting with version 13.7. Using a malformed TIFF images was possible to trigger memory exhaustion.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · moderate confidenceA denial of service vulnerability exists in GitLab CE/EE versions 13.7 and later where processing a malformed TIFF image can trigger memory exhaustion, potentially causing the service to become unavailable.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data>= 13.7.0, < 14.2.6>= 14.3.0, < 14.3.4>= 14.4.0, < 14.4.1CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- Low
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Determine your installed GitLab versionRun 'gitlab-rake gitlab:env:info' or check '/opt/gitlab/VERSION' file, or view the version in the Admin Area > Dashboard in the web UIAffected if The installed version falls within any of these ranges: 13.7.0 to 14.2.5, 14.3.0 to 14.3.3, or 14.4.0
-
Check if image uploads are enabled in project settingsNavigate to a project's Settings > General > Visibility, project features, permissions or check via API: GET /projects/:id with include_settings=trueAffected if File uploads or the markdown editor that processes images is enabled for projects where users can upload files
-
Verify TIFF file processing is possibleAttempt to upload a test TIFF file to an issue, merge request comment, or project wiki, or inspect gitlab-rails configuration for file type restrictions in /etc/gitlab/gitlab.rb (gitlab['default_project_features']['issues'] and associated upload settings)Affected if TIFF files can be uploaded and GitLab attempts to generate thumbnails or process image metadata for them
-
Check if the file upload feature is exposed to unauthenticated or external usersReview project and group visibility settings, and check if public or internal users can create issues/comments with attachments via API or web UIAffected if Users who can create issues, comments, or upload files are able to submit TIFF attachments without size or type restrictions
You are affected if your GitLab version is 13.7.0-14.2.5, 14.3.0-14.3.3, or 14.4.0 AND users can upload or attach malformed TIFF image files that GitLab processes.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scoped14.2.614.3.414.4.1
Update GitLab to the patched version (contact GitLab for specific fixed version) or implement temporary image upload restrictions until patching is feasible.
14.2.6, 14.3.4, or 14.4.1 depending on your current branch (14.4.1 recommended for latest stable)
- 1. Identify current GitLab version by navigating to Admin Area > Overview > Dashboard or running `gitlab-rake gitlab:env:info`
- 2. Determine appropriate upgrade path based on current version: if running 13.7.0-14.2.5 upgrade to 14.2.6; if running 14.3.0-14.3.3 upgrade to 14.3.4; if running 14.4.0 upgrade to 14.4.1
- 3. Create a full backup of GitLab data using `gitlab-backup-create` or the omnibus backup command
- 4. Review GitLab upgrade documentation for your specific version jump
- 5. Test the upgrade in a staging environment first
- 6. Schedule maintenance window and stop GitLab services
- 7. Update GitLab packages via package manager (e.g., `apt-get update && apt-get install gitlab-ce` or `yum update gitlab-ce`)
- 8. Reconfigure GitLab with `gitlab-ctl reconfigure`
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation1.0 h
- Implementation2.0 h
- Testing2.0 h
- Review / QA1.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $1,664.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2021-39912 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2021-39912 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data