CVE-2021-1870: Apple iOS, iPadOS, and macOS WebKit Remote Code Execution
Apple iOS, iPadOS, and macOS · listed in the CISA catalog of actively exploited vulnerabilities since 2021-11-03.
- CVSS v3.1 (CVE record)
- 9.8
- critical
- EPSS (exploit probability, 30 days)
- 7.7%
- higher than 94.7% of all CVEs
- Added to CISA KEV
- 2021-11-03
- US federal due date 2021-11-17
- Ubuntu priority
- medium
CVE-2021-1870 explained
CVE-2021-1870 is a logic issue in Apple's WebKit, fixed by Apple with improved restrictions in iOS, iPadOS and macOS updates. A remote attacker may be able to cause arbitrary code execution. Apple is aware of a report that it may have been actively exploited, and CISA lists it as known exploited. Ubuntu tracks several WebKit-based source packages for this issue.
Impact
A remote attacker may be able to execute arbitrary code. According to the CVSS components, the attack works over the network with low complexity, needs no privileges and no user interaction. A successful attack can fully compromise confidentiality, integrity and availability of the affected component. Apple is aware of a report that this issue may have been actively exploited. Whether it has been used in ransomware campaigns is unknown.
Who is affected
On Ubuntu 18.04 LTS, webkit2gtk is fixed in 2.30.6-0ubuntu0.18.04.1. On Ubuntu 20.04 LTS, webkit2gtk is fixed in 2.30.6-0ubuntu0.20.04.1. No fixed version is published for qtwebkit-opensource-src, qtwebkit-source, webkitgtk or wpewebkit on the releases where they are listed, including supported Ubuntu 22.04 LTS and Ubuntu 24.04 LTS. Ubuntu 16.04 LTS is end of life and has no fixed version for any listed package.
Written with AI from the data on this page and checked against it automatically.
Official description
A logic issue was addressed with improved restrictions.
This issue is fixed in macOS Big Sur 11.2, Security Update 2021-001 Catalina, Security Update 2021-001 Mojave, iOS 14.4 and iPadOS 14.4. A remote attacker may be able to cause arbitrary code execution. Apple is aware of a report that this issue may have been actively exploited..
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 iPadOSAffectedFixed in
- < 14.4
- 14.4
- Apple macOSAffectedFixed in
- < 11.2
- 11.2
| Product | Affected | Fixed in |
|---|---|---|
| Apple iOS and iPadOS |
|
|
| Apple macOS |
|
|
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.
Ubuntu 24.04 LTS·qtwebkit-opensource-src
Status: no fixed version published · Ubuntu tracker
Ubuntu 22.04 LTS·qtwebkit-opensource-src
Status: no fixed version published · Ubuntu tracker
Ubuntu 22.04 LTS·wpewebkit
Status: no fixed version published · Ubuntu tracker
Ubuntu 20.04 LTS·qtwebkit-opensource-src
standard support ended – later fixes only via Ubuntu Pro
Status: no fixed version published · Ubuntu tracker
Ubuntu 20.04 LTS·webkit2gtk
Fixed: 2.30.6-0ubuntu0.20.04.1
Ubuntu 20.04 LTS·wpewebkit
standard support ended – later fixes only via Ubuntu Pro
Status: no fixed version published · Ubuntu tracker
Ubuntu 18.04 LTS·qtwebkit-opensource-src
standard support ended – later fixes only via Ubuntu Pro
Status: no fixed version published · Ubuntu tracker
Ubuntu 18.04 LTS·qtwebkit-source
standard support ended – later fixes only via Ubuntu Pro
Status: no fixed version published · Ubuntu tracker
Ubuntu 18.04 LTS·webkit2gtk
Fixed: 2.30.6-0ubuntu0.18.04.1
Ubuntu 18.04 LTS·webkitgtk
standard support ended – later fixes only via Ubuntu Pro
Status: no fixed version published · Ubuntu tracker
Ubuntu 16.04 LTS·qtwebkit-opensource-src
ESM ended
Status: no fixed version published · Ubuntu tracker
Ubuntu 16.04 LTS·qtwebkit-source
ESM ended
Status: no fixed version published · Ubuntu tracker
Ubuntu 16.04 LTS·webkit2gtk
ESM ended
Status: no fixed version published · Ubuntu tracker
Ubuntu 16.04 LTS·webkitgtk
ESM ended
Status: no fixed version published · Ubuntu tracker
What to do
- On Ubuntu 18.04 LTS and 20.04 LTS, update
webkit2gtkto the fixed version for your release or later. - Restart applications that use WebKitGTK so they load the updated library.
- Ubuntu 18.04 LTS and 20.04 LTS are out of standard support; enable Ubuntu Pro (ESM) to keep receiving security fixes.
- Upgrade Ubuntu 16.04 LTS systems to a supported release, because it is end of life.
- Check whether
qtwebkit-opensource-src,qtwebkit-source,webkitgtkorwpewebkitbinaries are installed, and remove them if not needed.
For qtwebkit-opensource-src, qtwebkit-source, webkitgtk and wpewebkit, no fixed version is published. Remove these packages where they are not needed. Avoid using applications built on them to open untrusted web content, and limit their network exposure. On supported releases, watch for a distribution update. Upgrade Ubuntu 16.04 LTS systems, which are end of life, to a supported release.
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" ;; esac3. 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
- Yes – attackers can automate it at scale
- Technical impact
- Total – full control of the component or total information disclosure
Weakness: CWE-1173
Questions about CVE-2021-1870
- Is this vulnerability being exploited?
- Apple is aware of a report that this issue may have been actively exploited. CISA added CVE-2021-1870 to its Known Exploited Vulnerabilities catalog on 2021-11-03. Known ransomware use is listed as unknown.
- Why does an Apple vulnerability affect Ubuntu?
- The flaw is in WebKit. Ubuntu ships WebKit-based source packages such as
webkit2gtk,webkitgtk,wpewebkitand the QtWebKit packages, so Ubuntu tracks the issue for them. - Which Ubuntu packages have a fix?
- Only
webkit2gtkon Ubuntu 18.04 LTS (2.30.6-0ubuntu0.18.04.1) and Ubuntu 20.04 LTS (2.30.6-0ubuntu0.20.04.1). The other listed packages have no fixed version published.
Written with AI from the data on this page and checked against it automatically.
References
Other advisories
Trackers and catalogs
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.