CVE-2021-35938

Source
https://nvd.nist.gov/vuln/detail/CVE-2021-35938
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-35938.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-35938
Downstream
Related
Published
2022-08-25T20:15:09Z
Modified
2025-10-21T06:26:11.683864Z
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

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