CVEfocus › CVE database › CVE-2023-3899

CVE-2023-3899Subscription-manager: inadequate authorization of com.redhat.rhsm1 d-bus interface…

CVSS 7.8 HighEPSS 0.3% (higher than 15% of CVEs)Published 2023-08-23Updated 2026-11-07Assigner: redhat

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.

CWE-285

What to do

Fixed builds are available from AlmaLinux, Red Hat, Rocky Linux: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

43Fixed
5Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Red Hat Enterprise Linux 9libdnf-plugin-subscription-managerFixed0:1.29.33.1-2.el9_2RHSA-2023:4708
Red Hat Enterprise Linux 9python3-cloud-whatFixed0:1.29.33.1-2.el9_2RHSA-2023:4708
Red Hat Enterprise Linux 9python3-subscription-manager-rhsmFixed0:1.29.33.1-2.el9_2RHSA-2023:4708
Red Hat Enterprise Linux 9subscription-managerFixed0:1.29.33.1-2.el9_2RHSA-2023:4708
Red Hat Enterprise Linux 9subscription-manager-plugin-ostreeFixed0:1.29.33.1-2.el9_2RHSA-2023:4708
Red Hat Enterprise Linux 8dnf-plugin-subscription-managerFixed0:1.28.36-3.el8_8RHSA-2023:4706
Red Hat Enterprise Linux 8python3-cloud-whatFixed0:1.28.36-3.el8_8RHSA-2023:4706
Red Hat Enterprise Linux 8python3-subscription-manager-rhsmFixed0:1.28.36-3.el8_8RHSA-2023:4706
Red Hat Enterprise Linux 8python3-syspurposeFixed0:1.28.36-3.el8_8RHSA-2023:4706
Red Hat Enterprise Linux 8rhsm-gtkFixed0:1.28.36-3.el8_8RHSA-2023:4706
Red Hat Enterprise Linux 8rhsm-iconsFixed0:1.28.36-3.el8_8RHSA-2023:4706
Red Hat Enterprise Linux 8subscription-managerFixed0:1.28.36-3.el8_8RHSA-2023:4706
Red Hat Enterprise Linux 8subscription-manager-cockpitFixed0:1.28.36-3.el8_8RHSA-2023:4706
Red Hat Enterprise Linux 8subscription-manager-initial-setup-addonFixed0:1.28.36-3.el8_8RHSA-2023:4706
Red Hat Enterprise Linux 8subscription-manager-migrationFixed0:1.28.36-3.el8_8RHSA-2023:4706
Red Hat Enterprise Linux 8subscription-manager-plugin-ostreeFixed0:1.28.36-3.el8_8RHSA-2023:4706
Red Hat Enterprise Linux 8subscription-manager-rhsm-certificatesFixed0:1.28.36-3.el8_8RHSA-2023:4706
Red Hat Enterprise Linux 7python-syspurposeFixed0:1.24.52-2.el7_9RHSA-2023:4701
Red Hat Enterprise Linux 7rhsm-gtkFixed0:1.24.52-2.el7_9RHSA-2023:4701
Red Hat Enterprise Linux 7subscription-managerFixed0:1.24.52-2.el7_9RHSA-2023:4701
Red Hat Enterprise Linux 7subscription-manager-cockpitFixed0:1.24.52-2.el7_9RHSA-2023:4701
Red Hat Enterprise Linux 7subscription-manager-guiFixed0:1.24.52-2.el7_9RHSA-2023:4701
Red Hat Enterprise Linux 7subscription-manager-initial-setup-addonFixed0:1.24.52-2.el7_9RHSA-2023:4701
Red Hat Enterprise Linux 7subscription-manager-migrationFixed0:1.24.52-2.el7_9RHSA-2023:4701
Red Hat Enterprise Linux 7subscription-manager-plugin-containerFixed0:1.24.52-2.el7_9RHSA-2023:4701
Red Hat Enterprise Linux 7subscription-manager-plugin-ostreeFixed0:1.24.52-2.el7_9RHSA-2023:4701
Red Hat Enterprise Linux 7subscription-manager-rhsmFixed0:1.24.52-2.el7_9RHSA-2023:4701
Red Hat Enterprise Linux 7subscription-manager-rhsm-certificatesFixed0:1.24.52-2.el7_9RHSA-2023:4701
Red Hat Enterprise Linux 6subscription-managerNot affected
Red Hat Enterprise Linux 6subscription-manager-firstbootNot affected
Red Hat Enterprise Linux 6subscription-manager-guiNot affected
Red Hat Enterprise Linux 6subscription-manager-migrationNot affected
Red Hat Enterprise Linux 6subscription-manager-plugin-containerNot affected
AlmaLinux 9libdnf-plugin-subscription-managerFixed1.29.33.1-2.el9_2.alma.1ALSA-2023:4708
AlmaLinux 9python3-cloud-whatFixed1.29.33.1-2.el9_2.alma.1ALSA-2023:4708
AlmaLinux 9python3-subscription-manager-rhsmFixed1.29.33.1-2.el9_2.alma.1ALSA-2023:4708
AlmaLinux 9subscription-managerFixed1.29.33.1-2.el9_2.alma.1ALSA-2023:4708
AlmaLinux 9subscription-manager-plugin-ostreeFixed1.29.33.1-2.el9_2.alma.1ALSA-2023:4708
AlmaLinux 8dnf-plugin-subscription-managerFixed1.28.36-3.el8_8.alma.1ALSA-2023:4706
AlmaLinux 8python3-cloud-whatFixed1.28.36-3.el8_8.alma.1ALSA-2023:4706
AlmaLinux 8python3-subscription-manager-rhsmFixed1.28.36-3.el8_8.alma.1ALSA-2023:4706
AlmaLinux 8python3-syspurposeFixed1.28.36-3.el8_8.alma.1ALSA-2023:4706
AlmaLinux 8subscription-managerFixed1.28.36-3.el8_8.alma.1ALSA-2023:4706
AlmaLinux 8subscription-manager-migrationFixed1.28.36-3.el8_8.alma.1ALSA-2023:4706
AlmaLinux 8subscription-manager-plugin-ostreeFixed1.28.36-3.el8_8.alma.1ALSA-2023:4706
AlmaLinux 8subscription-manager-rhsm-certificatesFixed1.28.36-3.el8_8.alma.1ALSA-2023:4706
Rocky Linux 9subscription-managerFixed0:1.29.33.1-2.el9_2.rocky.0.1RLSA-2023:4708
Rocky Linux 8subscription-managerFixed0:1.28.36-3.el8_8.rocky.0.1RLSA-2023:4706

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Workaround: A workaround is to mask rhsm.service using: ~~~ systemctl mask rhsm.service ~~~ When 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"

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.