CVE-2021-35938

Source
https://cve.org/CVERecord?id=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
AZL (1)
BELL (1)
CLSA (5)
DEBIAN (1)
OESA (1)
openSUSE (1)
RHSA (6)
RLSA (1)
UBUNTU (1)
Related
Published
2022-08-25T20:15:09Z
Modified
2026-07-08T22:13:22Z
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.

Database specific
{
    "unresolved_ranges":  [
        {
            "cpes":  [
                "cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*"
            ],
            "extracted_events":  [
                {
                    "introduced":  "34"
                },
                {
                    "last_affected":  "34"
                }
            ],
            "source":  "CPE_STRING",
            "vendor_product":  "fedoraproject:fedora"
        },
        {
            "cpes":  [
                "cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*",
                "cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*",
                "cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*"
            ],
            "extracted_events":  [
                {
                    "introduced":  "7.0"
                },
                {
                    "last_affected":  "7.0"
                },
                {
                    "introduced":  "8.0"
                },
                {
                    "last_affected":  "8.0"
                },
                {
                    "introduced":  "9.0"
                },
                {
                    "last_affected":  "9.0"
                }
            ],
            "source":  "CPE_STRING",
            "vendor_product":  "redhat:enterprise_linux"
        }
    ]
}
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
Fixed
Database specific
Show details
{
    "cpe":  "cpe:2.3:a:rpm:rpm:*:*:*:*:*:*:*:*",
    "extracted_events":  [
        {
            "introduced":  "0"
        },
        {
            "fixed":  "4.18.0"
        }
    ],
    "source":  [
        "CPE_RANGE",
        "REFERENCES"
    ]
}

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.18.0-alpha1
rpm-4.18.0-alpha2
rpm-4.18.0-beta1
rpm-4.18.0-rc1
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

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-35938.json"
vanir_signatures
[
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "280623155716057075973965713759273863140",
                "67026450021903754845164842287235129457",
                "158411457487267255824690252833708700168"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2021-35938-6ff8734b",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/rpm-software-management/rpm/commit/25a435e90844ea98fe5eb7bef22c1aecf3a9c033",
        "target":  {
            "file":  "lib/fsm.c"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "106619841970814527190268285391749306210",
            "length":  5307
        },
        "id":  "CVE-2021-35938-c3afe85b",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/rpm-software-management/rpm/commit/25a435e90844ea98fe5eb7bef22c1aecf3a9c033",
        "target":  {
            "file":  "lib/fsm.c",
            "function":  "rpmPackageFilesInstall"
        }
    }
]
vanir_signatures_modified
"2026-07-08T22:13:22Z"