Postfix hardlink-to-symlink arbitrary file append / local privilege escalation
Postfix (before 2.3.15; 2.4.x before 2.4.8; 2.5.x before 2.5.4; and 2.6 before 2.6-20080814) on operating systems that support creating hard links to symbolic links contains a local flaw that allows a local user to cause Postfix to append e-mail message content to an arbitrary file referenced by a root-owned symlink. An attacker can create a hard link to a root-owned symlink and then send a message such that Postfix appends the message to the symlink target. This can be leveraged for privilege escalation if the symlink points to a security-sensitive file (e.g., an init script).
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Local authenticated users can append attacker-controlled data to files targeted by root-owned symlinks, enabling arbitrary file modification (append) as root in affected scenarios. If the modified file is executed by root (e.g., init scripts), this may result in local privilege escalation to root.
If you can’t patch tonight, do this now.
Apply vendor-recommended workarounds; CERT notes making the system mail spool directory root-owned to mitigate exposure. Additional mitigations depend on vendor guidance for the affected platform and filesystem behavior regarding hardlinks to symlinks.
Patch, then assume compromise.
Upgrade Postfix to a fixed release (>= 2.3.15, >= 2.4.8, >= 2.5.4, or >= 2.6-20080814) or apply vendor-provided patched packages per OS distribution advisories.
No validated public exploits yet. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.