{"id":"GHSA-hjp3-5g2q-7jww","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. \n\nFixed in 5.3.3. \n\nIn 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.\n\n- The first issue we identified was from November 2021: https://github.com/collectiveidea/audited/issues/601 \n- So the solution was implemented in the following Pull Request: https://github.com/collectiveidea/audited/pull/669 \n- And the feature was published in version 5.3.3: RELEASE: https://github.com/collectiveidea/audited/pull/671\n","aliases":["CVE-2024-22047"],"modified":"2026-07-08T06:53:11.259453576Z","published":"2023-05-01T14:00:47Z","database_specific":{"cwe_ids":[],"severity":"LOW","github_reviewed":true,"github_reviewed_at":"2023-05-01T14:00:47Z","nvd_published_at":null},"references":[{"type":"WEB","url":"https://github.com/collectiveidea/audited/security/advisories/GHSA-hjp3-5g2q-7jww"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-22047"},{"type":"WEB","url":"https://github.com/collectiveidea/audited/issues/601"},{"type":"WEB","url":"https://github.com/collectiveidea/audited/pull/669"},{"type":"WEB","url":"https://github.com/collectiveidea/audited/pull/671"},{"type":"WEB","url":"https://github.com/collectiveidea/audited/commit/342734c9396d8f96d3165f1d8531c626139fa4c6"},{"type":"PACKAGE","url":"https://github.com/collectiveidea/audited"},{"type":"WEB","url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/audited/CVE-2024-22047.yml"}],"affected":[{"package":{"name":"audited","ecosystem":"RubyGems","purl":"pkg:gem/audited"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.0.0"},{"fixed":"5.3.3"}]}],"versions":["4.0.0","4.10.0","4.2.0","4.2.1","4.2.2","4.3.0","4.4.0","4.4.1","4.5.0","4.6.0","4.7.0","4.7.1","4.8.0","4.9.0","5.0.0","5.0.1","5.0.2","5.1.0","5.2.0","5.3.0","5.3.1","5.3.2"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/05/GHSA-hjp3-5g2q-7jww/GHSA-hjp3-5g2q-7jww.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N"}]}