# CVE-2021-31998: inn: %post calls user owned file allowing local privilege escalation to root

- Priority: **Routine**
- Reason: Not severe (CVSS 6.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2021-06-10 · Modified: 2024-09-16
- Aliases: SUSE-SU-2021:14750-1, openSUSE-SU-2021:0845-1, UBUNTU-CVE-2021-31998, openSUSE-SU-2021:0830-1
- Record: https://cvemate.com/vulnerability/CVE-2021-31998 · JSON: https://cvemate.com/vulnerability/CVE-2021-31998/json

## Description

```text
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.
```

## Signals

- CVSS: 7.8 high (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.318%, percentile 26.71%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (reference)

## Affected

- ubuntu inn2 (Ubuntu): All versions (No fix recorded)
- opensuse inn: ≤ 2.4.2-170.21.3.1 \| \< 2.6.2
- opensuse opensuse backports sle-15-sp2: ≥ inn, \< 2.6.2
- opensuse opensuse leap 15.2: ≥ inn, \< 2.6.2
- opensuse inn&distro=openSUSE Leap 15.2 (openSUSE): \< 2.6.2-lp152.2.6.1
- suse inn&distro=SUSE Linux Enterprise Point of Sale 11 SP3 (SUSE Linux Enterprise): \< 2.4.2-170.21.3.6.1
- suse inn&distro=SUSE Linux Enterprise Server 11 SP4-LTSS (SUSE Linux Enterprise): \< 2.4.2-170.21.3.6.1
- suse inn&distro=SUSE Package Hub 15 SP2 (SUSE Linux Enterprise): \< 2.6.2-bp152.2.8.1
- suse suse linux enterprise server 11-sp3: ≥ inn, ≤ inn-2.4.2-170.21.3.1

## References

- <https://bugzilla.suse.com/show_bug.cgi?id=1182321>
- <https://www.suse.com/support/update/announcement/2021/suse-su-202114750-1/>
- <https://bugzilla.suse.com/1182321>
- <https://www.suse.com/security/cve/CVE-2021-31998>
- <https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/L66SY5KJMRBUJVLIGSLIQAWIALH62ZA2/>
- <https://ubuntu.com/security/CVE-2021-31998>
- <https://www.cve.org/CVERecord?id=CVE-2021-31998>
- <https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/7WPHWRLIUN6FJFWJTZWJNHGURPDXI3KU/>

---

Data as of 2026-12-05T02:49:37.525Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
