Security readout for executives and security teams
Plain-English summary
CVE-2021-23435 is an open redirect in the Ruby clearance authentication package before 2.5.0. If an application lets users influence the post-login return destination, crafted values with repeated leading slashes can send users to an external site, enabling phishing or trust abuse.
Executive priority
Treat as high priority for internet-facing apps that use clearance. This is less likely to enable direct system takeover, but it can damage user trust and support phishing. Patch or validate exposure during the next security maintenance window.
Technical view
The issue is in handling of session[:return_to]. When user-controlled input reaches that session value, clearance before 2.5.0 may treat a malformed path as safe and redirect outside the application. The source bundle does not identify affected CPEs or enumerate exact vulnerable releases beyond before 2.5.0.
Likely exposure
Exposure is likely limited to Ruby applications using clearance before 2.5.0 with login or authentication flows that store user-influenced return paths in session[:return_to]. Public-facing authentication routes increase business relevance. The bundle lists versions as unspecified apart from the before-2.5.0 description.
Exploitation context
The CVSS vector indicates network reachability, low complexity, no privileges, and required user interaction. The bundle does not report active exploitation, and KEV is false. Impact is mainly phishing, redirect-based trust abuse, and possible disruption depending on application flow.
Researcher notes
Key uncertainty is application-specific reachability: the bug requires user influence over session[:return_to]. Validate vulnerable package versions and redirect handling in the actual app. Do not assume active exploitation from the provided evidence.
Mitigation direction
- Upgrade clearance to 2.5.0 or later where supported.
- Check vendor guidance and the linked pull request before production rollout.
- Restrict return destinations to same-origin relative paths.
- Reject malformed redirect paths with repeated leading slashes.
- Add tests covering unsafe return_to values in authentication flows.
Validation and detection
- Inventory applications and lockfiles for the clearance package version.
- Review code assigning user-controlled input to session[:return_to].
- Confirm authentication redirects cannot leave the trusted application origin.
- Verify unit or e2e tests cover malformed return destinations.
- Check security monitoring for suspicious external redirects from login flows.
Public sources used
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
CVE-2021-23435 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
Open ATT&CK lookup- Severity
- High
- CVSS
- 7.6 (3.1)
- Known Exploited
- No
- Published
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H
CNA and ADP enrichment extracted from CVE v5
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
CVSS vector scores
1 official scoreWe collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H2.84.7Primary CVE scoreVulnerability scoring details
Base CVSS 3.1 score
7.6HighVector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H
Source materials
- CVE List V5 sourceCVE List V5
- https://snyk.io/vuln/SNYK-RUBY-CLEARANCE-1577284CVE reference · x_refsource_MISC
- https://github.com/thoughtbot/clearance/pull/945CVE reference · x_refsource_MISC
Products and packages named in the record
CWE details
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
