VDB

CVE-2022-46340

CVE-2022-46340 PUBLISHED CVSS 8.8 HIGH

Reported by redhat · Published December 14, 2022

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
xorg-x11-server-XephyrAmazon Linux1.20.14-12.amzn2023.0.2, 1.20.4-22.amzn2
xorg-x11-server-develAmazon Linux1.20.14-12.amzn2023.0.2
xorg-x11-server-XvfbAmazon Linux1.20.4-22.amzn2
xorg-x11-server-XdmxAmazon Linux1.20.4-22.amzn2
xorg-x11-server-sourceAmazon Linux1.20.14-12.amzn2023.0.2
xorg-x11-server-XorgAmazon Linux1.20.4-22.amzn2
xorg-x11-server-XnestAmazon Linux1.20.14-12.amzn2023.0.2, 1.20.4-22.amzn2
xorg-x11-server-commonAmazon Linux1.20.14-12.amzn2023.0.2
xorg-x11-server-XwaylandAmazon Linux1.20.4-22.amzn2

Risk scores

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

Affected products

VendorProductVersions
n/axorg-x11-serverxorg-x11-server-1.20.4
amazon:2xorg-x11-server-Xephyr0
amazon:2023xorg-x11-server-Xephyr0
amazon:2023xorg-x11-server-devel0
amazon:2xorg-x11-server-Xvfb0
amazon:2xorg-x11-server-Xdmx0
amazon:2023xorg-x11-server-source0
amazon:2xorg-x11-server-Xorg0
amazon:2023xorg-x11-server-Xnest0
amazon:2023xorg-x11-server-common0
amazon:2xorg-x11-server-Xnest0
amazon:2xorg-x11-server-Xwayland0
n/axorg-x11-server1.20.4
alpinexorg-server0
amazon:2xorg-x11-server-source0
amazon:2023xorg-x11-server-Xorg0
amazon:2023xorg-x11-server-Xvfb0
amazon:2023xorg-x11-server-Xdmx0
alpinexwayland0
amazon:2xorg-x11-server-common0

…and 1 more

Timeline

  • Dec 13, 2022 CVE Published
  • Dec 15, 2022 EPSS Score (30 in total, the first dated here)
  • Mar 10, 2026 Distribution Patch (12 in total, the first dated here)
  • Mar 10, 2026 Security Advisory (14 in total, the first dated here)
  • Jun 11, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2022-46340
vulnetix vdb fixes CVE-2022-46340

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-46340/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›