LiveActive security incident?Get immediate response
CVE Record

CVE-2021-31997: python-postorius: postorius-permissions.sh used during %post allows local privilege escalation from postorius user to root

A UNIX Symbolic Link (Symlink) Following vulnerability in python-postorius of openSUSE Leap 15.2, Factory allows local attackers to escalate from users postorius or postorius-admin to root. This issue affects: openSUSE Leap 15.2 python-postorius version 1.3.2-lp152.1.2 and prior versions. openSUSE Factory python-postorius version 1.3.4-2.1 and prior versions.

MediumCVSS 6.8Not KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

This is a local privilege escalation issue in openSUSE's python-postorius package. A symlink-following flaw in a post-install permission script could let someone with the postorius or postorius-admin context gain root access. It is not a remote internet-facing bug.

Executive priority

Treat as a moderate operational risk on affected openSUSE hosts. Prioritize systems where local users, service accounts, or automation could reach postorius contexts, but do not treat it as an unauthenticated remote compromise based on the provided evidence.

Technical view

CVE-2021-31997 is CWE-59 in python-postorius. The vulnerable postorius-permissions.sh script used during package %post can follow UNIX symbolic links, enabling local escalation to root on affected openSUSE Leap 15.2 and Factory package versions.

Likely exposure

Exposure is likely limited to openSUSE Leap 15.2 systems running python-postorius 1.3.2-lp152.1.2 or earlier, and openSUSE Factory systems running 1.3.4-2.1 or earlier.

Exploitation context

The source bundle does not show CISA KEV listing or cited active exploitation. Exploitation is local and tied to package script behavior, with the description naming escalation from postorius or postorius-admin users to root.

Researcher notes

Evidence identifies symlink following in postorius-permissions.sh during %post. The bundle does not provide exploit details, fixed package versions, or proof of active exploitation. Validation should focus on package version, distro release, and local account exposure.

Mitigation direction

  • Inventory openSUSE systems for installed python-postorius packages.
  • Check openSUSE/SUSE guidance for patched package availability.
  • Prioritize updating affected Leap 15.2 and Factory package versions.
  • Restrict local access to postorius and postorius-admin accounts.
  • Review privileged package-script execution controls where applicable.

Validation and detection

  • Confirm operating system release and installed python-postorius version.
  • Identify whether postorius or postorius-admin local accounts exist.
  • Review package manager history for python-postorius install or upgrade events.
  • Verify the installed package is no longer in the affected version range.
  • Check SUSE Bugzilla or vendor advisories for final fix guidance.
Prepared
Confidence
medium
Sources
3

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-59: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
description · low confidence lookup

Privilege behavior lookup

The CVE wording references privilege impact, so privilege escalation and authorization behavior review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2021-31997 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Medium
CVSS
6.8 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
2Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
6.8CVSS 3.1MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N2.54.2Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

6.8Medium
CVSS 3.1 vector shape for CVE-2021-31997Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
openSUSELeap 15.2python-postoriusListed
openSUSEFactorypython-postoriusListed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.