Distro advisory · AmazonLinux 2
important priority package update for rpm
AmazonLinux 2
What it fixes
Package updates are available for Amazon Linux 2 that fix the following vulnerabilities: CVE-2026-95521: A command injection flaw was found in rpm. Installing or rebuilding a source RPM whose source or spec file basenames contain a %() macro construct causes rpm to execute an attacker-controlled shell command via popen() while relocating the source file list. This allows arbitrary command execution as the invoking (typically non-root) user, simply by installing, rebuilding, or otherwise processing an untrusted .src.rpm.
Manual fix · AmazonLinux 2
sudo yum updateinfo info ALAS2-2026-4097sudo yum upgrade --advisory=ALAS2-2026-4097rpm -q rpmSources