guestfs-security(1) Virtualization Support guestfs-security(1) (NAME) guestfs-security - libguestfs (DESCRIPTION) libguestfs . (REPORTING SECURITY PROBLEMS) (Red Hat) : https://access.redhat.com/security/team/contact ( << (BUGS)>> ) : (https://lists.libguestfs.org) . (GENERAL ISSUES) (Security of mounting filesystems) (mount) ( loopback kpartx). (VFS) . . () . VFS ( ) . (root) ( ) . (https://lwn.net/Articles/538898). libguestfs : untrusted filesystem -------------------------------------- appliance kernel -------------------------------------- qemu process running as non-root -------------------------------------- sVirt [if using libvirt + SELinux] -------------------------------------- host kernel qemu (non-root) . qemu ( qemu) libguestfs root . libvirt SELinux sVirt qemu . . ( "guestfs_mount_vfs" guestfs(3) ). (General security considerations) (download) ( "guestfs_download" guestfs(3) ). . : o ( ) o o o o o (homoglyphs) . (Protocol security) RFC 4506 (XDR) . libguestfs . (Inspection security) ( "INSPECTION" guestfs(3) ) . (escape) ( HTML ). ( ). (hostname) /etc/sysconfig/network . : Augeas ( ) hivex ( ). (DoS) . (Running untrusted guest commands) . (CPU) qemu . "RUNNING COMMANDS" guestfs(3) . LIBGUESTFS (HISTORICAL SECURITY ISSUES IN LIBGUESTFS) CVE-2010-3851 https://bugzilla.redhat.com/642934 qemu . (raw) . qcow2 . Qemu raw . . ( libguestfs ) qemu qcow2 . qcow2 ( << >> backing disk ). qcow2 . ( "/etc/passwd") . <<>> (holes) qcow2 . libguestfs : 1. . 2. ( "RUNNING COMMANDS" guestfs(3) ). ( "format" "guestfs_add_drive_opts" guestfs(3)). raw . ( "DISK IMAGE FORMATS" guestfs(3) ). libvirt "guestfs_add_domain" guestfs(3) libvirt . libguestfs --format . CVE-2011-4127 https://bugzilla.redhat.com/752375 . libguestfs 1.16 . CVE-2012-2690 https://bugzilla.redhat.com/831117 virt-edit "edit" guestfish . /etc/shadow (world-readable) . libguestfs 1.16 . CVE-2013-2124 https://bugzilla.redhat.com/968306 (double- free) C ( ). libguestfs : libguestfs >= 1.20.8 >= 1.22.2 >= 1.23.2. CVE-2013-4419 https://bugzilla.redhat.com/1016960 --remote --listen guestfish(1) guestfish (/tmp/.guestfish-$UID/socket-$PID). . (/tmp/.guestfish-$UID) . guestfish . libguestfs : libguestfs >= 1.20.12 >= 1.22.7 >= 1.24. btrfs btrfs libguestfs ( ) . (NULL pointer dereference) . d70ceb4cbea165c960710576efac5a5716055486 . libguestfs >= 1.26.0 >= 1.24.6 >= 1.22.8 RHEL >= 7.0 . libguestfs . CVE-2014-0191 libguestfs libxml2 XML libvirt . XML . XML CPU . XML libvirt ( libvirt) . libguestfs >= 1.27.9 >= 1.26.2 >= 1.24.9 >= 1.22.10 >= 1.20.13 . (Shellshock bash CVE-2014-6271) bash libguestfs . : https://www.redhat.com/archives/libguestfs/2014-September/msg00252.html CVE-2014-8484 CVE-2014-8485 binutils strings(1) "guestfs_strings" guestfs(3) "guestfs_strings_e" guestfs(3) libguestfs . strings ( libguestfs). libguestfs >= 1.29.5 >= 1.28.3 libguestfs -a "strings" BFD . CVE-2015-5745 https://bugzilla.redhat.com/show_bug.cgi?id=1251157 libguestfs virtio-serial ( ) qemu . : o libguestfs ( "guestfs_sh" guestfs(3) ) o () . sVirt qemu . .ssh .ssh/authorized_keys https://bugzilla.redhat.com/1260778 virt-customize(1) virt-sysprep(1) virt-builder(1) --ssh-inject SSH . ~user/.ssh ~user/.ssh/authorized_keys . libguestfs < 1.31.5 libguestfs < 1.30.2 0755 0644 . ( ~user/.ssh) OpenSSH . libguestfs 0700 0600 . CVE-2015-8869 https://bugzilla.redhat.com/CVE-2015-8869 OCaml virt OCaml . . libguestfs OCaml ( ). CVE-2017-5208 CVE-2017-5331 CVE-2017-5332 CVE-2017-5333 CVE-2017-6009 CVE-2017-6010 CVE-2017-6011 wrestool(1) "icoutils" . libguestfs ( << >> ) XP 7 "wrestool -x" . . libguestfs . "guestfs_inspect_get_icon" libguestfs . virt-inspector(1) virt-manager(1) . icoutils ( 0.31.1) . CVE-2017-7244 CVE-2017-7245 CVE-2017-7246 PCRE libguestfs ( ) . PCRE ( >= 8.41). CVE-2018-11806 qemu ( SLIRP) qemu . libguestfs "direct" . direct CentOS . "LIBGUESTFS_BACKEND=direct" "guestfs_set_backend (g, "direct")" . ( virt-builder(1)) "guestfs_set_network (g, 1)" ( ). libvirt . qemu (: https://lists.gnu.org/archive/html/qemu-devel/2018-06/msg01012.html). CVE-2022-2211 https://bugzilla.redhat.com/CVE-2022-2211 "get_keys" libguestfs-common/options/keys.c --key . --key "NULL" . "MIN" "MAX" "NULL" . --key ID:... "ID" "get_keys" "NULL" "decrypt_mountables" libguestfs-common/options/decrypt.c . --key ID:... "ID" "get_keys" . "SIGSEGV" . -- -- libguestfs --key : "guestfish" "guestmount" "virt-cat" "virt-customize" "virt-diff" "virt-edit" "virt-get-kernel" "virt-inspector" "virt-log" "virt-ls" "virt-sparsify" "virt-sysprep" "virt-tail" "virt-v2v". (SEE ALSO) guestfs(3), guestfs-internals(1), guestfs-release-notes(1), guestfs-testing(1), http://libguestfs.org. (AUTHORS) Richard W.M. Jones ("rjones at redhat dot com") (COPYRIGHT) Copyright (C) 2009-2025 Red Hat Inc. (LICENSE) (GNU LGPL) ( ) . . . : Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA (BUGS) libguestfs : https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools libguestfs : https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools : o libguestfs. o libguestfs ( ) o . o libguestfs-test-tool(1) . libguestfs-1.60.1 2026-07-14 guestfs-security(1)