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

- Severity: Medium 6.8 (CVSS:3.1, scored by suse) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.32%, higher than 26% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-06-10T11:25:11.178Z
- Modified: 2026-06-17T03:52:38.940Z
- Weaknesses: CWE-276
- Assigned by: suse

## Description

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.

(As written by CVE List.)

## Affected

- SUSE SUSE Linux Enterprise Server 11-SP3: from inn up to inn-2.4.2-170.21.3.1
- openSUSE openSUSE Backports SLE-15-SP2: from inn before 2.6.2
- openSUSE openSUSE Leap 15.2: from inn before 2.6.2
- opensuse inn: up to 2.4.2-170.21.3.1; before 2.6.2

## Every score

- suse: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.2 High `AV:L/AC:L/Au:N/C:C/I:C/A:C`

## References

- <https://bugzilla.suse.com/show_bug.cgi?id=1182321> (exploit, issue-tracking, vendor-advisory)

## Sources

- CVE List: [CVE-2021-31998](https://www.cve.org/CVERecord?id=CVE-2021-31998), CVE Terms of Use, modified 2024-09-16
- NVD: [CVE-2021-31998](https://nvd.nist.gov/vuln/detail/CVE-2021-31998), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-31998 · Whole record: https://cve.day/CVE-2021-31998.json · Rebuilt by cve.day 2026-11-25T22:58:01.770Z
