Hacktron disclosed details of a demo attack on the free code hosting GNU Savannah, which continues to be used to develop some GNU tools, including Bash and Coreutils. As a result of the experiment, it was possible to execute the code on the GNU Savannah server, obtain root rights on it, replace the SSH keys of the Bash maintainer, identify the possibility of making changes to the main git repository of the Bash project, and gain access to the server with backup copies.
The test attack and the problems identified were immediately reported to the GNU Savannah administrators. The problems were fixed in May. In total, the researchers identified 9 vulnerabilities, of which 2 were considered critical and 4 dangerous. The first critical vulnerability made it possible to bypass authentication when accessing settings available only to the site administrator (siteadmin/triggercreation.php).
The second critical vulnerability made it possible to execute code on the server by specifying a specially designed email. The problem was caused by the lack of proper escaping of special characters and could be exploited by specifying an email like “a`touch${IFS}/tmp/savane-rce-proof`@example.com” when registering, followed by clicking the GPG key check button in the web interface (the email was inserted into the launch line of the gpg utility, called through the PHP function proc_open()).
Having achieved code execution with web server rights, the researchers found the DBMS access password in the configuration file and changed the access rights in the database for their registered account from an unprivileged user to an administrator. Administrator rights in the Savannah web interface made it possible to work as any user without entering a password. The researchers took advantage of this opportunity, logged in as the Bash maintainer of the project, and found an option to add their SSH key to connect to the git repository. If a key was added, it became possible to send commits to Bash on behalf of the maintainer.
Root rights on the server were obtained through the exploitation of a previously known vulnerability in the Linux kernel, which was not updated on the server (the Trisquel GNU/Linux 11 distribution based on
Ubuntu 22.04 with linux-libre 5.15 kernel). The attack used a vulnerability in OverlayFS (CVE-2023-2640). It is noteworthy that a fix for the vulnerability has been available since 2023, but Canonical quickly fixed the problem only in kernels 5.19 and 6.2, and for kernel 5.15 released a patch only on May 7, 2026. Having received root rights, the researchers discovered an SSH key in the system for the user “gnubackup”, which allows you to connect to the host with backup copies without a password.
💬 Discussion 0
BBCode & Emoji supportedParticipate in discussions, ask authors questions, and share benchmarks by joining the ProArena engineering community.