{"id":"CVE-2022-0860","aliases":["CVE-2022-0860","GHSA-mcg6-h362-cmq5","PYSEC-2022-177"],"related":[],"kind":"vulnerability","state":"published","title":"Improper Authorization in cobbler/cobbler","summary":"Improper Authorization in GitHub repository cobbler/cobbler prior to 3.3.2.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Improper Authorization in GitHub repository cobbler/cobbler prior to 3.3.2.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nIf PAM is correctly configured and a user account is set to expired, the expired user-account is still able to successfully log into Cobbler in all places (Web UI, CLI & XMLRPC-API).\n\nThe same applies to user accounts with passwords set to be expired.\n\n### Patches\n\nThere is a patch for the latest Cobbler `3.3.2` available, however a backport will be done for `3.2.x`.\n\n### Workarounds\n\n- Delete expired accounts which are able to access Cobbler via PAM.\n- Use `chage -l <username>` to lock the account. If the account has SSH-Keys attached then remove them completely.\n\n### References\n\n- Originally discovered by @ysf at https://www.huntr.dev/bounties/c458b868-63df-414e-af10-47e3745caa1d/\n\n### How to test if my Cobbler instance is affected?\n\nThe following `pytest` test assumes that your PAM setup is correct. In case the added user is not able to login, this test does not make sense to be executed.\n\n```python\ndef test_pam_login_with_expired_user():\n    # Arrange\n    # create pam testuser\n    test_username = \"expired_user\"\n    test_password = \"password\"\n    test_api = CobblerAPI()\n    subprocess_1 = subprocess.run(\n        [\"perl\", \"-e\", \"'print crypt(\\\"%s\\\", \\\"%s\\\")'\" % (test_username, test_password)],\n        stdout=subprocess.PIPE\n    )\n    subprocess.run([\"useradd\", \"-p\", subprocess_1.stdout, test_username])\n    # change user to be expired\n    subprocess.run([\"chage\", \"-E0\", test_username])\n\n    # Act\n    result = pam.authenticate(test_api, test_username, test_password)\n\n    # Assert - login should fail\n    assert not result\n```\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [the Cobbler repository](https://github.com/cobbler/cobbler/issues/new/choose)\n* Ask in the [Gitter/Matrix Chat](https://gitter.im/cobbler/community)\n* Email us at [cobbler.project@gmail.com](mailto:cobbler.project@gmail.com)","format":"markdown","source":"ghsa"},{"lang":"es","text":"Una Autorización Inapropiada en el repositorio GitHub cobbler/cobbler versiones anteriores a 3.3.2","source":"nvd"}],"published":"2022-03-11T12:50:10.000Z","modified":"2026-06-17T04:21:23.200Z","severity":{"scorer":"@huntrdev","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N","score":8.2,"rating":"HIGH"},"severities":[{"scorer":"@huntrdev","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N","score":8.2,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N","score":8.2,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N/E:U","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:N","score":6.4,"rating":"MEDIUM"}],"cwes":["CWE-285","CWE-863"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"3.3.2","status":"affected"}],"vendor":"cobbler","product":"cobbler/cobbler","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.3.2"}],"ecosystem":"PyPI","package":"cobbler","purl":"pkg:pypi/cobbler","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"3.3.2"}],"vendor":"cobbler_project","product":"cobbler","cpe":"cpe:2.3:a:cobbler_project:cobbler:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"34"},{"status":"affected","version":"35"},{"status":"affected","version":"36"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"9044aa990a94752fa5bd5a24051adde099280bfa"},{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.3.2"}],"ecosystem":"PyPI","package":"cobbler","purl":"pkg:pypi/cobbler","repo":"https://github.com/cobbler/cobbler","source":"pysec"}],"references":[{"url":"https://huntr.dev/bounties/c458b868-63df-414e-af10-47e3745caa1d","tags":["exploit","issue-tracking","patch","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/cobbler/cobbler/commit/9044aa990a94752fa5bd5a24051adde099280bfa","tags":["fix","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DYWYHWVVRUSPCV5SWBOSAMQJQLTSBTKY/","tags":["vendor-advisory","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/D4KCNZYBQC2FM5SEEDRQZO4LRZ4ZECMG/","tags":["vendor-advisory","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IYSHMF6MEIITFAG7EJ3IQKVUN7MDV2XM/","tags":["vendor-advisory","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/cobbler/cobbler/security/advisories/GHSA-mcg6-h362-cmq5","tags":["web"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-0860","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-mcg6-h362-cmq5","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/cobbler/cobbler","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/cobbler/PYSEC-2022-177.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/D4KCNZYBQC2FM5SEEDRQZO4LRZ4ZECMG","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DYWYHWVVRUSPCV5SWBOSAMQJQLTSBTKY","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/IYSHMF6MEIITFAG7EJ3IQKVUN7MDV2XM","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DYWYHWVVRUSPCV5SWBOSAMQJQLTSBTKY/","tags":["web"],"sources":["pysec"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/IYSHMF6MEIITFAG7EJ3IQKVUN7MDV2XM/","tags":["web"],"sources":["pysec"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/D4KCNZYBQC2FM5SEEDRQZO4LRZ4ZECMG/","tags":["web"],"sources":["pysec"]}],"credits":[],"assigner":"@huntrdev","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-0860","url":"https://www.cve.org/CVERecord?id=CVE-2022-0860","licence":"CVE Terms of Use","modified":"2024-08-02T23:40:04.519Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-mcg6-h362-cmq5","url":"https://github.com/advisories/GHSA-mcg6-h362-cmq5","licence":"CC-BY-4.0","modified":"2024-11-24T05:26:11.734Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-0860","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-0860","licence":"Public domain","modified":"2026-06-17T04:21:23.200Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2022-177","url":"https://osv.dev/vulnerability/PYSEC-2022-177","licence":"CC-BY-4.0","modified":"2025-10-09T08:23:20.076Z"}],"updatedAt":"2026-11-25T22:58:10.046Z","epss":{"score":0.02256,"percentile":0.83451,"date":"2026-12-01T12:00:22.000Z"}}