CVE-2021-29435
Ruby vulnerability analysis and mitigation

Overview

A vulnerability in trestle-auth versions 0.4.0 and 0.4.1, an authentication plugin for the Trestle admin framework, was discovered that allows attackers to bypass Rails' built-in CSRF protection. The vulnerability was disclosed on April 12, 2021, and affects installations using these specific versions of the trestle-auth plugin (GitHub Advisory).

Technical details

The vulnerability stems from incorrect ordering of CSRF protection and authentication before_actions in the controller. This implementation flaw allows attackers to create forms that bypass the built-in CSRF protection mechanisms when submitted by a victim who has an active trestle-auth admin session (GitHub Commit).

Impact

The vulnerability potentially allows attackers to alter protected data, including administrator account credentials, when exploited successfully. This could lead to unauthorized access and modifications to administrative resources within applications using the affected versions of trestle-auth (GitHub Advisory).

Exploitability

The exploit requires an attacker to create a malicious form and have a victim with an active trestle-auth admin session submit it. The vulnerability is classified as moderate severity, suggesting a moderate level of technical complexity for successful exploitation (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been fixed in trestle-auth version 0.4.2, which was released to RubyGems. The fix involves ensuring that CSRF protection is properly prepended before authentication before_actions. Users should upgrade to version 0.4.2 or later to mitigate this vulnerability (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related Ruby vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-55107CRITICAL10
  • Ruby logoRuby
  • kobako
NoYesAug 18, 2026
CVE-2026-61666HIGH8.9
  • Ruby logoRuby
  • gitlab-rails-ce-18.1
NoYesAug 17, 2026
CVE-2026-73648MEDIUM5.1
  • Ruby logoRuby
  • ruby3.2-rails-8.0
NoYesAug 13, 2026
CVE-2026-73426MEDIUM4.6
  • JavaScript logoJavaScript
  • ruby3.3-rails-8.1
NoYesAug 18, 2026
CVE-2026-73428MEDIUM4.6
  • JavaScript logoJavaScript
  • trix
NoYesAug 13, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management