CVE-2022-21664
NixOS vulnerability analysis and mitigation

Overview

WordPress versions 4.1 through 5.8.2 contained a SQL injection vulnerability due to improper sanitization in the WP_Meta_Query class. The vulnerability was discovered by Ben Bidner from the WordPress security team and was patched in WordPress version 5.8.3 released on January 6, 2022. All affected versions dating back to 4.1.34 received security updates to address this issue (WordPress News, GitHub Advisory).

Technical details

The vulnerability stemmed from insufficient sanitization in the WP_Meta_Query class, which could potentially allow unintended SQL queries to be executed. The fix involved improving sanitization by adding proper input validation through the use of preg_replace to sanitize table aliases, as evidenced in the patch that modified the find_compatible_table_alias function (WordPress Commit).

Impact

The vulnerability could allow attackers to perform blind SQL injection attacks against affected WordPress installations. This could potentially lead to unauthorized database access and manipulation of website content (GitHub Advisory).

Mitigation and workarounds

The recommended mitigation is to update to WordPress version 5.8.3 or the corresponding security release for older versions. WordPress strongly recommends keeping auto-updates enabled to ensure timely application of security patches. There were no known workarounds for this vulnerability, making updating the only effective solution (WordPress News, Debian Security).

Community reactions

The vulnerability was treated with high priority by major Linux distributions, with Debian, Fedora, and others quickly releasing security updates to address the issue. Both Debian and Fedora issued security advisories to their users, highlighting the significance of the vulnerability (Debian Security, Fedora Update).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-69264CRITICAL9.8
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2025-69263HIGH8.8
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2025-69262HIGH7.8
  • JavaScriptJavaScript
  • pnpm
NoYesJan 07, 2026
CVE-2025-20807MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026
CVE-2026-21885MEDIUM6.5
  • NixOSNixOS
  • miniflux
NoYesJan 08, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management