Skip to content
Server Security Center
KEVhigh8.8

CVE-2021-1789: Apple Multiple Products Type Confusion

Apple Multiple Products · listed in the CISA catalog of actively exploited vulnerabilities since 2022-05-04.

CVSS v3.1 (CVE record)
8.8
high
EPSS (exploit probability, 30 days)
14%
higher than 96.6% of all CVEs
Added to CISA KEV
2022-05-04
US federal due date 2022-05-25
Ubuntu priority
medium

CVE-2021-1789 explained

CVE-2021-1789 is a type confusion issue in multiple Apple products that was addressed with improved state handling. Processing maliciously crafted web content may lead to arbitrary code execution. It is listed in the CISA Known Exploited Vulnerabilities catalog, and several Ubuntu source packages are tracked as affected.

Impact

An attacker who gets a user to process maliciously crafted web content may run arbitrary code. The attack works over the network, needs no privileges and has low complexity, but requires user interaction. Successful exploitation can fully compromise confidentiality, integrity and availability within the affected application's context. CISA lists the flaw as known to be exploited. Known ransomware use is marked unknown.

Who is affected

Ubuntu 16.04 LTS (end of life): qtwebkit-opensource-src, qtwebkit-source, webkit2gtk and webkitgtk have no fixed version. Ubuntu 18.04 LTS: webkit2gtk is fixed in 2.30.6-0ubuntu0.18.04.1; qtwebkit-opensource-src, qtwebkit-source and webkitgtk are unfixed. Ubuntu 20.04 LTS: webkit2gtk is fixed in 2.30.6-0ubuntu0.20.04.1; qtwebkit-opensource-src and wpewebkit are unfixed. Ubuntu 22.04 LTS: qtwebkit-opensource-src and wpewebkit are unfixed. Ubuntu 24.04 LTS: qtwebkit-opensource-src is unfixed.

Written with AI from the data on this page and checked against it automatically.

Official description

A type confusion issue was addressed with improved state handling.

This issue is fixed in macOS Big Sur 11.2, Security Update 2021-001 Catalina, Security Update 2021-001 Mojave, tvOS 14.4, watchOS 7.3, iOS 14.4 and iPadOS 14.4, Safari 14.0.3. Processing maliciously crafted web content may lead to arbitrary code execution.

CISA required action: Apply updates per vendor instructions.

CISA notes

Upstream versions (CVE record)

From the CVE record published by the vendor or CVE numbering authority.

  • Apple iOS and iPadOS
    Affected
    • < 14.4
    Fixed in
    • 14.4
  • Apple macOS
    Affected
    • < 7.3
    • < 11.2
    • < 14.0
    • < 14.4
    Fixed in
    • 7.3
    • 11.2
    • 14.0
    • 14.4

Ubuntu and Debian releases

A server is vulnerable if it has a package built from the listed source package installed in a version lower than the fixed version for its release.

What to do

  1. On Ubuntu 18.04 LTS and 20.04 LTS, update webkit2gtk to the fixed version listed for your release.
  2. Restart applications that use the updated libraries so they stop running old code.
  3. Identify installed packages built from unfixed source packages and remove those you do not need.
  4. Upgrade Ubuntu 16.04 LTS systems to a supported release.
  5. For 18.04 LTS and 20.04 LTS, consider Ubuntu Pro (ESM) to keep receiving security fixes.
  6. Follow the Ubuntu security notices for fixes to the remaining packages.

Where no fixed version is published, remove the affected packages if they are not needed. Otherwise avoid using them to process untrusted web content and limit their network exposure. Ubuntu 16.04 LTS is end of life and should be upgraded to a supported release. On supported releases, watch the Ubuntu security notices for fixed packages.

Written with AI from the data on this page and checked against it automatically.

Check and fix on a server

Run on each Ubuntu or Debian server. Replace webkit2gtk with the source package from the table above (this CVE affects 5 source packages).

1. Show installed packages built from the source package, with their versions

dpkg-query -W -f='${binary:Package} ${Version} ${source:Package}\n' | awk '$3=="webkit2gtk"'

2. Compare each installed version with the fixed version for your release from the table (releases with a fixed version only)

I=INSTALLED_VERSION; F=FIXED_VERSION   # replace both
dpkg --compare-versions "$I" lt "$F"; case $? in 0) echo vulnerable ;; 1) echo "fixed or newer" ;; *) echo "check the versions" ;; esac

3. Install the fix

sudo apt update && sudo apt install --only-upgrade $(dpkg-query -W -f='${binary:Package} ${source:Package}\n' | awk '$2=="webkit2gtk"{print $1}')

Services keep running the old code until they are restarted – restart the affected service or check with needrestart.

No fixed version yet on 2 releases

Ubuntu 24.04 LTS, Ubuntu 22.04 LTS: no fixed version of the affected packages yet, so every installed version there is affected. Until a fix is published:

  • Follow the vendor's advisory for a mitigation or patch: support.apple.com/en-us/HT212147
  • If the server does not need the package, remove it, or replace it with a maintained alternative.
  • Restrict exposure: keep the affected service off the internet, limit access with a firewall or VPN, and turn off the vulnerable feature where you can.

This page updates automatically when Ubuntu or Debian publish a fix.

Ubuntu 16.04 LTS has reached end of life and no longer gets regular security fixes – upgrade to a supported release.

CISA's assessment (SSVC)

Exploitation
Exploited in the wild
Automatable
No – each attack needs manual steps
Technical impact
Total – full control of the component or total information disclosure

Weakness: CWE-843 Access of Resource Using Incompatible Type ('Type Confusion')

Questions about CVE-2021-1789

Is this vulnerability exploited in practice?
Yes. CISA added CVE-2021-1789 to its Known Exploited Vulnerabilities catalog on 2022-05-04, with a US federal due date of 2022-05-25. Whether it has been used in ransomware campaigns is listed as unknown.
Is my Ubuntu 22.04 LTS or 24.04 LTS system fixed?
Not yet. No fixed version has been published for qtwebkit-opensource-src and wpewebkit on 22.04 LTS, or for qtwebkit-opensource-src on 24.04 LTS. Remove these packages if unused, or limit their use with untrusted web content.
Do I need to restart anything after updating webkit2gtk?
Yes. Running applications keep using the old library code until they are restarted. Restart any applications that use the updated packages after installing the fix.

Written with AI from the data on this page and checked against it automatically.

References

Data: CISA Known Exploited Vulnerabilities (public domain) · CVE Program records incl. CISA ADP enrichment · OSV.dev (CC BY 4.0) incl. Ubuntu and Debian security data · FIRST EPSS · endoflife.date. Updated automatically – facts last changed 2026-11-21. Always confirm with the vendor's or distribution's advisory before patching.