NewsCrawler.org

A crafted email address could have backdoored Bash through GNU Savannah

GNU Savannah, the hosting platform for Bash, Coreutils and hundreds of other GNU projects, contained a flaw that gave any registered user remote code execution (RCE)[1] on its backend; Savannah holds the repositories, maintainer accounts and SSH keys that decide who can push to projects like these. Its email validator accepted addresses with backticks, $, {}, / and | in the local part, most of which the RFC technically allows there, and its "Test GPG keys" check appended the account's email address to a shell command run through proc_open(), so the shell executed whatever stood between the backticks. An address like a`touch${IFS}/tmp/savane-rce-proof`@attacker.example therefore ran the command inside the backticks as the web server user, with ${IFS} standing in for the space the validator rejects. The FSF traced the vulnerable path to the March 7, 2026 release of Savane (3.17-c369), which affected both savannah.gnu.org and savannah.nongnu.org for a window of about two months; the researchers reported it on May 11, 2026.

From a reverse shell[2] as the web server user, the researchers read Savane's configuration, which contained the database credentials, set the superuser flag on their own account and used the "Become this user" box to act as Chet Ramey, the maintainer of Bash, whose SSH key page had an empty slot that would have granted push access to bash.git. They confirmed the page accepted edits and stopped there without adding a key; an attacker in that position could have pushed a commit to upstream Bash under Chet's name and done the same to Coreutils. The web shell then escalated to root through GameOver(lay), two OverlayFS[3] bugs from 2023 (CVE-2023-2640 and CVE-2023-32629). Savannah runs Trisquel GNU/Linux 11 with a 5.15-based linux-libre kernel, which received no fix until USN-8255-1 on May 7, 2026, four days before the report; the public exploit worked on the first try, and with root access the researchers found a key to a GNU backup server.

A pentest[4] run across the rest of Savane, a PHP application descended from the 2001 SourceForge code, produced 33 findings; 7 were discarded as false positives and 26 were confirmed (2 critical, 6 high, 16 medium, 2 low), each with file paths, line numbers and reproduction steps. Savannah administrator Corwin Brust replied the same night; the FSF treated the case as a full compromise, patched the kernel, audited access controls, databases and logs, warned the operator of the other public Savane instance, fixed the authorization bugs through a refactor and published an incident report.

Read the original hacktron.aiDiscussion

Sources

Published: First seen: Читать по-русски

Open as a page