{"answers":{"affected":"2 open source packages ship an affected version, including hyn/multi-tenant. It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-32645 in the wild and no public exploit code.","fix":"Upgrade hyn/multi-tenant to 5.7.2 or later.","what":"CVE-2021-32645 is a medium-severity vulnerability in tenancy multi-tenant, published on 27 May 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2021-32645 and fix it if it is affected.\n\nWhat it is: CVE-2021-32645 is a medium-severity vulnerability in tenancy multi-tenant, published on 27 May 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2021-32645 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- hyn/multi-tenant (Packagist): affected from 5.6.0; fixed in 5.7.2\n- hyn/multi-tenant (Packagist): affected from 5.6.0; fixed in 5.7.2\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-2021-32645/ (Markdown: https://insights.sbomify.com/CVE-2021-32645/index.md)","id":"CVE-2021-32645","markdown":"https://insights.sbomify.com/CVE-2021-32645/index.md","name":"CVE-2021-32645","record":{"aliases":["GHSA-4r8q-gv9j-3xx6"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":true,"product_category":"Laravel tenancy library","requires_auth":"none","summary":"Attackers can redirect users to malicious sites via crafted URLs in specific Laravel tenancy configurations, requiring a patch or configuration change.","user_interaction":"required","vuln_class":"open_redirect"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"multi-tenant","vendor":"tenancy"}],"cvss":{"score":4.3,"severity":"medium","source":"cna","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","version":"3.0"},"cwes":[{"id":"CWE-601","name":"URL Redirection to Untrusted Site"}],"description":"Tenancy multi-tenant is an open source multi-domain controller for the Laravel web framework. In some situations, it is possible to have open redirects where users can be redirected from your site to any other site using a specially crafted URL. This is only the case for installations where the default Hostname Identification is used and the environment uses tenants that have `force_https` set to `true` (default: `false`). Version 5.7.2 contains the relevant patches to fix this bug. Stripping the URL from special characters to prevent specially crafted URL's from being redirected to. As a work around users can set the `force_https` to every tenant to `false`, however this may degrade connection security.","ecosystems":["Packagist"],"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":"Open Redirect in tenancy","id":"CVE-2021-32645","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"open_redirect","year":"2021"},"n_packages":2,"n_references":4,"next":{"headline":"Escalation of permissions in roomer","id":"CVE-2021-32646"},"packages":[{"ecosystem":"Packagist","fixed":["5.7.2"],"introduced":["5.6.0"],"last_affected":[],"package":"hyn/multi-tenant","purl":null,"source":"GHSA-4r8q-gv9j-3xx6"},{"ecosystem":"Packagist","fixed":["5.7.2"],"introduced":["5.6.0"],"last_affected":[],"package":"hyn/multi-tenant","purl":"pkg:composer/hyn/multi-tenant","source":"GHSA-4r8q-gv9j-3xx6"}],"prev":{"headline":"Cross-site Scripting in Random.php","id":"CVE-2021-32644"},"products":["multi-tenant"],"published":"2021-05-27","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"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-08-03","vendors":["tenancy"]},"summary":"Attackers can redirect users to malicious sites via crafted URLs in specific Laravel tenancy configurations, requiring a patch or configuration change.","url":"https://insights.sbomify.com/CVE-2021-32645/"}