# CVE-2022-46340: A vulnerability was found in X.Org.

- Severity: High 8.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.70%, higher than 86% of CVEs (2026-12-01)
- Published: 2022-12-14T00:00:00.000Z
- Modified: 2026-06-17T05:11:33.763Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: redhat

## Description

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.

(As written by CVE List.)

## Affected

- xorg-x11-server: xorg-x11-server-1.20.4
- x.org x_server: 1.20.4
- fedoraproject fedora: 36; 37
- debian debian_linux: 11.0

## Every score

- CISA-ADP: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://access.redhat.com/security/cve/CVE-2022-46340> (third-party-advisory)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2151755> (issue-tracking, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DXDF2O5PPLE3SVAJJYUOSAD5QZ4TWQ2G/> (mailing-list, third-party-advisory, vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5NELB7YDWRABYYBG4UPTHRBDTKJRV5M2/> (mailing-list, third-party-advisory, vendor-advisory)
- <https://www.debian.org/security/2022/dsa-5304> (third-party-advisory, vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RWTH3SNJ3GKYDSN7I3QDGWYEPSMWU6EP/> (mailing-list, third-party-advisory, vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Z67QC4C3I2FI2WRFIUPEHKC36J362MLA/> (mailing-list, third-party-advisory, vendor-advisory)
- <https://security.gentoo.org/glsa/202305-30>

## Sources

- CVE List: [CVE-2022-46340](https://www.cve.org/CVERecord?id=CVE-2022-46340), CVE Terms of Use, modified 2025-04-22
- NVD: [CVE-2022-46340](https://nvd.nist.gov/vuln/detail/CVE-2022-46340), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-46340 · Whole record: https://cve.day/CVE-2022-46340.json · Rebuilt by cve.day 2026-11-25T22:58:17.543Z
