{
  "threat_severity" : "Important",
  "public_date" : "2023-08-22T14:00:00Z",
  "bugzilla" : {
    "description" : "subscription-manager: inadequate authorization of com.redhat.RHSM1 D-Bus interface allows local users to modify configuration",
    "id" : "2225407",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2225407"
  },
  "cvss3" : {
    "cvss3_base_score" : "7.8",
    "cvss3_scoring_vector" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
    "status" : "verified"
  },
  "cwe" : "CWE-285",
  "details" : [ "A vulnerability was found in subscription-manager that allows local privilege escalation due to inadequate authorization. The D-Bus interface com.redhat.RHSM1 exposes a significant number of methods to all users that could change the state of the registration. By using the com.redhat.RHSM1.Config.SetAll() method, a low-privileged local user could tamper with the state of the registration, by unregistering the system or by changing the current entitlements. This flaw allows an attacker to set arbitrary configuration directives for /etc/rhsm/rhsm.conf, which can be abused to cause a local privilege escalation to an unconfined root.", "A vulnerability was found in subscription-manager that allows local privilege escalation due to inadequate authorization. The D-Bus interface com.redhat.RHSM1 exposes a significant number of methods to all users that could change the state of the registration. By using the com.redhat.RHSM1.Config.SetAll() method, a low-privileged local user could tamper with the state of the registration, by unregistering the system or by changing the current entitlements. This flaw allows an attacker to set arbitrary configuration directives for /etc/rhsm/rhsm.conf, which can be abused to cause a local privilege escalation to an unconfined root." ],
  "statement" : "The vulnerable method SetAll() allows the non-root user to Local Privilege Escalation. The vulnerable method is present since subscription-manager-1.26.15-1. Currently, RHEL-8.2. and above contains the vulnerable code.\nHowever, before the SetAll() was introduced, the worst thing that could happen is to unregister the system and cut off system from updates. No privilege escalation is possible in RHEL-7.9, and RHEL-8.1 as those streams ships subscription-manager-1.25.17.1-1 and prior. Making it Moderate issue for those streams.\nSo, the vulnerability has always been there, the SetAll() method that introduced with later version in subscription-manager turned it to a to Local Privilege Escalation.",
  "acknowledgement" : "This issue was discovered by Thibault Guittet (Senior Product Security Engineer, Red Hat).",
  "affected_release" : [ {
    "product_name" : "Red Hat Enterprise Linux 7",
    "release_date" : "2023-08-22T00:00:00Z",
    "advisory" : "RHSA-2023:4701",
    "cpe" : "cpe:/o:redhat:enterprise_linux:7",
    "package" : "subscription-manager-0:1.24.52-2.el7_9",
    "impact" : "moderate"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8",
    "release_date" : "2023-08-22T00:00:00Z",
    "advisory" : "RHSA-2023:4706",
    "cpe" : "cpe:/a:redhat:enterprise_linux:8",
    "package" : "subscription-manager-0:1.28.36-3.el8_8"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8",
    "release_date" : "2023-08-22T00:00:00Z",
    "advisory" : "RHSA-2023:4706",
    "cpe" : "cpe:/o:redhat:enterprise_linux:8",
    "package" : "subscription-manager-0:1.28.36-3.el8_8"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8.1 Update Services for SAP Solutions",
    "release_date" : "2023-08-22T00:00:00Z",
    "advisory" : "RHSA-2023:4702",
    "cpe" : "cpe:/a:redhat:rhel_e4s:8.1",
    "package" : "subscription-manager-0:1.25.17.1-2.el8_1"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8.2 Advanced Update Support",
    "release_date" : "2023-08-22T00:00:00Z",
    "advisory" : "RHSA-2023:4703",
    "cpe" : "cpe:/a:redhat:rhel_aus:8.2",
    "package" : "subscription-manager-0:1.26.22-2.el8_2"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8.2 Telecommunications Update Service",
    "release_date" : "2023-08-22T00:00:00Z",
    "advisory" : "RHSA-2023:4703",
    "cpe" : "cpe:/a:redhat:rhel_tus:8.2",
    "package" : "subscription-manager-0:1.26.22-2.el8_2"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8.2 Update Services for SAP Solutions",
    "release_date" : "2023-08-22T00:00:00Z",
    "advisory" : "RHSA-2023:4703",
    "cpe" : "cpe:/a:redhat:rhel_e4s:8.2",
    "package" : "subscription-manager-0:1.26.22-2.el8_2"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support",
    "release_date" : "2023-08-22T00:00:00Z",
    "advisory" : "RHSA-2023:4704",
    "cpe" : "cpe:/a:redhat:rhel_aus:8.4",
    "package" : "subscription-manager-0:1.28.13-7.el8_4"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8.4 Telecommunications Update Service",
    "release_date" : "2023-08-22T00:00:00Z",
    "advisory" : "RHSA-2023:4704",
    "cpe" : "cpe:/a:redhat:rhel_tus:8.4",
    "package" : "subscription-manager-0:1.28.13-7.el8_4"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions",
    "release_date" : "2023-08-22T00:00:00Z",
    "advisory" : "RHSA-2023:4704",
    "cpe" : "cpe:/a:redhat:rhel_e4s:8.4",
    "package" : "subscription-manager-0:1.28.13-7.el8_4"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8.6 Extended Update Support",
    "release_date" : "2023-08-22T00:00:00Z",
    "advisory" : "RHSA-2023:4705",
    "cpe" : "cpe:/a:redhat:rhel_eus:8.6",
    "package" : "subscription-manager-0:1.28.29.1-2.el8_6"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9",
    "release_date" : "2023-08-22T00:00:00Z",
    "advisory" : "RHSA-2023:4708",
    "cpe" : "cpe:/o:redhat:enterprise_linux:9",
    "package" : "subscription-manager-0:1.29.33.1-2.el9_2"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9.0 Extended Update Support",
    "release_date" : "2023-08-22T00:00:00Z",
    "advisory" : "RHSA-2023:4707",
    "cpe" : "cpe:/o:redhat:rhel_eus:9.0",
    "package" : "subscription-manager-0:1.29.26.2-2.el9_0"
  } ],
  "package_state" : [ {
    "product_name" : "Red Hat Enterprise Linux 6",
    "fix_state" : "Not affected",
    "package_name" : "subscription-manager",
    "cpe" : "cpe:/o:redhat:enterprise_linux:6"
  } ],
  "references" : [ "https://www.cve.org/CVERecord?id=CVE-2023-3899\nhttps://nvd.nist.gov/vuln/detail/CVE-2023-3899" ],
  "name" : "CVE-2023-3899",
  "mitigation" : {
    "value" : "A workaround is to mask rhsm.service using: \n~~~\nsystemctl mask rhsm.service\n~~~\nWhen the rhsm.service is masked, then no D-Bus call cannot trigger the service and all D-Bus calls will be terminated with error: \"Call failed: Could not activate remote peer.\" But then all applications using D-Bus API will not work until you unmask the service using: \"systemctl unmask rhsm.service\"",
    "lang" : "en:us"
  },
  "csaw" : false
}