CVE Vulnerabilities

CVE-2021-25322

UNIX Symbolic Link (Symlink) Following

Published: Jun 10, 2021 | Modified: Nov 21, 2024
CVSS 3.x
7.8
HIGH
Source:
NVD
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS 2.x
7.2 HIGH
AV:L/AC:L/Au:N/C:C/I:C/A:C
RedHat/V2
RedHat/V3
Ubuntu
MEDIUM

A UNIX Symbolic Link (Symlink) Following vulnerability in python-HyperKitty of openSUSE Leap 15.2, Factory allows local attackers to escalate privileges from the user hyperkitty or hyperkitty-admin to root. This issue affects: openSUSE Leap 15.2 python-HyperKitty version 1.3.2-lp152.2.3.1 and prior versions. openSUSE Factory python-HyperKitty versions prior to 1.3.4-5.1.

Weakness

The product, when opening a file or directory, does not sufficiently account for when the file is a symbolic link that resolves to a target outside of the intended control sphere. This could allow an attacker to cause the product to operate on unauthorized files.

Affected Software

Name Vendor Start Version End Version
Python-hyperkitty Python-hyperkitty_project * 1.3.2-lp152.2.3.1 (including)
Hyperkitty Ubuntu bionic *
Hyperkitty Ubuntu groovy *
Hyperkitty Ubuntu hirsute *
Hyperkitty Ubuntu impish *
Hyperkitty Ubuntu kinetic *
Hyperkitty Ubuntu lunar *
Hyperkitty Ubuntu mantic *
Hyperkitty Ubuntu trusty *
Hyperkitty Ubuntu xenial *

Potential Mitigations

  • Follow the principle of least privilege when assigning access rights to entities in a software system.
  • Denying access to a file can prevent an attacker from replacing that file with a link to a sensitive file. Ensure good compartmentalization in the system to provide protected areas that can be trusted.

References