CVE-2021-31998inn: %post calls user owned file allowing local privilege escalation to root
A Incorrect Default Permissions vulnerability in the packaging of inn of SUSE Linux Enterprise Server 11-SP3; openSUSE Backports SLE-15-SP2, openSUSE Leap 15.2 allows local attackers to escalate their privileges from the news user to root. This issue affects: SUSE Linux Enterprise Server 11-SP3 inn version inn-2.4.2-170.21.3.1 and prior versions. openSUSE Backports SLE-15-SP2 inn versions prior to 2.6.2. openSUSE Leap 15.2 inn versions prior to 2.6.2.
What to do
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | inn2 | Fix pending | UBUNTU-CVE-2021-31998 | |
| Ubuntu 26.04 | inn2 | Under investigation | UBUNTU-CVE-2021-31998 | |
| Ubuntu 25.10 | inn2 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-31998 | |
| Ubuntu 24.04 | inn2 | Under investigation | UBUNTU-CVE-2021-31998 | |
| Ubuntu 22.04 | inn2 | Under investigation | UBUNTU-CVE-2021-31998 | |
| Ubuntu 20.04 | inn2 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-31998 | |
| Ubuntu 18.04 | inn2 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-31998 | |
| Ubuntu 16.04 | inn2 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-31998 | |
| Ubuntu 14.04 | inn2 | Will not fix Ubuntu decided not to fix this in this release |
What the vendor says
As published in the CVE record by suse, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- SUSE Linux Enterprise Server 11-SP3: affected: inn to inn-2.4.2-170.21.3.1
- openSUSE Backports SLE-15-SP2: affected: inn to before 2.6.2; fixed in
2.6.2 - openSUSE Leap 15.2: affected: inn to before 2.6.2; fixed in
2.6.2
References
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.