CVE-2021-42762
Medium · 5.3CVSS
5.3
EPSS
0.5%
Published
Oct 20, 2021
CISA due date
—
Cloudanix analysis
A contained web-process component could briefly trick other system parts into granting it slightly more access than intended.
- Exploitation
- Local Privilege
- Attacker needs
- Low Privilege
- Complexity
- Low
- Impact
- Privilege Gain
- Component
- Web Framework
- Class
- Authorization Bypass
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Allows a sandboxed process to abuse VFS syscalls that manipulate its filesystem namespace, tricking host processes that create UNIX sockets into treating the sandboxed process as unconfined while remaining otherwise restricted.
Why it matters to the business
Limited risk of unauthorized interaction with host services that mount sockets inside the WebKit sandbox, potentially exposing minor confidentiality or integrity issues in affected desktop or embedded web-rendering environments.
How an attack unfolds
An attacker with initial code execution inside a WebKit sandboxed process invokes VFS namespace manipulation syscalls to deceive host UNIX-socket services, enabling a narrow set of actions outside the intended sandbox boundaries.
How to fix it
Update WebKitGTK and WPE WebKit to version 2.34.1 or later; ensure dependent glib installations include commit 080ce501406be1bf821b39ed40c43aeffeb1fb2f.
How to confirm the fix worked
Confirm installed WebKitGTK/WPE WebKit packages report version 2.34.1 or newer and verify glib source contains the referenced commit hash via package manager or build logs.
Typical attack path
- Achieve code execution inside a WebKitGTK or WPE WebKit sandboxed process
- Invoke VFS syscalls to alter the process filesystem namespace
- Trigger host services that create or access UNIX sockets mounted inside the sandbox
- Perform limited operations that the host incorrectly believes originate from an unsandboxed context
How to detect it
Review system audit logs and strace-style traces for unusual VFS namespace or mount-related syscalls originating from WebKit renderer or WebProcess binaries; correlate with socket creation events on host services.
What your security team should do
- Prioritize upgrade of WebKitGTK and WPE WebKit to 2.34.1+ across all affected systems
- Audit any custom host services that expose UNIX sockets inside WebKit sandboxes
- Apply the glib commit fix in environments that build glib from source
- Review sandbox policy configurations to reduce reliance on namespace assumptions
The record
BubblewrapLauncher.cpp in WebKitGTK and WPE WebKit before 2.34.1 allows a limited sandbox bypass that allows a sandboxed process to trick host processes into thinking the sandboxed process is not confined by the sandbox, by abusing VFS syscalls that manipulate its filesystem namespace. The impact is limited to host services that create UNIX sockets that WebKit mounts inside its sandbox, and the sandboxed process remains otherwise confined. NOTE: this is similar to CVE-2021-41133.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:10 | webkit2gtk | 0 | 2.34.1-1~deb10u1 |
| Debian:11 | flatpak | 0 | 1.10.5-0+deb11u1 |
| Debian:11 | webkit2gtk | 0 | 2.34.1-1~deb11u1 |
| Debian:11 | wpewebkit | 0 | 2.34.1-1~deb11u1 |
| Debian:12 | flatpak | 0 | 1.12.1-1 |
| Debian:12 | webkit2gtk | 0 | 2.34.1-1 |
| Debian:12 | wpewebkit | 0 | 2.34.1-1 |
| Debian:13 | flatpak | 0 | 1.12.1-1 |
| Debian:13 | webkit2gtk | 0 | 2.34.1-1 |
| Debian:13 | wpewebkit | 0 | 2.34.1-1 |
| Mageia:8 | webkit2 | 0 | 2.34.1-1.mga8 |
| SUSE:Enterprise Storage 6 | webkit2gtk3 | 0 | 2.34.1-3.87.1 |
| SUSE:HPE Helion OpenStack 8 | webkit2gtk3 | 0 | 2.32.4-2.74.5 |
| SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS | webkit2gtk3 | 0 | 2.34.1-3.87.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS | webkit2gtk3 | 0 | 2.34.1-3.87.1 |
| SUSE:Linux Enterprise High Performance Computing 15-ESPOS | webkit2gtk3 | 0 | 2.34.1-3.87.1 |
| SUSE:Linux Enterprise High Performance Computing 15-LTSS | webkit2gtk3 | 0 | 2.34.1-3.87.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP2 | webkit2gtk3 | 0 | 2.32.4-15.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP3 | webkit2gtk3 | 0 | 2.32.4-15.1 |
| SUSE:Linux Enterprise Module for Desktop Applications 15 SP2 | webkit2gtk3 | 0 | 2.32.4-15.1 |
| SUSE:Linux Enterprise Module for Desktop Applications 15 SP3 | webkit2gtk3 | 0 | 2.32.4-15.1 |
| SUSE:Linux Enterprise Server 12 SP2-BCL | webkit2gtk3 | 0 | 2.32.4-2.74.5 |
| SUSE:Linux Enterprise Server 12 SP3-BCL | webkit2gtk3 | 0 | 2.32.4-2.74.5 |
| SUSE:Linux Enterprise Server 12 SP3-LTSS | webkit2gtk3 | 0 | 2.32.4-2.74.5 |
| SUSE:Linux Enterprise Server 12 SP4-LTSS | webkit2gtk3 | 0 | 2.32.4-2.74.5 |
| SUSE:Linux Enterprise Server 12 SP5 | webkit2gtk3 | 0 | 2.32.4-2.74.5 |
| SUSE:Linux Enterprise Server 15 SP1-BCL | webkit2gtk3 | 0 | 2.34.1-3.87.1 |
| SUSE:Linux Enterprise Server 15 SP1-LTSS | webkit2gtk3 | 0 | 2.34.1-3.87.1 |
| SUSE:Linux Enterprise Server 15-LTSS | webkit2gtk3 | 0 | 2.34.1-3.87.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP3 | webkit2gtk3 | 0 | 2.32.4-2.74.5 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP4 | webkit2gtk3 | 0 | 2.32.4-2.74.5 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP5 | webkit2gtk3 | 0 | 2.32.4-2.74.5 |
| SUSE:Linux Enterprise Server for SAP Applications 15 | webkit2gtk3 | 0 | 2.34.1-3.87.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP1 | webkit2gtk3 | 0 | 2.34.1-3.87.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP5 | webkit2gtk3 | 0 | 2.32.4-2.74.5 |
| SUSE:OpenStack Cloud 8 | webkit2gtk3 | 0 | 2.32.4-2.74.5 |
| SUSE:OpenStack Cloud 9 | webkit2gtk3 | 0 | 2.32.4-2.74.5 |
| SUSE:OpenStack Cloud Crowbar 8 | webkit2gtk3 | 0 | 2.32.4-2.74.5 |
| SUSE:OpenStack Cloud Crowbar 9 | webkit2gtk3 | 0 | 2.32.4-2.74.5 |
| Ubuntu:16.04:LTS | qtwebkit-opensource-src | 0 | No fix |
| Ubuntu:16.04:LTS | qtwebkit-source | 0 | No fix |
| Ubuntu:16.04:LTS | webkit2gtk | 0 | No fix |
| Ubuntu:16.04:LTS | webkitgtk | 0 | No fix |
| Ubuntu:18.04:LTS | flatpak | 0 | 1.0.9-0ubuntu0.4 |
| Ubuntu:18.04:LTS | qtwebkit-opensource-src | 0 | No fix |
| Ubuntu:18.04:LTS | qtwebkit-source | 0 | No fix |
| Ubuntu:18.04:LTS | webkitgtk | 0 | No fix |
| Ubuntu:20.04:LTS | flatpak | 0 | 1.6.5-0ubuntu0.4 |
| Ubuntu:20.04:LTS | qtwebkit-opensource-src | 0 | No fix |
| Ubuntu:20.04:LTS | webkit2gtk | 0 | 2.34.1-0ubuntu0.20.04.1 |
| Ubuntu:20.04:LTS | wpewebkit | 0 | No fix |
| Ubuntu:22.04:LTS | flatpak | 0 | 1.12.2-1 |
| Ubuntu:22.04:LTS | qtwebkit-opensource-src | 0 | No fix |
| Ubuntu:22.04:LTS | webkit2gtk | 0 | 2.34.1-1ubuntu1 |
| Ubuntu:22.04:LTS | wpewebkit | 0 | No fix |
| Ubuntu:24.04:LTS | qtwebkit-opensource-src | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | qtwebkit-opensource-src | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | qtwebkit-source | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | webkit2gtk | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | webkitgtk | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | qtwebkit-opensource-src | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | qtwebkit-source | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | webkitgtk | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | qtwebkit-opensource-src | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | wpewebkit | 0 | No fix |
| Ubuntu:Pro:22.04:LTS | qtwebkit-opensource-src | 0 | No fix |
| Ubuntu:Pro:22.04:LTS | wpewebkit | 0 | No fix |
| Ubuntu:Pro:24.04:LTS | qtwebkit-opensource-src | 0 | No fix |
| openSUSE:Leap 15.2 | webkit2gtk3 | 0 | 2.32.4-lp152.2.22.1 |
| openSUSE:Leap 15.3 | webkit2gtk3 | 0 | 2.32.4-15.1 |
Related vulnerabilities
- CVE-2024-27834 The issue was addressed with improved checks. Also affects webkit2gtk
- CVE-2024-23280 An injection issue was addressed with improved validation. Also affects webkit2gtk
- CVE-2024-23284 A logic issue was addressed with improved state management. Also affects webkit2gtk
- CVE-2024-23263 A logic issue was addressed with improved validation. Also affects webkit2gtk
- CVE-2024-23254 The issue was addressed with improved UI handling. Also affects webkit2gtk
- CVE-2024-23213 The issue was addressed with improved memory handling. Also affects webkit2gtk
- CVE-2024-23222 A type confusion issue was addressed with improved checks. Also affects webkit2gtk
- CVE-2024-23206 An access issue was addressed with improved access restrictions. Also affects webkit2gtk