CVE-2024-22047
Ruby vulnerability analysis and mitigation

Overview

CVE-2024-22047 is a race condition vulnerability discovered in Audited versions 4.0.0 to 5.3.3. The vulnerability affects the authentication logging mechanism, where an authenticated user can cause audit log entries to be incorrectly attributed to another user (NVD, GitHub Advisory).

Technical details

The vulnerability stems from a race condition in threaded web server environments where Audited's use of Thread.current can lead to incorrect user attribution in audit logs. The issue has been assigned a CVSS v3.1 base score of 3.1 (Low) with the vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N, indicating network accessibility with high attack complexity and low privileges required (NVD, GitHub Advisory).

Impact

When exploited, this vulnerability can result in audit log entries being incorrectly attributed to users other than those who actually performed the actions. This misattribution can compromise the integrity and reliability of audit trails, potentially affecting accountability and security tracking in affected systems (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been fixed in Audited version 5.3.3. The solution involves replacing the use of Thread.current with RequestStore for thread-safe requests. Users are advised to upgrade to version 5.3.3 or later to address this security issue (GitHub PR, GitHub Release).

Community reactions

The issue was initially reported in November 2021 and was actively discussed in the project's GitHub repository. The community worked collaboratively to develop and implement a solution, leading to the release of version 5.3.3 with the fix (GitHub Issue).

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-68696HIGH8.8
  • RubyRuby
  • ruby-httparty
NoYesDec 23, 2025
CVE-2025-68113MEDIUM6.5
  • JavaScriptJavaScript
  • altcha
NoYesDec 16, 2025
CVE-2025-14762MEDIUM6
  • RubyRuby
  • kube-fluentd-operator
NoYesDec 17, 2025
GHSA-g9jg-w8vm-g96vMEDIUM4.6
  • JavaScriptJavaScript
  • trix
NoYesDec 31, 2025
CVE-2025-61594LOW2.7
  • RubyRuby
  • rubygem-rake
NoYesDec 30, 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