Skip to content
Server Security Center
KEVhigh8.8

CVE-2021-30858: Apple iOS, iPadOS, macOS Use-After-Free

Apple iOS, iPadOS, and macOS · 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)
13%
higher than 96.5% of all CVEs
Added to CISA KEV
2021-11-03
US federal due date 2021-11-17
Ubuntu priority
medium

CVE-2021-30858 explained

CVE-2021-30858 is a use-after-free flaw in web content processing, first fixed by Apple in iOS 14.8, iPadOS 14.8 and macOS Big Sur 11.6. On Ubuntu it is tracked in WebKit-based source packages. 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 as known exploited.

Impact

An attacker who gets a user to open or 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. A successful attack can fully compromise confidentiality, integrity and availability within the affected application's context. Any application that renders untrusted web content with a vulnerable WebKit library is exposed.

Who is affected

Fixed versions exist only for webkit2gtk: 2.32.4-0ubuntu0.18.04.1 on Ubuntu 18.04 LTS and 2.32.4-0ubuntu0.20.04.1 on Ubuntu 20.04 LTS. Both releases are past standard support. No fixed version is published for qtwebkit-opensource-src, qtwebkit-source or webkitgtk on 18.04, nor for qtwebkit-opensource-src and wpewebkit on 20.04 and 22.04. On 24.04, qtwebkit-opensource-src has no fix. 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 use after free issue was addressed with improved memory management. This issue is fixed in iOS 14.8 and iPadOS 14.8, macOS Big Sur 11.6. 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 macOS
    Affected
    • < 11.6
    Fixed in
    • 11.6
  • Apple iOS
    Affected
    • < 14.8
    Fixed in
    • 14.8

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, using Ubuntu Pro (ESM) where required.
  2. Restart applications that use the WebKit libraries so they load the updated code.
  3. Upgrade Ubuntu 16.04 LTS systems to a supported release.
  4. Check whether qtwebkit-opensource-src, qtwebkit-source, webkitgtk or wpewebkit packages are installed and whether they are needed.
  5. Track the Ubuntu advisory and install fixes for the remaining packages once published.

Where no fix is published, remove unneeded packages built from qtwebkit-opensource-src, qtwebkit-source, webkitgtk or wpewebkit. Avoid using applications built on them to open untrusted web content. Prefer software that uses the patched webkit2gtk where possible. Ubuntu 16.04 LTS is end of life; upgrade those systems rather than waiting.

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/HT212804
  • 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-30858

Why does an Apple CVE affect Ubuntu?
The flaw lies in WebKit web content processing. Ubuntu ships WebKit-based source packages such as webkit2gtk, qtwebkit-opensource-src and wpewebkit, so it tracks the issue for those packages.
Is this vulnerability exploited in practice?
Apple is aware of a report that it may have been actively exploited. CISA added it to its Known Exploited Vulnerabilities catalog on 2021-11-03. Known ransomware use is listed as unknown.
Do I need to reboot after updating webkit2gtk?
A reboot is not strictly required, but applications that use the library keep running old code until restarted. Restart them after the update.

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.