{"exploit":{"id":"EDB-35595","name":"GParted 0.14.1 - OS Command Execution","description":"GParted 0.14.1 - OS Command Execution","cves":["CVE-2014-7208"],"author":"SEC Consult","published":"2014-12-23","platform":"linux","type":"local","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/35595","path":"exploits/linux/local/35595.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-35595.txt","vulnerabilities":[{"id":"CVE-2014-7208","state":"PUBLISHED","title":null,"titleSource":null,"description":"GParted before 0.15.0 allows local users to execute arbitrary commands with root privileges via shell metacharacters in a crafted filesystem label.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2014-7208","cvss":{"version":"2.0","baseScore":7.2,"severity":"high","vectorString":"AV:L/AC:L/Au:N/C:C/I:C/A:C","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2014-7208"},"updatedAt":"2024-08-06T12:40:19.119Z","retrievedAt":"2026-11-26T17:07:45.383Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-35595.png?v=2","url":"https://exploitbin.com/exploits/EDB-35595","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-35595/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-35595/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"SEC Consult Vulnerability Lab Security Advisory < 20141218-1 >\n=======================================================================\n             title: OS Command Execution\n           product: GParted - Gnome Partition Editor\nvulnerable version: <=0.14.1\n     fixed version: >=0.15.0,\n                    <=0.14.1 with fix for CVE-2014-7208 applied\n        CVE number: CVE-2014-7208\n            impact: medium\n          homepage: http://gparted.org/\n             found: 2014-07\n                by: W. Ettlinger\n                    SEC Consult Vulnerability Lab\n                    https://www.sec-consult.com\n=======================================================================\n\nVendor description:\n-------------------\n\"GParted is a free partition editor for graphically managing your disk\npartitions.\n\nWith GParted you can resize, copy, and move partitions without data\nloss, enabling you to:\n* Grow or shrink your C: drive\n* Create space for new operating systems\n* Attempt data rescue from lost partitions\"\n\nURL: http://gparted.org/index.php\n\n\nVulnerability overview/description:\n-----------------------------------\nGparted <=0.14.1 does not properly sanitize strings before passing\nthem as parameters to an OS command. Those commands are executed\nusing root privileges.\n\nParameters that are being used for OS commands in Gparted are normally\ndetermined by the user (e.g. disk labels, mount points).  However, under\ncertain circumstances, an attacker can use an external storage device to\ninject command parameters. These circumstances are met if for example an\nautomounter uses a filesystem label as part of the mount path.\n\nPlease note that GParted versions before 0.15 are still being used\nin distributions. E.g Debian Wheezy is vulnerable to this issue before\napplying the patches.\n\n\nProof of concept:\n-----------------\nThe following command creates a malicious filesystem.\n\n# mkfs.ext2 -L \"\\`reboot\\`\" /dev/sdXX\n\nWhen this filesystem is mounted by an automounter to a mountpoint\ncontaining the filesystem label and the user tries to unmount this filesystem\nusing GParted, the system reboots.\n\nVulnerable / tested versions:\n-----------------------------\nGparted versions <=0.14.1 were found to be vulnerable.\n\n\nVendor contact timeline:\n------------------------\n2014-10-29: Contacting maintainer (Curtis Gedak) through\n           gedakc AT users DOT sf DOT net\n2014-10-29: Initial response from maintainer offering encryption\n2014-10-30: Sending encrypted advisory\n2014-10-30: Maintainer confirms the behaviour, will be investigated\n           further\n2014-11-04: Maintainer sends initial patches\n2014-11-05: Giving a few notes on the patches\n2014-11-05: Maintainer clarifies a few concerns with the patches;\n           Forwards patches to Mike Fleetwood for review\n2014-11-08: Review shows that the patches cause functional\n           problems; proposes further procedure\n2014-11-08: Maintainer proposes a different patching approach\n2014-11-08: Reviewer shows concerns with this approach, opens\n           a security bug (1171909) with Fedora (in accordance with\n           their Security Tracking Bugs procedure);\n           Red Hat creates tracking bug 1172549\n2014-11-15: New patches for several versions\n2014-11-23: Maintainer sends vulnerability information to Debian\n2014-11-29: Debian Security Team responds, asks for embargo date and\n           CVE number\n2014-11-30: Release date set to 2014-12-18\n2014-12-11: Mailing list linux-distros AT vs DOT openwall DOT org informed\n2014-12-11: Writing that embargo may be lifted, SEC Consult will release\n           advisory on 2014-12-18\n2014-12-18: Coordinated release of security advisory\n\n\nSolution:\n---------\nUpdate GParted to version >= 0.15.0 or apply security patches for\nCVE-2014-7208.\n\n\nAdvisory URL:\n-------------\nhttps://www.sec-consult.com/en/Vulnerability-Lab/Advisories.htm\n\n\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nSEC Consult Vulnerability Lab\n\nSEC Consult\nVienna - Bangkok - Frankfurt/Main - Montreal - Singapore - Vilnius - Zurich\n\nHeadquarter:\nMooslackengasse 17, 1190 Vienna, Austria\nPhone:   +43 1 8903043 0\nFax:     +43 1 8903043 15\n\nMail: research at sec-consult dot com\nWeb: https://www.sec-consult.com\nBlog: http://blog.sec-consult.com\nTwitter: https://twitter.com/sec_consult\n\nInterested to work with the experts of SEC Consult?\nWrite to career@sec-consult.com\n\nEOF W. Ettlinger / @2014","sha256":"702202807cc66a44a5c932d10685dec8baf2c41ebc7ca37c727c70c7e0742890","bytes":4409,"fetchedAt":"2026-11-26T17:07:41.144Z","encoding":"utf-8 (display only; download retains original bytes)"}