Description
Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in Oscar Alvarez Cookie Monster cookie-monster allows PHP Local File Inclusion.This issue affects Cookie Monster: from n/a through <= 1.2.2.
Published: 2025-02-18
Score: 8.1 High
EPSS: 1.1% Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability in the Cookie Monster plugin arises from improper handling of filenames passed to PHP include/require statements, identified as CWE‑98. This flaw permits a Local File Inclusion (LFI) attack, enabling an attacker to read arbitrary files from the server’s filesystem or, in certain configurations, inject and execute malicious PHP code, compromising confidentiality, integrity, and potentially availability of the affected WordPress site.

Affected Systems

Oscar Alvarez’s Cookie Monster WordPress plugin versions up to and including 1.2.2 are affected. The vulnerability is present in all releases from the earliest version through 1.2.2; any WordPress installation using the plugin in this range without mitigation is at risk.

Risk and Exploitability

The CVSS score of 8.1 indicates a high severity issue. An EPSS score of 1% suggests that, while exploitation probability is low, it is not negligible. The vulnerability is not yet listed in the CISA KEV catalog. Inferred attack paths rely on the web server’s ability to pass arbitrary filename parameters to the plugin, which, if an attacker can supply a crafted value via a URL or form input, may trigger local file access. The plugin’s lack of input validation amplifies the risk, especially on systems with loose file permissions.

Generated by OpenCVE AI on May 2, 2026 at 04:24 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Cookie Monster plugin to the latest released version to apply the vendor fix for the LFI flaw.
  • If an upgrade is not possible, temporarily disable the plugin or remove it from the site to eliminate the vulnerable code path.
  • As a workaround, modify the plugin’s source to restrict include paths to a predefined whitelist or enforce strict filename validation before include/require statements.

Generated by OpenCVE AI on May 2, 2026 at 04:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
EUVD EUVD EUVD-2025-4779 Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in Oscar Alvarez Cookie Monster allows PHP Local File Inclusion. This issue affects Cookie Monster: from n/a through 1.2.2.
History

Thu, 23 Apr 2026 15:00:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H'}


Wed, 01 Apr 2026 23:45:00 +0000

Type Values Removed Values Added
Description Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in Oscar Alvarez Cookie Monster allows PHP Local File Inclusion. This issue affects Cookie Monster: from n/a through 1.2.2. Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in Oscar Alvarez Cookie Monster cookie-monster allows PHP Local File Inclusion.This issue affects Cookie Monster: from n/a through <= 1.2.2.
References
Metrics cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H'}


Tue, 18 Feb 2025 21:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Tue, 18 Feb 2025 20:00:00 +0000

Type Values Removed Values Added
Description Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in Oscar Alvarez Cookie Monster allows PHP Local File Inclusion. This issue affects Cookie Monster: from n/a through 1.2.2.
Title WordPress Cookie Monster Plugin <= 1.2.2 - Local File Inclusion vulnerability
Weaknesses CWE-98
References
Metrics cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H'}


Subscriptions

Wordpress Wordpress
cve-icon MITRE

Status: PUBLISHED

Assigner: Patchstack

Published:

Updated: 2026-04-28T16:11:04.034Z

Reserved: 2025-01-07T21:02:43.844Z

Link: CVE-2025-22656

cve-icon Vulnrichment

Updated: 2025-02-18T20:35:32.818Z

cve-icon NVD

Status : Deferred

Published: 2025-02-18T20:15:27.037

Modified: 2026-04-23T15:23:20.427

Link: CVE-2025-22656

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-05-02T04:30:16Z

Weaknesses
  • CWE-98

    Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion')