ubuntu-cve-2021-35938
Vulnerability from osv_ubuntu
Published
2022-08-25 20:15
Modified
2026-05-20 14:53
Summary
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.


{
  "affected": [
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "debugedit",
            "binary_version": "4.11.1-3ubuntu0.1+esm1"
          },
          {
            "binary_name": "librpm3",
            "binary_version": "4.11.1-3ubuntu0.1+esm1"
          },
          {
            "binary_name": "librpmbuild3",
            "binary_version": "4.11.1-3ubuntu0.1+esm1"
          },
          {
            "binary_name": "librpmio3",
            "binary_version": "4.11.1-3ubuntu0.1+esm1"
          },
          {
            "binary_name": "librpmsign1",
            "binary_version": "4.11.1-3ubuntu0.1+esm1"
          },
          {
            "binary_name": "python-rpm",
            "binary_version": "4.11.1-3ubuntu0.1+esm1"
          },
          {
            "binary_name": "rpm",
            "binary_version": "4.11.1-3ubuntu0.1+esm1"
          },
          {
            "binary_name": "rpm-common",
            "binary_version": "4.11.1-3ubuntu0.1+esm1"
          },
          {
            "binary_name": "rpm-i18n",
            "binary_version": "4.11.1-3ubuntu0.1+esm1"
          },
          {
            "binary_name": "rpm2cpio",
            "binary_version": "4.11.1-3ubuntu0.1+esm1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:14.04:LTS",
        "name": "rpm",
        "purl": "pkg:deb/ubuntu/rpm@4.11.1-3ubuntu0.1+esm1?arch=source\u0026distro=trusty/esm"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "4.11.1-2",
        "4.11.1-3",
        "4.11.1-3ubuntu0.1",
        "4.11.1-3ubuntu0.1+esm1"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "debugedit",
            "binary_version": "4.12.0.1+dfsg1-3ubuntu0.1~esm1"
          },
          {
            "binary_name": "librpm3",
            "binary_version": "4.12.0.1+dfsg1-3ubuntu0.1~esm1"
          },
          {
            "binary_name": "librpmbuild3",
            "binary_version": "4.12.0.1+dfsg1-3ubuntu0.1~esm1"
          },
          {
            "binary_name": "librpmio3",
            "binary_version": "4.12.0.1+dfsg1-3ubuntu0.1~esm1"
          },
          {
            "binary_name": "librpmsign3",
            "binary_version": "4.12.0.1+dfsg1-3ubuntu0.1~esm1"
          },
          {
            "binary_name": "python-rpm",
            "binary_version": "4.12.0.1+dfsg1-3ubuntu0.1~esm1"
          },
          {
            "binary_name": "python3-rpm",
            "binary_version": "4.12.0.1+dfsg1-3ubuntu0.1~esm1"
          },
          {
            "binary_name": "rpm",
            "binary_version": "4.12.0.1+dfsg1-3ubuntu0.1~esm1"
          },
          {
            "binary_name": "rpm-common",
            "binary_version": "4.12.0.1+dfsg1-3ubuntu0.1~esm1"
          },
          {
            "binary_name": "rpm-i18n",
            "binary_version": "4.12.0.1+dfsg1-3ubuntu0.1~esm1"
          },
          {
            "binary_name": "rpm2cpio",
            "binary_version": "4.12.0.1+dfsg1-3ubuntu0.1~esm1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:16.04:LTS",
        "name": "rpm",
        "purl": "pkg:deb/ubuntu/rpm@4.12.0.1+dfsg1-3ubuntu0.1~esm1?arch=source\u0026distro=esm-apps/xenial"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "4.12.0.1+dfsg1-3build2",
        "4.12.0.1+dfsg1-3build3",
        "4.12.0.1+dfsg1-3ubuntu0.1~esm1"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "debugedit",
            "binary_version": "4.14.1+dfsg1-2ubuntu0.1~esm1"
          },
          {
            "binary_name": "librpm8",
            "binary_version": "4.14.1+dfsg1-2ubuntu0.1~esm1"
          },
          {
            "binary_name": "librpmbuild8",
            "binary_version": "4.14.1+dfsg1-2ubuntu0.1~esm1"
          },
          {
            "binary_name": "librpmio8",
            "binary_version": "4.14.1+dfsg1-2ubuntu0.1~esm1"
          },
          {
            "binary_name": "librpmsign8",
            "binary_version": "4.14.1+dfsg1-2ubuntu0.1~esm1"
          },
          {
            "binary_name": "python-rpm",
            "binary_version": "4.14.1+dfsg1-2ubuntu0.1~esm1"
          },
          {
            "binary_name": "python3-rpm",
            "binary_version": "4.14.1+dfsg1-2ubuntu0.1~esm1"
          },
          {
            "binary_name": "rpm",
            "binary_version": "4.14.1+dfsg1-2ubuntu0.1~esm1"
          },
          {
            "binary_name": "rpm-common",
            "binary_version": "4.14.1+dfsg1-2ubuntu0.1~esm1"
          },
          {
            "binary_name": "rpm-i18n",
            "binary_version": "4.14.1+dfsg1-2ubuntu0.1~esm1"
          },
          {
            "binary_name": "rpm2cpio",
            "binary_version": "4.14.1+dfsg1-2ubuntu0.1~esm1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:18.04:LTS",
        "name": "rpm",
        "purl": "pkg:deb/ubuntu/rpm@4.14.1+dfsg1-2ubuntu0.1~esm1?arch=source\u0026distro=esm-apps/bionic"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "4.12.0.2+dfsg1-2build2",
        "4.14.0+dfsg1-2",
        "4.14.1+dfsg1-2",
        "4.14.1+dfsg1-2ubuntu0.1~esm1"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "debugedit",
            "binary_version": "4.14.2.1+dfsg1-1ubuntu0.1~esm1"
          },
          {
            "binary_name": "librpm8",
            "binary_version": "4.14.2.1+dfsg1-1ubuntu0.1~esm1"
          },
          {
            "binary_name": "librpmbuild8",
            "binary_version": "4.14.2.1+dfsg1-1ubuntu0.1~esm1"
          },
          {
            "binary_name": "librpmio8",
            "binary_version": "4.14.2.1+dfsg1-1ubuntu0.1~esm1"
          },
          {
            "binary_name": "librpmsign8",
            "binary_version": "4.14.2.1+dfsg1-1ubuntu0.1~esm1"
          },
          {
            "binary_name": "python-rpm",
            "binary_version": "4.14.2.1+dfsg1-1ubuntu0.1~esm1"
          },
          {
            "binary_name": "python3-rpm",
            "binary_version": "4.14.2.1+dfsg1-1ubuntu0.1~esm1"
          },
          {
            "binary_name": "rpm",
            "binary_version": "4.14.2.1+dfsg1-1ubuntu0.1~esm1"
          },
          {
            "binary_name": "rpm-common",
            "binary_version": "4.14.2.1+dfsg1-1ubuntu0.1~esm1"
          },
          {
            "binary_name": "rpm-i18n",
            "binary_version": "4.14.2.1+dfsg1-1ubuntu0.1~esm1"
          },
          {
            "binary_name": "rpm2cpio",
            "binary_version": "4.14.2.1+dfsg1-1ubuntu0.1~esm1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:20.04:LTS",
        "name": "rpm",
        "purl": "pkg:deb/ubuntu/rpm@4.14.2.1+dfsg1-1ubuntu0.1~esm1?arch=source\u0026distro=esm-apps/focal"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "4.14.2.1+dfsg1-1",
        "4.14.2.1+dfsg1-1build1",
        "4.14.2.1+dfsg1-1build2",
        "4.14.2.1+dfsg1-1ubuntu0.1~esm1"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "librpm9",
            "binary_version": "4.17.0+dfsg1-4build1"
          },
          {
            "binary_name": "librpmbuild9",
            "binary_version": "4.17.0+dfsg1-4build1"
          },
          {
            "binary_name": "librpmio9",
            "binary_version": "4.17.0+dfsg1-4build1"
          },
          {
            "binary_name": "librpmsign9",
            "binary_version": "4.17.0+dfsg1-4build1"
          },
          {
            "binary_name": "python3-rpm",
            "binary_version": "4.17.0+dfsg1-4build1"
          },
          {
            "binary_name": "rpm",
            "binary_version": "4.17.0+dfsg1-4build1"
          },
          {
            "binary_name": "rpm-common",
            "binary_version": "4.17.0+dfsg1-4build1"
          },
          {
            "binary_name": "rpm-i18n",
            "binary_version": "4.17.0+dfsg1-4build1"
          },
          {
            "binary_name": "rpm2cpio",
            "binary_version": "4.17.0+dfsg1-4build1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:22.04:LTS",
        "name": "rpm",
        "purl": "pkg:deb/ubuntu/rpm@4.17.0+dfsg1-4build1?arch=source\u0026distro=jammy"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "4.16.1.2+dfsg1-3ubuntu1",
        "4.16.1.2+dfsg1-3ubuntu3",
        "4.17.0+dfsg1-1",
        "4.17.0+dfsg1-3",
        "4.17.0+dfsg1-4",
        "4.17.0+dfsg1-4build1"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "librpm9t64",
            "binary_version": "4.18.2+dfsg-2.1build2"
          },
          {
            "binary_name": "librpmbuild9t64",
            "binary_version": "4.18.2+dfsg-2.1build2"
          },
          {
            "binary_name": "librpmio9t64",
            "binary_version": "4.18.2+dfsg-2.1build2"
          },
          {
            "binary_name": "librpmsign9t64",
            "binary_version": "4.18.2+dfsg-2.1build2"
          },
          {
            "binary_name": "python3-rpm",
            "binary_version": "4.18.2+dfsg-2.1build2"
          },
          {
            "binary_name": "rpm",
            "binary_version": "4.18.2+dfsg-2.1build2"
          },
          {
            "binary_name": "rpm-common",
            "binary_version": "4.18.2+dfsg-2.1build2"
          },
          {
            "binary_name": "rpm-i18n",
            "binary_version": "4.18.2+dfsg-2.1build2"
          },
          {
            "binary_name": "rpm2cpio",
            "binary_version": "4.18.2+dfsg-2.1build2"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:24.04:LTS",
        "name": "rpm",
        "purl": "pkg:deb/ubuntu/rpm@4.18.2+dfsg-2.1build2?arch=source\u0026distro=noble"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "4.18.0+dfsg-1build1",
        "4.18.0+dfsg-1build2",
        "4.18.2+dfsg-1",
        "4.18.2+dfsg-2",
        "4.18.2+dfsg-2.1build1",
        "4.18.2+dfsg-2.1build2"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "librpm10",
            "binary_version": "4.20.1+dfsg-3"
          },
          {
            "binary_name": "librpmbuild10",
            "binary_version": "4.20.1+dfsg-3"
          },
          {
            "binary_name": "librpmio10",
            "binary_version": "4.20.1+dfsg-3"
          },
          {
            "binary_name": "librpmsign10",
            "binary_version": "4.20.1+dfsg-3"
          },
          {
            "binary_name": "python3-rpm",
            "binary_version": "4.20.1+dfsg-3"
          },
          {
            "binary_name": "rpm",
            "binary_version": "4.20.1+dfsg-3"
          },
          {
            "binary_name": "rpm-common",
            "binary_version": "4.20.1+dfsg-3"
          },
          {
            "binary_name": "rpm-i18n",
            "binary_version": "4.20.1+dfsg-3"
          },
          {
            "binary_name": "rpm2cpio",
            "binary_version": "4.20.1+dfsg-3"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:25.10",
        "name": "rpm",
        "purl": "pkg:deb/ubuntu/rpm@4.20.1+dfsg-3?arch=source\u0026distro=questing"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "4.20.1+dfsg-1",
        "4.20.1+dfsg-2",
        "4.20.1+dfsg-2build1",
        "4.20.1+dfsg-3"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "librpm10",
            "binary_version": "6.0.1-1build1"
          },
          {
            "binary_name": "librpmbuild10",
            "binary_version": "6.0.1-1build1"
          },
          {
            "binary_name": "librpmio10",
            "binary_version": "6.0.1-1build1"
          },
          {
            "binary_name": "librpmsign10",
            "binary_version": "6.0.1-1build1"
          },
          {
            "binary_name": "python3-rpm",
            "binary_version": "6.0.1-1build1"
          },
          {
            "binary_name": "rpm",
            "binary_version": "6.0.1-1build1"
          },
          {
            "binary_name": "rpm-common",
            "binary_version": "6.0.1-1build1"
          },
          {
            "binary_name": "rpm2cpio",
            "binary_version": "6.0.1-1build1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:26.04:LTS",
        "name": "rpm",
        "purl": "pkg:deb/ubuntu/rpm@6.0.1-1build1?arch=source\u0026distro=resolute"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "4.20.1+dfsg-3",
        "6.0.0-2",
        "6.0.1-1",
        "6.0.1-1build1"
      ]
    }
  ],
  "aliases": [],
  "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.",
  "id": "UBUNTU-CVE-2021-35938",
  "modified": "2026-05-20T14:53:26Z",
  "published": "2022-08-25T20:15:00Z",
  "references": [
    {
      "type": "REPORT",
      "url": "https://ubuntu.com/security/CVE-2021-35938"
    },
    {
      "type": "REPORT",
      "url": "https://bugzilla.redhat.com/show_bug.cgi?id=1964114"
    },
    {
      "type": "REPORT",
      "url": "https://www.cve.org/CVERecord?id=CVE-2021-35938"
    }
  ],
  "related": [],
  "schema_version": "1.7.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    },
    {
      "score": "medium",
      "type": "Ubuntu"
    }
  ],
  "upstream": [
    "CVE-2021-35938"
  ]
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…