# CVE-2025-49558: Magento Time-of-check Time-of-use (TOCTOU) Race Condition vulnerability

Source: https://junglewise.ai/threats/cve-2025-49558-magento-time-of-check-time-of-use-toctou-race-condition  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2025-08-12  
License: CC BY 4.0 with a link back

CVE-2025-49558 · Severity: low · CVSS 3.1 · Published 2025-08-12

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

Technologies: [magento/community-edition (Packagist)](https://junglewise.ai/threats/technologies/packagist-magento-community-edition), [magento/project-community-edition (Packagist)](https://junglewise.ai/threats/technologies/magento-project-community-edition). Vendors: [Packagist](https://junglewise.ai/threats/vendors/packagist).

## Quick answers

**Is CVE-2025-49558 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2025-49558 being exploited in the wild.

**How severe is CVE-2025-49558?** Low severity, with a CVSS score of 3.1, published 12 August 2025.

**Which products and versions are affected?** magento/community-edition (Packagist) ECOSYSTEM:introduced=2.4.9-alpha1,fixed=2.4.9-alpha2; magento/project-community-edition (Packagist) ECOSYSTEM:introduced=0,last_affected=2.0.2.

**Is there a fix for CVE-2025-49558?** Yes. magento/community-edition (Packagist): upgrade to 2.4.9-alpha2 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2025-49558?** Check whether you run magento/community-edition (Packagist) or magento/project-community-edition (Packagist) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- magento/community-edition (Packagist): upgrade to 2.4.9-alpha2 or later

  ```sh
  composer require magento/community-edition:^2.4.9-alpha2
  ```


## Affected products

- magento/community-edition (Packagist) ECOSYSTEM:introduced=2.4.9-alpha1,fixed=2.4.9-alpha2
- magento/project-community-edition (Packagist) ECOSYSTEM:introduced=0,last_affected=2.0.2

## Identifiers

- CVE-2025-49558
- GHSA-wcmw-8xpp-rwfj

## Related threats

- [Magento vulnerable to privilege escalation due to incorrect authorization](https://junglewise.ai/threats/cve-2025-54267-magento-vulnerable-to-privilege-escalation-due-to-incorrect)
- [Magento vulnerable to stored Cross-Site Scripting (XSS)](https://junglewise.ai/threats/cve-2025-54266-magento-vulnerable-to-stored-cross-site-scripting-xss)
- [Magento allows incorrect authorization](https://junglewise.ai/threats/cve-2025-54265-magento-allows-incorrect-authorization)
- [Magento vulnerable to stored Cross-Site Scripting (XSS)](https://junglewise.ai/threats/cve-2025-54264-magento-vulnerable-to-stored-cross-site-scripting-xss)
- [Magento provides incorrect authorization through a security feature bypass](https://junglewise.ai/threats/cve-2025-54263-magento-provides-incorrect-authorization-through-a-security)
