CVE-2021-35938

Source
https://nvd.nist.gov/vuln/detail/CVE-2021-35938
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-35938.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2021-35938
Downstream
Related
Published
2022-08-25T20:15:09Z
Modified
2025-10-13T11:12:05.905803Z
Severity
  • 6.7 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

A symbolic link issue was found in rpm. It occurs when rpm sets the desired permissions and credentials after installing a file. A local unprivileged user could use this flaw to exchange the original file with a symbolic link to a security-critical file and escalate their privileges on the system. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.

References

Affected packages

Git / github.com/rpm-software-management/rpm

Affected ranges

Type
GIT
Repo
https://github.com/rpm-software-management/rpm
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

rpm-4.*

rpm-4.11.0-alpha
rpm-4.12.0-alpha
rpm-4.13.0-alpha
rpm-4.15.0-alpha
rpm-4.16.0-alpha
rpm-4.17.0-alpha
rpm-4.4-release
rpm-4.4.1-release
rpm-4.4.2-release
rpm-4.4.2.1-rc1
rpm-4.4.2.1-rc2
rpm-4.8.0-beta1

Database specific

{
    "vanir_signatures": [
        {
            "id": "CVE-2021-35938-6ff8734b",
            "source": "https://github.com/rpm-software-management/rpm/commit/25a435e90844ea98fe5eb7bef22c1aecf3a9c033",
            "deprecated": false,
            "signature_version": "v1",
            "signature_type": "Line",
            "digest": {
                "threshold": 0.9,
                "line_hashes": [
                    "280623155716057075973965713759273863140",
                    "67026450021903754845164842287235129457",
                    "158411457487267255824690252833708700168"
                ]
            },
            "target": {
                "file": "lib/fsm.c"
            }
        },
        {
            "id": "CVE-2021-35938-c3afe85b",
            "source": "https://github.com/rpm-software-management/rpm/commit/25a435e90844ea98fe5eb7bef22c1aecf3a9c033",
            "deprecated": false,
            "signature_version": "v1",
            "signature_type": "Function",
            "digest": {
                "length": 5307.0,
                "function_hash": "106619841970814527190268285391749306210"
            },
            "target": {
                "file": "lib/fsm.c",
                "function": "rpmPackageFilesInstall"
            }
        }
    ]
}