CVE-2022-31791
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 · uneditedWatchGuard Firebox and XTM appliances allow a local attacker (that has already obtained shell access) to elevate their privileges and execute code with root permissions. This is fixed in Fireware OS 12.8.1, 12.5.10, and 12.1.4.
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 confidenceWatchGuard Firebox and XTM appliances contain a local privilege escalation vulnerability allowing an attacker with existing shell access to elevate to root privileges and execute arbitrary code with full root permissions.
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>= 12.0.0, < 12.1.4>= 12.2.0, < 12.5.10= 12.6.1= 12.6.3= 12.6.4= 12.7.0= 12.7.1= 12.7.2= 12.8.0CVSS 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 checksWork through these to decide whether this CVE applies to you.
-
Identify the appliance modelCheck if the device is a WatchGuard Firebox or XTM appliance by examining the system model information via command line (e.g., `sysctl hw.model` or checking boot logs) or through the web management interfaceAffected if The device is not a WatchGuard Firebox or XTM appliance - this vulnerability does not apply
-
Determine the installed Fireware versionRun the command `fireware -v` or `cat /var/os-version` on the appliance shell to retrieve the Fireware OS versionAffected if The version cannot be determined - you cannot confirm if the vulnerability applies
-
Compare the version to affected rangesCompare the installed Fireware version to the affected ranges: 12.0.0 to 12.1.3, 12.2.0 to 12.5.9, 12.6.1, 12.6.3, 12.6.4, 12.7.0, 12.7.1, 12.7.2, or 12.8.0Affected if The installed version falls within any of these ranges - the appliance is vulnerable to privilege escalation
-
Verify shell access existsThis vulnerability requires an attacker to have existing shell access on the appliance. Check if shell access is enabled and accessible via SSH or consoleAffected if Shell access is enabled and available - combined with a vulnerable version, an attacker with shell access could escalate to root
The appliance is affected if it is a WatchGuard Firebox or XTM device running any Fireware version within 12.0.0-12.1.3, 12.2.0-12.5.9, 12.6.1, 12.6.3, 12.6.4, 12.7.0-12.7.2, or 12.8.0, and shell access is present on the system.
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 · scoped12.1.412.5.10
Apply the vendor-released firmware updates (Fireware OS 12.8.1, 12.5.10, or 12.1.4) to all affected appliances to remediate this vulnerability.
Fireware OS 12.8.1 (or 12.5.10 or 12.1.4 depending on current branch)
- 1. Identify the current Fireware OS version running on the WatchGuard Firebox or XTM appliance via the management interface or CLI
- 2. Determine the appropriate upgrade path based on current version: if on 12.0.x-12.1.x, upgrade to 12.1.4; if on 12.2.x-12.5.x, upgrade to 12.5.10; if on 12.6.x, upgrade to 12.8.1
- 3. Download the appropriate Fireware OS upgrade image from the WatchGuard support portal (www.watchguard.com)
- 4. Back up the current Firebox configuration
- 5. Upload the upgrade image through the Firebox management interface (Web UI) or via CLI using the 'upgrade' command
- 6. Verify the upgrade completes successfully and the appliance reboots into the new version
- 7. Confirm the running version matches the expected fixed version
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation3.0 h
- Implementation6.0 h
- Testing3.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $3,984.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2022-31791 — 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-2022-31791 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