CVE Vulnerabilities

CVE-2022-4883

Untrusted Search Path

Published: Feb 07, 2023 | Modified: Oct 17, 2023
CVSS 3.x
8.8
HIGH
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS 2.x
RedHat/V2
RedHat/V3
8.1 IMPORTANT
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Ubuntu
MEDIUM

A flaw was found in libXpm. When processing files with .Z or .gz extensions, the library calls external programs to compress and uncompress files, relying on the PATH environment variable to find these programs, which could allow a malicious user to execute other programs by manipulating the PATH environment variable.

Weakness

The product searches for critical resources using an externally-supplied search path that can point to resources that are not under the product’s direct control.

Affected Software

Name Vendor Start Version End Version
Libxpm X.org * 3.5.15 (excluding)
Red Hat Enterprise Linux 7 RedHat libXpm-0:3.5.12-2.el7_9 *
Red Hat Enterprise Linux 8 RedHat libXpm-0:3.5.12-9.el8_7 *
Red Hat Enterprise Linux 8.1 Update Services for SAP Solutions RedHat libXpm-0:3.5.12-9.el8_1 *
Red Hat Enterprise Linux 8.2 Advanced Update Support RedHat libXpm-0:3.5.12-9.el8_2 *
Red Hat Enterprise Linux 8.2 Telecommunications Update Service RedHat libXpm-0:3.5.12-9.el8_2 *
Red Hat Enterprise Linux 8.2 Update Services for SAP Solutions RedHat libXpm-0:3.5.12-9.el8_2 *
Red Hat Enterprise Linux 8.4 Extended Update Support RedHat libXpm-0:3.5.12-9.el8_4 *
Red Hat Enterprise Linux 8.6 Extended Update Support RedHat libXpm-0:3.5.12-9.el8_6 *
Red Hat Enterprise Linux 9 RedHat libXpm-0:3.5.13-8.el9_1 *
Red Hat Enterprise Linux 9.0 Extended Update Support RedHat libXpm-0:3.5.13-8.el9_0 *
Libxpm Ubuntu bionic *
Libxpm Ubuntu esm-infra-legacy/trusty *
Libxpm Ubuntu esm-infra/xenial *
Libxpm Ubuntu focal *
Libxpm Ubuntu jammy *
Libxpm Ubuntu kinetic *
Libxpm Ubuntu lunar *
Libxpm Ubuntu trusty *
Libxpm Ubuntu trusty/esm *
Libxpm Ubuntu upstream *
Libxpm Ubuntu xenial *
Motif Ubuntu bionic *
Motif Ubuntu kinetic *
Motif Ubuntu lunar *
Motif Ubuntu mantic *
Motif Ubuntu trusty *
Motif Ubuntu trusty/esm *
Motif Ubuntu xenial *

Extended Description

This might allow attackers to execute their own programs, access unauthorized data files, or modify configuration in unexpected ways. If the product uses a search path to locate critical resources such as programs, then an attacker could modify that search path to point to a malicious program, which the targeted product would then execute. The problem extends to any type of critical resource that the product trusts. Some of the most common variants of untrusted search path are:

Potential Mitigations

References