{"answers":{"affected":"It affects 3 products.","exploited":"There is no known exploitation of CVE-2022-31252 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2022-31252 is a medium-severity missing authorization vulnerability in Opensuse Leap, published on 6 Oct 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-31252 and fix it if it is affected.\n\nWhat it is: CVE-2022-31252 is a medium-severity missing authorization vulnerability in Opensuse Leap, published on 6 Oct 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-31252 in the wild and no public exploit code.\n\nAffected product: Opensuse Leap. 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-31252/ (Markdown: https://insights.sbomify.com/CVE-2022-31252/index.md)","id":"CVE-2022-31252","markdown":"https://insights.sbomify.com/CVE-2022-31252/index.md","name":"CVE-2022-31252","record":{"aliases":["GHSA-hr65-wxm7-w4jv","SUSE-SU-2022:3353-1","SUSE-SU-2022:3382-1","SUSE-SU-2022:3394-1","openSUSE-SU-2022:10128-1","openSUSE-SU-2024:12335-1"],"analysis":{"component_type":"operating_system","fix_type":"patch","impacts":["privilege_escalation"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"SUSE permissions package","requires_auth":"low_privilege","summary":"Local attackers can influence path resolution to privileged binaries by exploiting unchecked group-writable directories, leading to privilege escalation.","user_interaction":"not_required","vuln_class":"missing_authorization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"suse","cpe":[{"product":"leap","vendor":"opensuse"},{"product":"leap_micro","vendor":"opensuse"},{"product":"linux_enterprise_server","vendor":"suse"}],"cvss":{"score":4.4,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-863","name":"Incorrect Authorization"}],"description":"A Incorrect Authorization vulnerability in chkstat of SUSE Linux Enterprise Server 12-SP5; openSUSE Leap 15.3, openSUSE Leap 15.4, openSUSE Leap Micro 5.2 did not consider group writable path components, allowing local attackers with access to a group what can write to a location included in the path to a privileged binary to influence path resolution. This issue affects: SUSE Linux Enterprise Server 12-SP5 permissions versions prior to 20170707. openSUSE Leap 15.3 permissions versions prior to 20200127. openSUSE Leap 15.4 permissions versions prior to 20201225. openSUSE Leap Micro 5.2 permissions versions prior to 20181225.","ecosystems":["SUSE:Linux Enterprise Micro 5.1","SUSE:Linux Enterprise Micro 5.2","SUSE:Linux Enterprise Module for Basesystem 15 SP3","SUSE:Linux Enterprise Module for Basesystem 15 SP4","SUSE:Linux Enterprise Server 12 SP5","SUSE:Linux Enterprise Server for SAP Applications 12 SP5","openSUSE:Leap 15.3","openSUSE:Leap 15.4","openSUSE:Leap Micro 5.2","openSUSE:Tumbleweed"],"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":"permissions: chkstat does not check for group-writable parent directories or target files in safeOpen()","id":"CVE-2022-31252","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"opensuse:leap","products":["opensuse:leap","suse:linux_enterprise_server"],"type":"missing_authorization","year":"2022"},"n_packages":11,"n_references":1,"next":{"headline":"openldap2: /usr/lib/openldap/start allows ldap user/group to recursively chown arbitrary directory trees to itself","id":"CVE-2022-31253"},"packages":[{"ecosystem":"SUSE:Linux Enterprise Micro 5.1","fixed":["20181225-150200.23.15.1"],"introduced":["0"],"last_affected":[],"package":"permissions","purl":"pkg:rpm/suse/permissions\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.1","source":"SUSE-SU-2022:3394-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.2","fixed":["20181225-150200.23.15.1"],"introduced":["0"],"last_affected":[],"package":"permissions","purl":"pkg:rpm/suse/permissions\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.2","source":"SUSE-SU-2022:3394-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP3","fixed":["20181225-150200.23.15.1"],"introduced":["0"],"last_affected":[],"package":"permissions","purl":"pkg:rpm/suse/permissions\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP3","source":"SUSE-SU-2022:3394-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP4","fixed":["20201225-150400.5.11.1"],"introduced":["0"],"last_affected":[],"package":"permissions","purl":"pkg:rpm/suse/permissions\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP4","source":"SUSE-SU-2022:3353-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12 SP5","fixed":["20170707-6.10.1"],"introduced":["0"],"last_affected":[],"package":"permissions","purl":"pkg:rpm/suse/permissions\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5","source":"SUSE-SU-2022:3382-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP5","fixed":["20170707-6.10.1"],"introduced":["0"],"last_affected":[],"package":"permissions","purl":"pkg:rpm/suse/permissions\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP5","source":"SUSE-SU-2022:3382-1"},{"ecosystem":"openSUSE:Leap 15.3","fixed":["20181225-150200.23.15.1"],"introduced":["0"],"last_affected":[],"package":"permissions","purl":"pkg:rpm/opensuse/permissions\u0026distro=openSUSE%20Leap%2015.3","source":"SUSE-SU-2022:3394-1"},{"ecosystem":"openSUSE:Leap 15.3","fixed":["20200127-lp153.24.12.1"],"introduced":["0"],"last_affected":[],"package":"permissions","purl":"pkg:rpm/opensuse/permissions\u0026distro=openSUSE%20Leap%2015.3","source":"openSUSE-SU-2022:10128-1"},{"ecosystem":"openSUSE:Leap 15.4","fixed":["20201225-150400.5.11.1"],"introduced":["0"],"last_affected":[],"package":"permissions","purl":"pkg:rpm/opensuse/permissions\u0026distro=openSUSE%20Leap%2015.4","source":"SUSE-SU-2022:3353-1"},{"ecosystem":"openSUSE:Leap Micro 5.2","fixed":["20181225-150200.23.15.1"],"introduced":["0"],"last_affected":[],"package":"permissions","purl":"pkg:rpm/opensuse/permissions\u0026distro=openSUSE%20Leap%20Micro%205.2","source":"SUSE-SU-2022:3394-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1599_20220912-1.1"],"introduced":["0"],"last_affected":[],"package":"permissions","purl":"pkg:rpm/opensuse/permissions\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:12335-1"}],"prev":{"headline":"slurm: %post for slurm-testsuite operates as root in user owned directory","id":"CVE-2022-31251"},"products":["SUSE Linux Enterprise Server 12-SP5","openSUSE Leap 15.3","openSUSE Leap 15.4","openSUSE Leap Micro 5.2"],"published":"2022-10-06","related":[{"cvss_score":5.3,"headline":"Oracle Java SE Integrity Check","id":"CVE-2015-4902","kev_date_added":"2022-03-03","published":"2015-10-21"},{"cvss_score":9.9,"headline":"package builds could use directory traversal to write outside of target area","id":"CVE-2017-14804","kev_date_added":null,"published":"2018-03-01"},{"cvss_score":9.8,"headline":"Teeworlds before 0.7.4 has an integer overflow when computing a tilemap size.","id":"CVE-2019-20787","kev_date_added":null,"published":"2020-04-22"},{"cvss_score":9.8,"headline":"Code injection in n/a","id":"CVE-2019-8341","kev_date_added":null,"published":"2019-02-15"},{"cvss_score":9.8,"headline":"Other in n/a","id":"CVE-2019-6438","kev_date_added":null,"published":"2019-01-31"},{"cvss_score":9.8,"headline":"Memory corruption in n/a","id":"CVE-2017-18215","kev_date_added":null,"published":"2018-03-05"},{"cvss_score":9.8,"headline":"Memory corruption in n/a","id":"CVE-2017-6542","kev_date_added":null,"published":"2017-03-27"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"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-16","vendors":["SUSE","openSUSE"]},"summary":"Local attackers can influence path resolution to privileged binaries by exploiting unchecked group-writable directories, leading to privilege escalation.","url":"https://insights.sbomify.com/CVE-2022-31252/"}