Skip to content
Server Security Center
KEVhigh8.8

CVE-2021-30762: Apple iOS WebKit Use-After-Free

Apple iOS · listed in the CISA catalog of actively exploited vulnerabilities since 2021-11-03.

CVSS v3.1 (CVE record)
8.8
high
EPSS (exploit probability, 30 days)
11%
higher than 96% of all CVEs
Added to CISA KEV
2021-11-03
US federal due date 2021-11-17
Ubuntu priority
medium

CVE-2021-30762 explained

CVE-2021-30762 is a use-after-free flaw in WebKit, described by Apple for iOS and fixed there in iOS 12.5.4. Processing maliciously crafted web content may lead to arbitrary code execution. Apple is aware of a report that it may have been actively exploited, and CISA lists it in its Known Exploited Vulnerabilities catalog. Ubuntu ships several WebKit-based source packages that are tracked for this issue.

Impact

An attacker who gets a user to process maliciously crafted web content may execute arbitrary code. The attack works over the network, needs no privileges and has low complexity, but requires user interaction, such as opening a page or content with an affected WebKit engine. A successful attack can fully compromise confidentiality, integrity and availability within the affected application's context.

Who is affected

Ubuntu tracks qtwebkit-opensource-src, qtwebkit-source, webkit2gtk, webkitgtk and wpewebkit. webkit2gtk is fixed in the standard archive: 2.28.0-0ubuntu0.18.04.3 on Ubuntu 18.04 LTS and 2.28.0-1ubuntu2 on Ubuntu 20.04 LTS. No fixed version has been published for the other packages on those releases. Ubuntu 16.04 LTS (end of life) has no fixed version for any listed package. On Ubuntu 22.04 LTS and 24.04 LTS, no fixed version has been published for qtwebkit-opensource-src, nor for wpewebkit on 22.04 LTS.

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

Official description

A use after free issue was addressed with improved memory management. This issue is fixed in iOS 12.5.4. Processing maliciously crafted web content may lead to 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
    Affected
    • < 12.5.4
    Fixed in
    • 12.5.4

    Fixed versions corrected from the CNA description (record lists truncated bounds).

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. Check which of the listed WebKit source packages are installed on each host.
  2. On Ubuntu 18.04 LTS and 20.04 LTS, update webkit2gtk to the fixed version from the standard archive.
  3. Restart or relaunch applications that use WebKit so they load the updated libraries.
  4. Upgrade hosts running Ubuntu 16.04 LTS to a supported release.
  5. On 18.04 LTS and 20.04 LTS, consider Ubuntu Pro (ESM), since standard support has ended for those releases.
  6. Track the Ubuntu advisory for fixes to qtwebkit-opensource-src and wpewebkit.

Where no fixed version has been published, remove unneeded qtwebkit-opensource-src, qtwebkit-source, webkitgtk or wpewebkit packages. Avoid using applications built on them to open untrusted web content. Limit network exposure of such applications. Ubuntu 16.04 LTS is end of life and should be upgraded rather than waiting for a fix. On supported releases, watch the Ubuntu advisory for updates.

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/HT212548
  • 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-416 Use After Free

Questions about CVE-2021-30762

Is this vulnerability being exploited?
Apple is aware of a report that the issue may have been actively exploited. CISA added it to its Known Exploited Vulnerabilities catalog on 2021-11-03. Whether it has been used in ransomware is listed as unknown.
Do I need Ubuntu Pro for the webkit2gtk fix on 18.04 or 20.04?
The fixed webkit2gtk versions for Ubuntu 18.04 LTS and 20.04 LTS are listed in the standard archive. Standard support for those releases has ended, so other future fixes there may only arrive through Ubuntu Pro (ESM).
Why is an iOS vulnerability listed for Ubuntu?
The flaw is in WebKit, the web content engine. Ubuntu ships WebKit-based packages such as webkit2gtk, wpewebkit and qtwebkit-opensource-src, so they are tracked for this issue.

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.