Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. audited
  4. ›
  5. GMS-2023-1308

GMS-2023-1308: Race Condition leading to logging errors

May 1, 2023

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

References

  • github.com/advisories/GHSA-hjp3-5g2q-7jww
  • github.com/collectiveidea/audited/issues/601
  • github.com/collectiveidea/audited/pull/669
  • github.com/collectiveidea/audited/pull/671
  • github.com/collectiveidea/audited/security/advisories/GHSA-hjp3-5g2q-7jww

Code Behaviors & Features

Detect and mitigate GMS-2023-1308 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 4.0.0 before 5.3.3

Fixed versions

  • 5.3.3

Solution

Upgrade to version 5.3.3 or above.

Source file

gem/audited/GMS-2023-1308.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:26 +0000.