Windows 10Operating system · Microsoft

CVE-2022-21838

HIGH · 7.8 CVSS v3.1 Published 2022-01-11
Mitigation only
No fix yet — a mitigation exists. There is no fixed release. A documented workaround reduces exposure in the meantime.
See remediation →
80/100
Remediation priority · High
Zero-click

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 · unedited
Windows Cleanup Manager Elevation of Privilege Vulnerability

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 · high confidence

This is a local Elevation of Privilege vulnerability in the Windows Cleanup Manager component. It allows an authenticated attacker to execute code with elevated (SYSTEM) privileges by exploiting improper permission handling in the Cleanup Manager functionality.

MitigationApply the Microsoft security update released for CVE-2022-21838. This is a local vulnerability requiring authenticated access, so ensure least-privilege user accounts and restrict interactive logon rights for standard users.

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
Windows 10Operating system
Affected:all versions= 20h2= 21h1= 21h2= 1607= 1809= 1909
Windows 11Operating system
Affected:all versions
Windows 7Operating system
Affected:all versions
Windows 8.1Operating system
Affected:all versions
Windows ServerOperating system
Affected:= 20h2= 2022
Windows Server 2008Operating system
Affected:= r2
Windows Server 2012Operating system
Affected:all versions= r2
Windows Server 2016Operating system
Affected:all versions

CVSS 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
Local
Complexity
Low
Privileges
Low
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

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 checks

Work through these to decide whether this CVE applies to you.

  1. Check Windows version
    Run 'winver' or 'systeminfo | findstr /B /C:"OS Name" /C:"OS Version"' to identify the installed Windows version and build number.
    Affected if The version matches any of the affected versions: Windows 10 (1607, 1809, 1909, 20h2, 21h1, 21h2), Windows 11 (all), Windows 7 (all), Windows 8.1 (all), Windows Server 2008 R2, 2012, 2012 R2, 2016, 2022, 20h2.
  2. Verify Cleanup Manager accessibility
    Locate cleanmgr.exe (typically in C:\Windows\System32\ or C:\Windows\SysWOW64\) and check if standard non-admin users can execute it. Run 'icacls cleanmgr.exe' to inspect NTFS permissions on the file.
    Affected if Standard users have execute access to cleanmgr.exe without proper restriction.
  3. Audit for privilege escalation attempts
    Review Windows Security event logs and System event log for Event ID 4688 (Process Creation) involving cleanmgr.exe spawned by non-privileged accounts, or look for suspicious child processes. Use 'Get-WinEvent -LogName Security -FilterHashtable @{ID=4688; StartTime=(Get-Date).AddDays(-7)} | Where-Object {$_.Message -match "cleanmgr"}'
    Affected if cleanmgr.exe was executed by a standard user account within the audit period.
  4. Check for scheduled cleanup tasks
    Review scheduled tasks related to Cleanup Manager using 'schtasks /query /fo LIST /v' and look for tasks under Microsoft\Windows\DiskCleanup or related cleanup utilities. Also check Task Scheduler GUI for DiskCleanup tasks.
    Affected if DiskCleanup or Cleanup Manager scheduled tasks exist and are executable by standard users.
  5. Inspect Cleanup Manager directory permissions
    Check permissions on the DiskCleanup folder (typically C:\Windows\System32\Cleanup) and any Temp directories used by Cleanup Manager. Use 'icacls' on these directories.
    Affected if Standard users have write or execute permissions on directories used by the Cleanup Manager component.

A system is affected if it runs any of the listed Windows versions AND standard authenticated users have access to execute the Cleanup Manager (cleanmgr.exe) or related disk cleanup components without proper privilege restrictions.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

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.

From vendor data
Mitigation available No clean upgrade yet — mitigate in the meantime
Mitigation

Apply the Microsoft security update released for CVE-2022-21838. This is a local vulnerability requiring authenticated access, so ensure least-privilege user accounts and restrict interactive logon rights for standard users.

Fix this in Windows 10 Scoped from the published advisory
  • Consultation2.0 h
  • Implementation4.0 h
  • Testing3.0 h
  • Review / QA2.0 h
11.0 hours of engineering $1,930
Get help mitigating

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $3,088.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2022-21838 — 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 sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2022-21838 in production — separate from our analysis above.

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.

What this is

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.

What belongs here
  • 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