Advisory

GHSA-hjp3-5g2q-7jww

Also known as: CVE-2024-22047

Summary

Race Condition leading to logging errors

Details

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

Severity

Low Basis: The source's own band: LOW

Dates

Published
2023-05-01 14:00 UTC
Modified
2026-07-08 06:53 UTC

Affected packages and fixes

audited

RubyGems · All systems

Affected

  • introduced 4.0.0, fixed 5.3.3 (ecosystem)

Fixed versions

5.3.3

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences