GitHub Advisoryadvisory · RubyGems
GHSA-hjp3-5g2q-7jww Race Condition leading to logging errors
LOW
Official page ↗
- Aliases
- CVE-2024-22047
- Ecosystem
- RubyGems
- Packages
- audited
- Severity
- Low
- CVSS vector
- CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N
- Reviewed
- 2023-05-01
Affected packages
• RubyGems audited: >= 4.0.0, < 5.3.3 → fixed in 5.3.3
Description
In certain setups with threaded web servers, Audited's use of `Thread.current` can incorrectly attributed audits to the wrong user.
Fixed in 5.3.3.
In March, @convisoappsec noticed that the library in question had a Race Condition problem, which caused logs to be registered at times with different users than those who performed the genuine actions.
• The first issue we identified was from November 2021: https://github.com/collectiveidea/audited/issues/601
• So the solution was implemented in the following Pull Request: https://github.com/collectiveidea/audited/pull/669
• And the feature was published in version 5.3.3: RELEASE: https://github.com/collectiveidea/audited/pull/671
Related
Alias · CVE (1)
- CVE-2024-22047 A race condition exists in Audited 4.0.0 before 5.3.3 that can result in an authenticated user to cause audit log entries to be attributed… vulnerability
References
- https://github.com/collectiveidea/audited/security/advisories/GHSA-hjp3-5g2q-7jww web
- https://nvd.nist.gov/vuln/detail/CVE-2024-22047 advisory
- https://github.com/collectiveidea/audited/issues/601 web
- https://github.com/collectiveidea/audited/pull/669 web
- https://github.com/collectiveidea/audited/pull/671 web
- https://github.com/collectiveidea/audited/commit/342734c9396d8f96d3165f1d8531c626139fa4c6 web
- https://github.com/collectiveidea/audited package
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/audited/CVE-2024-22047.yml web