Magento Time-of-check Time-of-use (TOCTOU) Race Condition vulnerability

Description

Magento versions 2.4.9-alpha1, 2.4.8-p1, 2.4.7-p6, 2.4.6-p11, 2.4.5-p13, 2.4.4-p14 and earlier are affected by a Time-of-check Time-of-use (TOCTOU) Race Condition vulnerability that could result in a security feature bypass. An attacker could exploit this vulnerability by manipulating the timing between the check of a resource's state and its use, allowing unauthorized write access. Exploitation of this issue does not require user interaction.

Basic information

Type
reviewed
Severity
medium
Advisory on GitHub
Open advisory ↗
Repository advisory
Source code
Browse source ↗
Published (advisory)
2025-08-12 18:31:30 UTC
Updated
2025-10-22 20:53:37 UTC
GitHub reviewed
2025-10-22 20:53:35 UTC
NVD published
2025-08-12

EPSS Score

Score Percentile
0.18% 39.84%

CVSS Scores

Base score Version Severity Vector
5.9 3.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:H)
Even with access, the exploit needs extra luck, timing, or a fussy environment to actually work.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:N)
Doesn’t really leak secrets in a meaningful way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:N)
Service keeps running; no real outage angle.

Identifiers

CWEs

CWE id Name
CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition

Affected packages (10)

Vulnerable version ranges and first patched releases as published by GitHub.

Ecosystem Package Vulnerable range First patched Vulnerable functions
composer magento/project-community-edition <= 2.0.2
composer magento/community-edition >= 2.4.9-alpha1, < 2.4.9-alpha2 2.4.9-alpha2
composer magento/community-edition >= 2.4.8-beta1, < 2.4.8-p2 2.4.8-p2
composer magento/community-edition >= 2.4.7-beta1, < 2.4.7-p7 2.4.7-p7
composer magento/community-edition >= 2.4.6-p1, < 2.4.6-p12 2.4.6-p12
composer magento/community-edition < 2.4.5-p14 2.4.5-p14
composer magento/community-edition = 2.4.5
composer magento/community-edition = 2.4.6
composer magento/community-edition = 2.4.7
composer magento/community-edition = 2.4.8

References

cvelogic Threat Intelligence