{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-31256 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2022-31256 is a high-severity vulnerability in openSUSE Factory, published on 26 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-31256 and fix it if it is affected.\n\nWhat it is: CVE-2022-31256 is a high-severity vulnerability in openSUSE Factory, published on 26 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-31256 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-31256/ (Markdown: https://insights.sbomify.com/CVE-2022-31256/index.md)","id":"CVE-2022-31256","markdown":"https://insights.sbomify.com/CVE-2022-31256/index.md","name":"CVE-2022-31256","record":{"aliases":["GHSA-cfgc-fgg8-p3qf","SUSE-SU-2022:3898-1","SUSE-SU-2022:3899-1"],"analysis":{"component_type":"operating_system","fix_type":"patch","impacts":["privilege_escalation"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"openSUSE sendmail","requires_auth":"none","summary":"Local attackers can escalate privileges from mail user to root via improper link resolution in the sendmail systemd service script.","user_interaction":"not_required","vuln_class":"privilege_escalation"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"suse","cpe":[{"product":"factory","vendor":"opensuse"}],"cvss":{"score":7.7,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-59","name":"Improper Link Resolution Before File Access"}],"description":"A Improper Link Resolution Before File Access ('Link Following') vulnerability in a script called by the sendmail systemd service of openSUSE Factory allows local attackers to escalate from user mail to root. This issue affects: SUSE openSUSE Factory sendmail versions prior to 8.17.1-1.1.","ecosystems":["SUSE:Enterprise Storage 6","SUSE:Enterprise Storage 7","SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS","SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS","SUSE:Linux Enterprise High Performance Computing 15-ESPOS","SUSE:Linux Enterprise High Performance Computing 15-LTSS","SUSE:Linux Enterprise Module for Basesystem 15 SP3","SUSE:Linux Enterprise Module for Basesystem 15 SP4","SUSE:Linux Enterprise Module for Legacy 12","SUSE:Linux Enterprise Module for Package Hub 15 SP3","SUSE:Linux Enterprise Module for Package Hub 15 SP4","SUSE:Linux Enterprise Server 15 SP1-BCL","SUSE:Linux Enterprise Server 15 SP1-LTSS","SUSE:Linux Enterprise Server 15 SP2-BCL","SUSE:Linux Enterprise Server 15 SP2-LTSS","SUSE:Linux Enterprise Server 15-LTSS","SUSE:Linux Enterprise Server for SAP Applications 15","SUSE:Linux Enterprise Server for SAP Applications 15 SP1","SUSE:Linux Enterprise Server for SAP Applications 15 SP2","SUSE:Manager Proxy 4.1","SUSE:Manager Retail Branch Server 4.1","SUSE:Manager Server 4.1","openSUSE:Leap 15.3","openSUSE:Leap 15.4"],"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":"sendmail: mail to root privilege escalation via sm-client.pre script","id":"CVE-2022-31256","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"privilege_escalation","year":"2022"},"n_packages":26,"n_references":1,"next":{"headline":"Security feature bypass in Mendix Applications using Mendix 7","id":"CVE-2022-31257"},"packages":[{"ecosystem":"SUSE:Enterprise Storage 6","fixed":["8.15.2-150000.8.9.1"],"introduced":["0"],"last_affected":[],"package":"sendmail","purl":"pkg:rpm/suse/sendmail\u0026distro=SUSE%20Enterprise%20Storage%206","source":"SUSE-SU-2022:3899-1"},{"ecosystem":"SUSE:Enterprise Storage 7","fixed":["8.15.2-150000.8.9.1"],"introduced":["0"],"last_affected":[],"package":"sendmail","purl":"pkg:rpm/suse/sendmail\u0026distro=SUSE%20Enterprise%20Storage%207","source":"SUSE-SU-2022:3899-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS","fixed":["8.15.2-150000.8.9.1"],"introduced":["0"],"last_affected":[],"package":"sendmail","purl":"pkg:rpm/suse/sendmail\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP1-ESPOS","source":"SUSE-SU-2022:3899-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS","fixed":["8.15.2-150000.8.9.1"],"introduced":["0"],"last_affected":[],"package":"sendmail","purl":"pkg:rpm/suse/sendmail\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP1-LTSS","source":"SUSE-SU-2022:3899-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOS","fixed":["8.15.2-150000.8.9.1"],"introduced":["0"],"last_affected":[],"package":"sendmail","purl":"pkg:rpm/suse/sendmail\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP2-ESPOS","source":"SUSE-SU-2022:3899-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS","fixed":["8.15.2-150000.8.9.1"],"introduced":["0"],"last_affected":[],"package":"sendmail","purl":"pkg:rpm/suse/sendmail\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP2-LTSS","source":"SUSE-SU-2022:3899-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15-ESPOS","fixed":["8.15.2-150000.8.9.1"],"introduced":["0"],"last_affected":[],"package":"sendmail","purl":"pkg:rpm/suse/sendmail\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015-ESPOS","source":"SUSE-SU-2022:3899-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15-LTSS","fixed":["8.15.2-150000.8.9.1"],"introduced":["0"],"last_affected":[],"package":"sendmail","purl":"pkg:rpm/suse/sendmail\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015-LTSS","source":"SUSE-SU-2022:3899-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP3","fixed":["8.15.2-150000.8.9.1"],"introduced":["0"],"last_affected":[],"package":"sendmail","purl":"pkg:rpm/suse/sendmail\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP3","source":"SUSE-SU-2022:3899-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP4","fixed":["8.15.2-150000.8.9.1"],"introduced":["0"],"last_affected":[],"package":"sendmail","purl":"pkg:rpm/suse/sendmail\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP4","source":"SUSE-SU-2022:3899-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Legacy 12","fixed":["8.14.9-4.6.1"],"introduced":["0"],"last_affected":[],"package":"sendmail","purl":"pkg:rpm/suse/sendmail\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Legacy%2012","source":"SUSE-SU-2022:3898-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Package Hub 15 SP3","fixed":["8.15.2-150000.8.9.1"],"introduced":["0"],"last_affected":[],"package":"sendmail","purl":"pkg:rpm/suse/sendmail\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Package%20Hub%2015%20SP3","source":"SUSE-SU-2022:3899-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Package Hub 15 SP4","fixed":["8.15.2-150000.8.9.1"],"introduced":["0"],"last_affected":[],"package":"sendmail","purl":"pkg:rpm/suse/sendmail\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Package%20Hub%2015%20SP4","source":"SUSE-SU-2022:3899-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP1-BCL","fixed":["8.15.2-150000.8.9.1"],"introduced":["0"],"last_affected":[],"package":"sendmail","purl":"pkg:rpm/suse/sendmail\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP1-BCL","source":"SUSE-SU-2022:3899-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP1-LTSS","fixed":["8.15.2-150000.8.9.1"],"introduced":["0"],"last_affected":[],"package":"sendmail","purl":"pkg:rpm/suse/sendmail\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP1-LTSS","source":"SUSE-SU-2022:3899-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP2-BCL","fixed":["8.15.2-150000.8.9.1"],"introduced":["0"],"last_affected":[],"package":"sendmail","purl":"pkg:rpm/suse/sendmail\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP2-BCL","source":"SUSE-SU-2022:3899-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP2-LTSS","fixed":["8.15.2-150000.8.9.1"],"introduced":["0"],"last_affected":[],"package":"sendmail","purl":"pkg:rpm/suse/sendmail\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP2-LTSS","source":"SUSE-SU-2022:3899-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15-LTSS","fixed":["8.15.2-150000.8.9.1"],"introduced":["0"],"last_affected":[],"package":"sendmail","purl":"pkg:rpm/suse/sendmail\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015-LTSS","source":"SUSE-SU-2022:3899-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 15","fixed":["8.15.2-150000.8.9.1"],"introduced":["0"],"last_affected":[],"package":"sendmail","purl":"pkg:rpm/suse/sendmail\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015","source":"SUSE-SU-2022:3899-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 15 SP1","fixed":["8.15.2-150000.8.9.1"],"introduced":["0"],"last_affected":[],"package":"sendmail","purl":"pkg:rpm/suse/sendmail\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP1","source":"SUSE-SU-2022:3899-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 15 SP2","fixed":["8.15.2-150000.8.9.1"],"introduced":["0"],"last_affected":[],"package":"sendmail","purl":"pkg:rpm/suse/sendmail\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP2","source":"SUSE-SU-2022:3899-1"},{"ecosystem":"SUSE:Manager Proxy 4.1","fixed":["8.15.2-150000.8.9.1"],"introduced":["0"],"last_affected":[],"package":"sendmail","purl":"pkg:rpm/suse/sendmail\u0026distro=SUSE%20Manager%20Proxy%204.1","source":"SUSE-SU-2022:3899-1"},{"ecosystem":"SUSE:Manager Retail Branch Server 4.1","fixed":["8.15.2-150000.8.9.1"],"introduced":["0"],"last_affected":[],"package":"sendmail","purl":"pkg:rpm/suse/sendmail\u0026distro=SUSE%20Manager%20Retail%20Branch%20Server%204.1","source":"SUSE-SU-2022:3899-1"},{"ecosystem":"SUSE:Manager Server 4.1","fixed":["8.15.2-150000.8.9.1"],"introduced":["0"],"last_affected":[],"package":"sendmail","purl":"pkg:rpm/suse/sendmail\u0026distro=SUSE%20Manager%20Server%204.1","source":"SUSE-SU-2022:3899-1"},{"ecosystem":"openSUSE:Leap 15.3","fixed":["8.15.2-150000.8.9.1"],"introduced":["0"],"last_affected":[],"package":"sendmail","purl":"pkg:rpm/opensuse/sendmail\u0026distro=openSUSE%20Leap%2015.3","source":"SUSE-SU-2022:3899-1"},{"ecosystem":"openSUSE:Leap 15.4","fixed":["8.15.2-150000.8.9.1"],"introduced":["0"],"last_affected":[],"package":"sendmail","purl":"pkg:rpm/opensuse/sendmail\u0026distro=openSUSE%20Leap%2015.4","source":"SUSE-SU-2022:3899-1"}],"prev":{"headline":"SUMA/UYUNI directory path traversal vulnerability in CobblerSnipperViewAction","id":"CVE-2022-31255"},"products":["openSUSE Factory"],"published":"2022-10-26","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":6.5,"headline":"slurm: %post for slurm-testsuite operates as root in user owned directory","id":"CVE-2022-31251","kev_date_added":null,"published":"2022-09-07"},{"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":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"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":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-05-09","vendors":["SUSE"]},"summary":"Local attackers can escalate privileges from mail user to root via improper link resolution in the sendmail systemd service script.","url":"https://insights.sbomify.com/CVE-2022-31256/"}