- What: Security update for sed in Ubuntu 18.04 and 20.04 LTS
- Impact: Local attackers could overwrite arbitrary files
Ubuntu Security Notices USN-8229-2 USN-8229-2: sed vulnerability Publication date 28 May 2026 Overview sed could be made to overwrite files. Releases 20.04 LTS 18.04 LTS Open side navigation Close side navigation Packages Details Update instructions References Related notices Packages sed - GNU stream editor for filtering/transforming text Details USN-8229-1 fixed a vulnerability in sed. This update provides the corresponding update for Ubuntu 18.04 LTS and Ubuntu 20.04 LTS. Original advisory details: Michał Majchrowicz and Marcin Wyczechowski discovered that sed incorrectly handled symbolic links when performing in-place edits. A local attacker could possibly use this issue to overwrite arbitrary files. USN-8229-1 fixed a vulnerability in sed. This update provides the corresponding update for Ubuntu 18.04 LTS and Ubuntu 20.04 LTS. Original advisory details: Michał Majchrowicz and Marcin Wyczechowski discovered that sed incorrectly handled symbolic links when performing in-place edits. A local attacker could possibly use this issue to overwrite arbitrary files. Update instructions In general, a standard system update will make all the necessary changes. Learn more about how to get the fixes. The problem can be corrected by updating your system to the following package versions: Ubuntu Release Package Version 20.04 LTS focal sed – 4.7-1ubuntu0.1~esm1 Ubuntu Pro Fix available with Ubuntu Pro . 18.04 LTS bionic sed – 4.4-2ubuntu0.1~esm1 Ubuntu Pro Fix available with Ubuntu Pro . Reduce your security exposure Ubuntu Pro provides ten-year security coverage to 25,000+ packages in Main and Universe repositories, and it is free for up to five machines. Get Ubuntu Pro References CVE-2026-5958 CVE-2026-5958 Related notices USN-8229-1 USN-8229-1