CVE-2019-12439: Input Validation

Published Apr 4, 2019
·
Updated

bubblewrap.c in Bubblewrap before 0.3.3 misuses temporary directories in /tmp as a mount point. In some particular configurations (related to XDGRUNTIMEDIR), a local attacker may abuse this flaw to prevent other users from executing bubblewrap or potentially execute code.

Other sources

Is /run/user/<UID>/.bubblewrap/ doesn't exist and couldn't be created (as was the case on my system), bubblewrap falls back to /tmp/.bubblewrap-<UID>/. Local attacker could exploit this to prevent other users from running bubblewrap, for example:

getent passwd | cut -d: -f3 | xargs printf '/tmp/.bubblewrap-%d\n' | xargs touch

But it gets worse, because bubblewrap is happy to use existing /tmp/.bubblewrap-<UID>/, even when the directory is owned by some else. In the worst case, this could be exploited by a local user to execute arbitrary code in the container. (Though I couldn't find any way to exploit this without disabling protectedsymlinks.)

Upstream issue:

https://github.com/projectatomic/bubblewrap/issues/304

— Red Hat

Affected Software

3 affected componentsFixes available
projectatomic bubblewrap<0.3.3
redhat/bubblewrap<0.3.3
0.3.3
debian/bubblewrap
0.8.0-2+deb12u10.12.0-1~deb13u10.12.0-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/bubblewrap to a version that resolves this vulnerability.

    Fixed in 0.3.3
  2. Upgrade

    Upgrade debian/bubblewrap to a version that resolves this vulnerability.

    Fixed in 0.8.0-2+deb12u1Fixed in 0.12.0-1~deb13u1Fixed in 0.12.0-1
  3. Upgrade

    Upgrade bubblewrap to a version that resolves this vulnerability.

    Fixed in 0.3.3
  4. Compensating control

    Ensure per-user runtime directory exists and is accessible: create /run/user/<UID>/.bubblewrap/ if it does not exist (e.g., on systems using XDG_RUNTIME_DIR) so bubblewrap does not fall back to /tmp/.bubblewrap-<UID>/.

Event History

Apr 4, 2019
Data Sourced
via Red Hat·12:11 AM
DescriptionSeverityAffected Software
May 29, 2019
CVE Published
via MITRE·02:42 PM
Data Sourced
via MITRE·02:42 PM
DescriptionSeverity
Data Sourced
via NVD·03:29 PM
RemedyDescriptionSeverityWeaknessAffected Software
Sep 18, 2026
Data Sourced
via Ubuntu·08:35 PM
RemedyDescriptionSeverityAffected Software
Data Sourced
via Debian·08:36 PM
DescriptionAffected Software
Data Sourced
via Launchpad·08:36 PM
Description

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203