CVE-2021-32645: Hyn/multi tenant Open Redirect Vulnerability
MODERATECVE-2021-32645 is a MODERATE (CVSS 4.3) open redirect vulnerability (CWE-601: URL Redirection to Untrusted Site ('Open Redirect')) affecting Hyn/multi tenant libraries in the Packagist ecosystem. The issue involves open redirect. Remediation is available by upgrading affected packages to version 5.7.2.
CVE-2021-32645 at a Glance
Security Impact
CVSS: 4.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N).
How to Fix CVE-2021-32645
To remediate this vulnerability, upgrade all affected Hyn/multi tenant dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade hyn/multi-tenant to 5.7.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for hyn/multi-tenant
How to Check if You Are Affected
To determine whether your application is affected by CVE-2021-32645, inspect your project dependencies for Hyn/multi tenant:
inspect dependencies for hyn/multi-tenant
Analyze the terminal output to locate any version of Hyn/multi tenant in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.7.2), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-601: URL Redirection to Untrusted Site ('Open Redirect'), where the web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect. In Hyn/multi tenant, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2021-32645 Affected Hyn/multi tenant Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
hyn/multi-tenant
|
Packagist |
≥ 5.6.0
< 5.7.2
|
5.7.2
|
References
Frequently Asked Questions
What is CVE-2021-32645?
Which Hyn/multi tenant versions are affected?
What version fixes CVE-2021-32645?
Is hyn/multi-tenant affected?
What is the CVSS score of CVE-2021-32645?
What CWE is associated with CVE-2021-32645?
How can I check Packagist dependencies for CVE-2021-32645?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-4r8q-gv9j-3xx6",
"modified" : "2022-03-18T17:55:07Z",
"published" : "2022-03-18T17:55:07Z",
"aliases" : [ "CVE-2021-32645" ],
"summary" : "Open Redirect",
"details" : "### Impact\nIn 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.\nThis 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`)\n\n### Patches\nVersion 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.\n\n### Workarounds\nThere is a simple way to work around the security issue\n- Set the `force_https` to every tenant to `false`\n\n### References\nhttps://nvd.nist.gov/vuln/detail/CVE-2018-11784\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Contact us in Discord: https://tenancy.dev/chat\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "hyn/multi-tenant"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "5.6.0"
}, {
"fixed" : "5.7.2"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/tenancy/multi-tenant/security/advisories/GHSA-4r8q-gv9j-3xx6"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-32645"
}, {
"type" : "WEB",
"url" : "https://github.com/tenancy/multi-tenant/commit/9c837a21bccce9bcaeb90033ef200d84f0d9e164"
}, {
"type" : "WEB",
"url" : "https://packagist.org/packages/hyn/multi-tenant"
}, {
"type" : "WEB",
"url" : "https://webmasters.googleblog.com/2009/01/open-redirect-urls-is-your-site-being.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-601" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2021-05-27T20:40:11Z",
"nvd_published_at" : "2021-05-27T17:15:00Z"
}
}