Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2025-22656: Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') in Oscar Alvarez Cookie Monster

0
Unknown
VulnerabilityCVE-2025-22656cvecve-2025-22656
Published: Tue Feb 18 2025 (02/18/2025, 19:54:28 UTC)
Source: CVE Database V5
Vendor/Project: Oscar Alvarez
Product: Cookie Monster

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.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/02/2026, 10:34:18 UTC

Technical Analysis

CVE-2025-22656 is a Local File Inclusion (LFI) vulnerability identified in the Oscar Alvarez Cookie Monster PHP application, specifically in versions up to and including 1.2.2. The vulnerability stems from improper validation and control over the filename parameter used in PHP's include or require statements. This flaw allows an attacker to manipulate the filename input to include arbitrary local files on the server. By exploiting this vulnerability, an attacker can read sensitive files such as configuration files, password files, or application source code, potentially leading to information disclosure. In some cases, if combined with other vulnerabilities or misconfigurations, it could lead to remote code execution or full system compromise. The vulnerability is classified as a Local File Inclusion rather than Remote File Inclusion, indicating that the attacker can only include files already present on the server. No CVSS score has been assigned yet, and no patches or known exploits have been reported at the time of publication. The vulnerability was reserved in early January 2025 and published in February 2025. The absence of patches means users of Cookie Monster should implement immediate mitigations to reduce risk. This vulnerability is critical for environments where Cookie Monster is used to process untrusted input in PHP include/require statements without proper sanitization or validation.

Potential Impact

The impact of CVE-2025-22656 can be significant for organizations using the vulnerable Cookie Monster PHP application. Successful exploitation can lead to unauthorized disclosure of sensitive information, such as configuration files containing database credentials or API keys, which can facilitate further attacks. In some scenarios, attackers might leverage this vulnerability to execute arbitrary code or escalate privileges, leading to full system compromise. This can result in data breaches, service disruption, reputational damage, and regulatory penalties. Since PHP is widely used globally for web applications, organizations relying on Cookie Monster for cookie management or related functionality may face increased risk. The lack of patches and known exploits suggests the vulnerability is not yet widely exploited, but the potential for damage is high if attackers develop reliable exploit techniques. Organizations with web-facing PHP applications that incorporate Cookie Monster are particularly at risk, especially if they do not have strong input validation or web application firewalls in place.

Mitigation Recommendations

To mitigate CVE-2025-22656, organizations should first apply any available patches or updates from the vendor once released. Until then, immediate steps include: 1) Audit and sanitize all user inputs that influence include/require statements to ensure only safe, expected filenames are processed. 2) Implement strict whitelisting of allowable files for inclusion rather than relying on user input directly. 3) Disable PHP functions that allow dynamic file inclusion if not necessary, such as include(), require(), include_once(), and require_once(), or restrict their usage context. 4) Employ web application firewalls (WAFs) with rules designed to detect and block LFI attack patterns. 5) Review server and application logs for suspicious access patterns or attempts to include unexpected files. 6) Limit file permissions on the server to prevent unauthorized reading of sensitive files. 7) Consider isolating the application environment to minimize the impact of a potential compromise. 8) Educate developers on secure coding practices related to file inclusion and input validation. These measures, combined, reduce the risk of exploitation until an official patch is available.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
Patchstack
Date Reserved
2025-01-07T21:02:43.844Z
Cvss Version
null
State
PUBLISHED

Threat ID: 69cd75fee6bfc5ba1df08cc0

Added to database: 4/1/2026, 7:46:06 PM

Last enriched: 4/2/2026, 10:34:18 AM

Last updated: 4/6/2026, 11:30:42 AM

Views: 2

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses