CVE-2023-3899Subscription-manager: inadequate authorization of com.redhat.rhsm1 d-bus interface…
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Red Hat Enterprise Linux 9 | libdnf-plugin-subscription-manager | Fixed | 0:1.29.33.1-2.el9_2 | RHSA-2023:4708 |
| Red Hat Enterprise Linux 9 | python3-cloud-what | Fixed | 0:1.29.33.1-2.el9_2 | RHSA-2023:4708 |
| Red Hat Enterprise Linux 9 | python3-subscription-manager-rhsm | Fixed | 0:1.29.33.1-2.el9_2 | RHSA-2023:4708 |
| Red Hat Enterprise Linux 9 | subscription-manager | Fixed | 0:1.29.33.1-2.el9_2 | RHSA-2023:4708 |
| Red Hat Enterprise Linux 9 | subscription-manager-plugin-ostree | Fixed | 0:1.29.33.1-2.el9_2 | RHSA-2023:4708 |
| Red Hat Enterprise Linux 8 | dnf-plugin-subscription-manager | Fixed | 0:1.28.36-3.el8_8 | RHSA-2023:4706 |
| Red Hat Enterprise Linux 8 | python3-cloud-what | Fixed | 0:1.28.36-3.el8_8 | RHSA-2023:4706 |
| Red Hat Enterprise Linux 8 | python3-subscription-manager-rhsm | Fixed | 0:1.28.36-3.el8_8 | RHSA-2023:4706 |
| Red Hat Enterprise Linux 8 | python3-syspurpose | Fixed | 0:1.28.36-3.el8_8 | RHSA-2023:4706 |
| Red Hat Enterprise Linux 8 | rhsm-gtk | Fixed | 0:1.28.36-3.el8_8 | RHSA-2023:4706 |
| Red Hat Enterprise Linux 8 | rhsm-icons | Fixed | 0:1.28.36-3.el8_8 | RHSA-2023:4706 |
| Red Hat Enterprise Linux 8 | subscription-manager | Fixed | 0:1.28.36-3.el8_8 | RHSA-2023:4706 |
| Red Hat Enterprise Linux 8 | subscription-manager-cockpit | Fixed | 0:1.28.36-3.el8_8 | RHSA-2023:4706 |
| Red Hat Enterprise Linux 8 | subscription-manager-initial-setup-addon | Fixed | 0:1.28.36-3.el8_8 | RHSA-2023:4706 |
| Red Hat Enterprise Linux 8 | subscription-manager-migration | Fixed | 0:1.28.36-3.el8_8 | RHSA-2023:4706 |
| Red Hat Enterprise Linux 8 | subscription-manager-plugin-ostree | Fixed | 0:1.28.36-3.el8_8 | RHSA-2023:4706 |
| Red Hat Enterprise Linux 8 | subscription-manager-rhsm-certificates | Fixed | 0:1.28.36-3.el8_8 | RHSA-2023:4706 |
| Red Hat Enterprise Linux 7 | python-syspurpose | Fixed | 0:1.24.52-2.el7_9 | RHSA-2023:4701 |
| Red Hat Enterprise Linux 7 | rhsm-gtk | Fixed | 0:1.24.52-2.el7_9 | RHSA-2023:4701 |
| Red Hat Enterprise Linux 7 | subscription-manager | Fixed | 0:1.24.52-2.el7_9 | RHSA-2023:4701 |
| Red Hat Enterprise Linux 7 | subscription-manager-cockpit | Fixed | 0:1.24.52-2.el7_9 | RHSA-2023:4701 |
| Red Hat Enterprise Linux 7 | subscription-manager-gui | Fixed | 0:1.24.52-2.el7_9 | RHSA-2023:4701 |
| Red Hat Enterprise Linux 7 | subscription-manager-initial-setup-addon | Fixed | 0:1.24.52-2.el7_9 | RHSA-2023:4701 |
| Red Hat Enterprise Linux 7 | subscription-manager-migration | Fixed | 0:1.24.52-2.el7_9 | RHSA-2023:4701 |
| Red Hat Enterprise Linux 7 | subscription-manager-plugin-container | Fixed | 0:1.24.52-2.el7_9 | RHSA-2023:4701 |
| Red Hat Enterprise Linux 7 | subscription-manager-plugin-ostree | Fixed | 0:1.24.52-2.el7_9 | RHSA-2023:4701 |
| Red Hat Enterprise Linux 7 | subscription-manager-rhsm | Fixed | 0:1.24.52-2.el7_9 | RHSA-2023:4701 |
| Red Hat Enterprise Linux 7 | subscription-manager-rhsm-certificates | Fixed | 0:1.24.52-2.el7_9 | RHSA-2023:4701 |
| Red Hat Enterprise Linux 6 | subscription-manager | Not affected | ||
| Red Hat Enterprise Linux 6 | subscription-manager-firstboot | Not affected | ||
| Red Hat Enterprise Linux 6 | subscription-manager-gui | Not affected | ||
| Red Hat Enterprise Linux 6 | subscription-manager-migration | Not affected | ||
| Red Hat Enterprise Linux 6 | subscription-manager-plugin-container | Not affected | ||
| AlmaLinux 9 | libdnf-plugin-subscription-manager | Fixed | 1.29.33.1-2.el9_2.alma.1 | ALSA-2023:4708 |
| AlmaLinux 9 | python3-cloud-what | Fixed | 1.29.33.1-2.el9_2.alma.1 | ALSA-2023:4708 |
| AlmaLinux 9 | python3-subscription-manager-rhsm | Fixed | 1.29.33.1-2.el9_2.alma.1 | ALSA-2023:4708 |
| AlmaLinux 9 | subscription-manager | Fixed | 1.29.33.1-2.el9_2.alma.1 | ALSA-2023:4708 |
| AlmaLinux 9 | subscription-manager-plugin-ostree | Fixed | 1.29.33.1-2.el9_2.alma.1 | ALSA-2023:4708 |
| AlmaLinux 8 | dnf-plugin-subscription-manager | Fixed | 1.28.36-3.el8_8.alma.1 | ALSA-2023:4706 |
| AlmaLinux 8 | python3-cloud-what | Fixed | 1.28.36-3.el8_8.alma.1 | ALSA-2023:4706 |
| AlmaLinux 8 | python3-subscription-manager-rhsm | Fixed | 1.28.36-3.el8_8.alma.1 | ALSA-2023:4706 |
| AlmaLinux 8 | python3-syspurpose | Fixed | 1.28.36-3.el8_8.alma.1 | ALSA-2023:4706 |
| AlmaLinux 8 | subscription-manager | Fixed | 1.28.36-3.el8_8.alma.1 | ALSA-2023:4706 |
| AlmaLinux 8 | subscription-manager-migration | Fixed | 1.28.36-3.el8_8.alma.1 | ALSA-2023:4706 |
| AlmaLinux 8 | subscription-manager-plugin-ostree | Fixed | 1.28.36-3.el8_8.alma.1 | ALSA-2023:4706 |
| AlmaLinux 8 | subscription-manager-rhsm-certificates | Fixed | 1.28.36-3.el8_8.alma.1 | ALSA-2023:4706 |
| Rocky Linux 9 | subscription-manager | Fixed | 0:1.29.33.1-2.el9_2.rocky.0.1 | RLSA-2023:4708 |
| Rocky Linux 8 | subscription-manager | Fixed | 0:1.28.36-3.el8_8.rocky.0.1 | RLSA-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.
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 8.1 Update Services for SAP Solutions
- Red Hat Enterprise Linux 8.2 Advanced Update Support
- Red Hat Enterprise Linux 8.2 Telecommunications Update Service
- Red Hat Enterprise Linux 8.2 Update Services for SAP Solutions
- Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
- Red Hat Enterprise Linux 8.4 Telecommunications Update Service
- Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions
- Red Hat Enterprise Linux 8.6 Extended Update Support
- Red Hat Enterprise Linux 9
- Red Hat Enterprise Linux 9.0 Extended Update Support
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:
- https://access.redhat.com/errata/RHSA-2023:4701 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2023:4702 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2023:4703 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2023:4704 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2023:4705 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2023:4706 (vendor-advisory)
References
- https://access.redhat.com/errata/RHSA-2023:4701
- https://access.redhat.com/errata/RHSA-2023:4702
- https://access.redhat.com/errata/RHSA-2023:4703
- https://access.redhat.com/errata/RHSA-2023:4704
- https://access.redhat.com/errata/RHSA-2023:4705
- https://access.redhat.com/errata/RHSA-2023:4706
- https://access.redhat.com/errata/RHSA-2023:4707
- https://access.redhat.com/errata/RHSA-2023:4708
- https://access.redhat.com/security/cve/CVE-2023-3899
- https://bugzilla.redhat.com/show_bug.cgi?id=2225407
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.