A vulnerability was found in X.Org. This security flaw occurs becuase the swap handler for the XTestFakeInput request of the XTest extension may corrupt the stack if GenericEvents with lengths larger than 32 bytes are sent through a the XTestFakeInput request. This issue can lead to local privileges elevation on systems where the X server is running privileged and remote code execution for ssh X forwarding sessions. This issue does not affect systems where client and server use the same byte order.
CVE-2022-46340
Score 8.8 from GitHub Security Advisory (severity: HIGH) published 2022-12-14. NVD baseline CVSS 8.8; sources differ by 0.0.
- High severity, but no confirmed exploitation yet
A fix is available — apply it.
- CVSS v3
- 8.8
- EG Score
- 8.8(medium)
- EG Risk
- 41(Track)EG Risk 41/100SSVC: Track
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity88% × 45%Exploitation2% × 40%Automatability0% × 15%Action: Routine — remediate on your standard cadence. - EPSS
- 82.9%
- KEV
- Not listed
Published
December 14, 2022
Last Modified
April 22, 2025
References (16)
- secalert@redhathttps://access.redhat.com/security/cve/CVE-2022-46340
- secalert@redhathttps://bugzilla.redhat.com/show_bug.cgi?id=2151755
- secalert@redhathttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5NELB7YDWRABYYBG4UPTHRBDTKJRV5M2/
- secalert@redhathttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DXDF2O5PPLE3SVAJJYUOSAD5QZ4TWQ2G/
- secalert@redhathttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RWTH3SNJ3GKYDSN7I3QDGWYEPSMWU6EP/
- secalert@redhathttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Z67QC4C3I2FI2WRFIUPEHKC36J362MLA/
- secalert@redhathttps://security.gentoo.org/glsa/202305-30
- secalert@redhathttps://www.debian.org/security/2022/dsa-5304
- af854a3a-2127-422b-91ae-364da2661108https://access.redhat.com/security/cve/CVE-2022-46340
- af854a3a-2127-422b-91ae-364da2661108https://bugzilla.redhat.com/show_bug.cgi?id=2151755
- af854a3a-2127-422b-91ae-364da2661108https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5NELB7YDWRABYYBG4UPTHRBDTKJRV5M2/
- af854a3a-2127-422b-91ae-364da2661108https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DXDF2O5PPLE3SVAJJYUOSAD5QZ4TWQ2G/
- af854a3a-2127-422b-91ae-364da2661108https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RWTH3SNJ3GKYDSN7I3QDGWYEPSMWU6EP/
- af854a3a-2127-422b-91ae-364da2661108https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Z67QC4C3I2FI2WRFIUPEHKC36J362MLA/
- af854a3a-2127-422b-91ae-364da2661108https://security.gentoo.org/glsa/202305-30
Vendor Advisories for CVE-2022-46340(5)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
- RHSA-2025:12751Red Hat Product SecurityHigh
Red Hat Security Advisory: tigervnc security update
- RHSA-2023:2805Red Hat Product SecurityMedium
Red Hat Security Advisory: xorg-x11-server-Xwayland security update
- RHSA-2023:2806Red Hat Product SecurityMedium
Red Hat Security Advisory: xorg-x11-server security and bug fix update
- RHSA-2023:2249Red Hat Product SecurityMedium
Red Hat Security Advisory: xorg-x11-server-Xwayland security update
- RHSA-2023:2248Red Hat Product SecurityMedium
Red Hat Security Advisory: xorg-x11-server security and bug fix update
Patch Availability(11)
| Vendor / Ecosystem | Fixed in / Patch | Released | Source |
|---|---|---|---|
| ubuntu | xdmx-tools (2:1.15.1-0ubuntu2.11+esm7) @ trusty | 2026-05-23 | ubuntu |
| ubuntu | xdmx-tools (2:1.20.13-1ubuntu1~20.04.5) @ focal | 2026-05-23 | ubuntu |
| redhat | tigervnc-0:1.1.0-25.el6_10.13 | 2025-08-04 | redhat |
| redhat | tigervnc-0:1.12.0-15.el8_8 | 2023-05-16 | redhat |
| redhat | xorg-x11-server-0:1.20.11-15.el8 | 2023-05-16 | redhat |
| redhat | xorg-x11-server-Xwayland-0:21.1.3-10.el8 | 2023-05-16 | redhat |
| redhat | xorg-x11-server-Xwayland-0:21.1.3-7.el9 | 2023-05-09 | redhat |
| redhat | tigervnc-0:1.12.0-13.el9_2 | 2023-05-09 | redhat |
| redhat | xorg-x11-server-0:1.20.11-17.el9 | 2023-05-09 | redhat |
| redhat | tigervnc-0:1.8.0-23.el7_9 | 2023-01-09 | redhat |
| redhat | xorg-x11-server-0:1.20.4-21.el7_9 | 2023-01-09 | redhat |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Additional Vendor Advisories
(6)
Vendors that published advisories for this CVE beyond the curated set above. Broader coverage but minimal per-row detail — click through for the original advisory.
- Red HatRHSA-2023:0045IMPORTANT2022-12-14
RHSA-2023:0045 — Important
- Red HatRHSA-2023:0046IMPORTANT2022-12-14
RHSA-2023:0046 — Important
- Red HatRHSA-2023:2257IMPORTANT2022-12-14
RHSA-2023:2257 — Important
- Red HatRHSA-2023:2830IMPORTANT2022-12-14
RHSA-2023:2830 — Important
- UbuntuUSN-5778-1MEDIUM
X.Org X Server vulnerabilities
- UbuntuUSN-5778-2MEDIUM
X.Org X Server vulnerabilities
Data Freshness Timeline
(refreshed 11× in last 7d / 44× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-23 02:15 UTCEG score recompute
- 2026-07-22 23:03 UTCEG score recompute
- 2026-07-22 14:06 UTCEPSS rescore
- 2026-07-21 15:23 UTCEPSS rescore
- 2026-07-21 15:23 UTCEPSS rescore
- 2026-07-20 17:05 UTCEPSS rescore
- 2026-07-19 14:29 UTCEPSS rescore
- 2026-07-19 02:27 UTCEPSS rescore
- 2026-07-19 02:27 UTCEPSS rescore
- 2026-07-18 10:03 UTCEPSS rescore
- 2026-07-18 10:03 UTCEPSS rescore
- 2026-07-15 16:56 UTCEPSS rescore
- 2026-07-15 16:56 UTCEPSS rescore
- 2026-07-15 01:58 UTCEPSS rescore
- 2026-07-13 22:28 UTCEPSS rescore
- 2026-07-13 06:11 UTCEPSS rescore
- 2026-07-13 05:37 UTCOSV refresh
- 2026-07-12 05:44 UTCEPSS rescore
- 2026-07-11 08:25 UTCEPSS rescore
- 2026-07-11 08:25 UTCEPSS rescore
- 2026-07-09 19:08 UTCEPSS rescore
- 2026-07-08 15:12 UTCEPSS rescore
- 2026-07-07 13:44 UTCEPSS rescore
- 2026-07-06 16:25 UTCEPSS rescore
- 2026-07-06 02:21 UTCEPSS rescore
Show 72 moreShow fewer
- 2026-07-05 02:28 UTCEPSS rescore
- 2026-07-04 06:29 UTCEPSS rescore
- 2026-07-02 16:58 UTCEPSS rescore
- 2026-07-01 15:04 UTCEPSS rescore
- 2026-06-30 23:20 UTCEPSS rescore
- 2026-06-30 23:20 UTCEPSS rescore
- 2026-06-29 14:04 UTCEPSS rescore
- 2026-06-29 14:04 UTCEPSS rescore
- 2026-06-28 14:06 UTCEPSS rescore
- 2026-06-28 04:54 UTCEPSS rescore
- 2026-06-28 04:54 UTCEPSS rescore
- 2026-06-27 03:07 UTCEPSS rescore
- 2026-06-27 03:07 UTCEPSS rescore
- 2026-06-25 13:48 UTCEPSS rescore
- 2026-06-25 13:48 UTCEPSS rescore
- 2026-06-24 17:31 UTCOSV refresh
- 2026-06-24 14:03 UTCEPSS rescore
- 2026-06-23 21:31 UTCEPSS rescore
- 2026-06-23 21:31 UTCEPSS rescore
- 2026-06-22 14:24 UTCEPSS rescore
- 2026-06-21 14:55 UTCEPSS rescore
- 2026-06-21 14:55 UTCEPSS rescore
- 2026-06-21 01:58 UTCEPSS rescore
- 2026-06-21 01:58 UTCEPSS rescore
- 2026-06-19 19:24 UTCEPSS rescore
- 2026-06-19 19:24 UTCEPSS rescore
- 2026-06-18 17:51 UTCEPSS rescore
- 2026-06-18 17:51 UTCEPSS rescore
- 2026-06-17 17:51 UTCEPSS rescore
- 2026-06-17 17:51 UTCEPSS rescore
- 2026-06-16 17:51 UTCEPSS rescore
- 2026-06-15 17:46 UTCEPSS rescore
- 2026-06-14 23:16 UTCEPSS rescore
- 2026-06-13 22:59 UTCEPSS rescore
- 2026-06-12 23:10 UTCEPSS rescore
- 2026-06-12 23:10 UTCEPSS rescore
- 2026-06-11 13:58 UTCEPSS rescore
- 2026-06-11 13:58 UTCEPSS rescore
- 2026-06-10 22:17 UTCEPSS rescore
- 2026-06-10 13:21 UTCEPSS rescore
- 2026-06-10 13:21 UTCEPSS rescore
- 2026-06-08 14:15 UTCEPSS rescore
- 2026-06-07 19:20 UTCOSV refresh
- 2026-06-07 15:23 UTCEPSS rescore
- 2026-06-07 15:23 UTCEPSS rescore
- 2026-06-06 13:46 UTCEPSS rescore
- 2026-06-06 13:46 UTCEPSS rescore
- 2026-06-06 13:46 UTCEPSS rescore
- 2026-06-05 22:46 UTCEPSS rescore
- 2026-06-05 22:46 UTCEPSS rescore
- 2026-06-05 06:09 UTCEPSS rescore
- 2026-06-05 06:09 UTCEPSS rescore
- 2026-06-04 13:11 UTCEPSS rescore
- 2026-06-02 20:12 UTCEPSS rescore
- 2026-06-02 20:11 UTCEPSS rescore
- 2026-06-01 13:50 UTCEPSS rescore
- 2026-06-01 13:50 UTCEPSS rescore
- 2026-05-31 22:29 UTCEPSS rescore
- 2026-05-31 22:29 UTCEPSS rescore
- 2026-05-31 00:15 UTCEPSS rescore
- 2026-05-31 00:15 UTCEPSS rescore
- 2026-05-29 13:43 UTCEPSS rescore
- 2026-05-28 13:43 UTCEPSS rescore
- 2026-05-28 13:43 UTCEPSS rescore
- 2026-05-27 13:39 UTCEPSS rescore
- 2026-05-27 13:39 UTCEPSS rescore
- 2026-05-26 13:43 UTCEPSS rescore
- 2026-05-26 13:43 UTCEPSS rescore
- 2026-05-26 13:43 UTCEPSS rescore
- 2026-05-23 09:26 UTCEG score recompute
- 2026-05-23 09:26 UTCVendor advisory
- 2026-05-23 09:26 UTCGHSA enrichment
Frequently asked(5)
What is CVE-2022-46340?
When was CVE-2022-46340 disclosed?
Is CVE-2022-46340 actively exploited?
What is the CVSS score of CVE-2022-46340?
How do I remediate CVE-2022-46340?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2022-46340
Is Your Infrastructure Affected by CVE-2022-46340?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.