CVE-2023-3899
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Summary
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.
Affected Software
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| Red Hat | Red Hat Enterprise Linux 7 | 0:1.24.52-2.el7_9 < * | unaffected |
| Red Hat | Red Hat Enterprise Linux 8 | 0:1.28.36-3.el8_8 < * | unaffected |
| Red Hat | Red Hat Enterprise Linux 8 | 0:1.28.36-3.el8_8 < * | unaffected |
| Red Hat | Red Hat Enterprise Linux 8.1 Update Services for SAP Solutions | 0:1.25.17.1-2.el8_1 < * | unaffected |
| Red Hat | Red Hat Enterprise Linux 8.2 Advanced Update Support | 0:1.26.22-2.el8_2 < * | unaffected |
| Red Hat | Red Hat Enterprise Linux 8.2 Telecommunications Update Service | 0:1.26.22-2.el8_2 < * | unaffected |
| Red Hat | Red Hat Enterprise Linux 8.2 Update Services for SAP Solutions | 0:1.26.22-2.el8_2 < * | unaffected |
| Red Hat | Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support | 0:1.28.13-7.el8_4 < * | unaffected |
| Red Hat | Red Hat Enterprise Linux 8.4 Telecommunications Update Service | 0:1.28.13-7.el8_4 < * | unaffected |
| Red Hat | Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions | 0:1.28.13-7.el8_4 < * | unaffected |
| Red Hat | Red Hat Enterprise Linux 8.6 Extended Update Support | 0:1.28.29.1-2.el8_6 < * | unaffected |
| Red Hat | Red Hat Enterprise Linux 9 | 0:1.29.33.1-2.el9_2 < * | unaffected |
| Red Hat | Red Hat Enterprise Linux 9.0 Extended Update Support | 0:1.29.26.2-2.el9_0 < * | unaffected |
Weaknesses
- CWE-285: Improper Authorization
Workarounds
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"
ADP Enrichment
CVE Program Container
Additional 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
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FJHKSBBZRDFOBNDU35FUKMYQIQYT6UJQ/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZDIHGNLS3TZVX7X2F735OKI4KXPY4AH6/
CISA ADP Vulnrichment
- SSVC:
- Exploitation: none
- Automatable: no
- Technical Impact: total
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
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.