{"id":2263,"cve":"CVE-2026-73974","cve_url":"https:\/\/www.cvedetails.com\/cve\/CVE-2026-73974\/","cwe":"CWE-22","cwe_number":22,"cwe_url":"https:\/\/cwe.mitre.org\/data\/definitions\/22","cvss_score":5.5,"published":"2026-08-18","owasp":"A01 Broken Access Control","odc":"Checking","cdc":"Missing Check","category":"Information Leakage","subcategory":"Information Disclosure","scope":"Remote","impact":"Information Disclosure","summary":"Path traversal via\u202f--test argument leads to arbitrary file read.","permalink":"https:\/\/netpack.pt\/vaitp\/vulnerability\/CVE-2026-73974\/","description":"linuxfabrik-lib provides Python modules for database access, caching, shell execution, and API integrations, and Linuxfabrik Monitoring Plugins uses its shared testing helper across check plugins. Prior to linuxfabrik-lib 6.1.0 and Linuxfabrik Monitoring Plugins 7.0.0, lib.lftest.test() treated the first or second element of a --test CSV argument as a filesystem path and returned the file contents as simulated standard output or standard error without path confinement. The hidden but production-accessible --test argument was accepted by sudo-authorized plugins, so an attacker controlling the nagios or icinga account could use check-plugins\/deb-updates\/deb-updates with its default QUERY=1 to disclose every line of a root-readable file. Approximately 22 other plugins exposed filtered content or a root file existence and readability oracle through the same helper, while check-plugins\/network-bonding\/network-bonding and check-plugins\/openstack-swift-stat\/openstack-swift-stat had direct read paths that bypassed the helper. The library fix confines fixture reads to the invoking plugin's unit-test directory and refuses unsafe anchors, and the plugin fix routes the two bypasses through that helper. These issues are fixed in linuxfabrik-lib 6.1.0 and Linuxfabrik Monitoring Plugins 7.0.0.","solution":"Upgrade to linuxfabrik\u2011lib\u202f\u2265\u202f6.1.0 and Linuxfabrik Monitoring Plugins\u202f\u2265\u202f7.0.0.","affected_component":"linuxfabrik-lib, Linuxfabrik Monitoring Plugins","fixed_by_upgrading":true,"vulnerable_code":"import os\nimport sys\nimport csv\n\ndef run():\n    # Simple argument parser for demonstration\n    args = sys.argv[1:]\n    test_arg = None\n    for i, a in enumerate(args):\n        if a == '--test' and i + 1 < len(args):\n            test_arg = args[i + 1]\n            break\n\n    if test_arg:\n        # VULNERABLE: reads arbitrary file path from CSV argument\n        _, path = next(csv.reader([test_arg]))\n        with open(path, 'r') as f:\n            simulated_output = f.read()\n        # The plugin would later return simulated_output as stdout\n        return simulated_output\n    return None\n","patched_code":"import os\nimport sys\nimport csv\n\ndef run():\n    # Simple argument parser for demonstration\n    args = sys.argv[1:]\n    test_arg = None\n    for i, a in enumerate(args):\n        if a == '--test' and i + 1 < len(args):\n            test_arg = args[i + 1]\n            break\n\n    if test_arg:\n        # FIX: confine file reads to the plugin's test fixtures directory\n        _, path = next(csv.reader([test_arg]))\n        base_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), 'tests', 'fixtures'))\n        target_path = os.path.abspath(path)\n        if not target_path.startswith(base_dir):\n            raise ValueError(\"Unsafe test fixture path\")\n        with open(target_path, 'r') as f:\n            simulated_output = f.read()\n        return simulated_output\n    return None\n","payload_needed":false,"payload":null,"payload_status":"none","published_fix":[{"repository":"Linuxfabrik\/lib","commit_url":"https:\/\/github.com\/Linuxfabrik\/lib\/commit\/d665042c55fae83a295ebc0023e8b77f6c473a28","commit_subject":"fix: confine --test fixture reads and reject unsafe db filenames (GHSA-rh9c-rqvg-f7pr)","units":[{"file":"db_sqlite.py","function":"get_db_path"},{"file":"lftest.py","function":null},{"file":"lftest.py","function":"test"}]}],"references":null}