{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-31251 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2022-31251 is a medium-severity vulnerability in openSUSE Factory, published on 7 Sep 2022. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-31251 and fix it if it is affected.\n\nWhat it is: CVE-2022-31251 is a medium-severity vulnerability in openSUSE Factory, published on 7 Sep 2022. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2022-31251 in the wild and no public exploit code.\n\nAffected product: openSUSE Factory. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2022-31251/ (Markdown: https://insights.sbomify.com/CVE-2022-31251/index.md)","id":"CVE-2022-31251","markdown":"https://insights.sbomify.com/CVE-2022-31251/index.md","name":"CVE-2022-31251","record":{"aliases":["GHSA-rw8f-7p48-8m3h","openSUSE-SU-2024:12225-1"],"analysis":{"component_type":"operating_system","fix_type":"patch","impacts":["privilege_escalation"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"openSUSE package","requires_auth":"low_privilege","summary":"Local attackers controlling the slurm user can escalate privileges to root due to incorrect default permissions in the testsuite packaging.","user_interaction":"not_required","vuln_class":"privilege_escalation"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"suse","cpe":[{"product":"factory","vendor":"opensuse"}],"cvss":{"score":6.5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:H","version":"3.1"},"cwes":[{"id":"CWE-276","name":"Incorrect Default Permissions"}],"description":"A Incorrect Default Permissions vulnerability in the packaging of the slurm testsuite of openSUSE Factory allows local attackers with control over the slurm user to escalate to root. This issue affects: openSUSE Factory slurm versions prior to 22.05.2-3.3.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"slurm: %post for slurm-testsuite operates as root in user owned directory","id":"CVE-2022-31251","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"privilege_escalation","year":"2022"},"n_packages":0,"n_references":1,"next":{"headline":"permissions: chkstat does not check for group-writable parent directories or target files in safeOpen()","id":"CVE-2022-31252"},"packages":[],"prev":{"headline":"keylime %post scriplet allows for privilege escalation from keylime user to root","id":"CVE-2022-31250"},"products":["openSUSE Factory"],"published":"2022-09-07","related":[{"cvss_score":7.8,"headline":"virtualbox: missing sticky bit for /etc/vbox allows local root exploit for members of vboxusers group","id":"CVE-2021-25319","kev_date_added":null,"published":"2021-05-05"},{"cvss_score":7.7,"headline":"sendmail: mail to root privilege escalation via sm-client.pre script","id":"CVE-2022-31256","kev_date_added":null,"published":"2022-10-26"},{"cvss_score":5.9,"headline":"parsec: dangerous 777 permissions for /run/parsec","id":"CVE-2021-36781","kev_date_added":null,"published":"2022-01-14"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-09-17","vendors":["SUSE"]},"summary":"Local attackers controlling the slurm user can escalate privileges to root due to incorrect default permissions in the testsuite packaging.","url":"https://insights.sbomify.com/CVE-2022-31251/"}