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).

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-2025-66568CRITICAL9.3
  • RubyRuby
  • ruby-saml
NoYesDec 09, 2025
CVE-2025-66567CRITICAL9.3
  • RubyRuby
  • ruby-saml
NoYesDec 09, 2025
GHSA-4249-gjr8-jpq3HIGH8.7
  • RubyRuby
  • prosemirror_to_html
NoYesNov 13, 2025
CVE-2025-64501HIGH7.6
  • RubyRuby
  • prosemirror_to_html
NoYesNov 10, 2025
CVE-2025-61594MEDIUMN/A
  • RubyRuby
  • rubygem-json
NoYesDec 11, 2025

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