Description
Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in RealMag777 InPost Gallery inpost-gallery allows PHP Local File Inclusion.This issue affects InPost Gallery: from n/a through <= 2.1.4.5.
Published: 2025-09-05
Score: 7.5 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability lies in an inadequate validation of filenames used in include/require calls within the InPost Gallery plugin. This flaw can allow an attacker to inject a pathname that references arbitrary files on the server, potentially leading to the execution of malicious PHP code or unauthorised disclosure of sensitive data. Satisfying the CWE‑98 weakness, the flaw is capable of turning the plugin into an execution vector if the attacker can supply a crafted parameter.

Affected Systems

RealMag777’s InPost Gallery WordPress plugin is affected. All releases from the initial release up to and including version 2.1.4.5 are susceptible. The plugin is used on WordPress sites where it provides gallery functionality.

Risk and Exploitability

The flaw carries a CVSS score of 7.5, indicating a high impact vulnerability. The EPSS score is below 1 %, suggesting that, while the risk is high, the likelihood of exploitation at this time is low. The vulnerability is not listed in the CISA KEV catalog. Attackers would likely target the plugin through HTTP requests that supply a manipulated query or form value; local file inclusion can be exploited when the server has erroneously exposed writable directories or when the plugin fails to restrict the include path.

Generated by OpenCVE AI on April 30, 2026 at 02:01 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the InPost Gallery plugin to any version later than 2.1.4.5.
  • Ensure that the WordPress installation enforces open_basedir or similar restrictions so that the include/require statements cannot resolve paths outside the intended directories.
  • Use a web application firewall or a plugin hardening rule to block directory traversal and other LFI‑related request patterns.

Generated by OpenCVE AI on April 30, 2026 at 02:01 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
EUVD EUVD EUVD-2025-27026 Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in RealMag777 InPost Gallery allows PHP Local File Inclusion. This issue affects InPost Gallery: from n/a through 2.1.4.5.
History

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

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/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 RealMag777 InPost Gallery allows PHP Local File Inclusion. This issue affects InPost Gallery: from n/a through 2.1.4.5. Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in RealMag777 InPost Gallery inpost-gallery allows PHP Local File Inclusion.This issue affects InPost Gallery: from n/a through <= 2.1.4.5.
References
Metrics cvssV3_1

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


Fri, 05 Sep 2025 19:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Fri, 05 Sep 2025 16:30: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 RealMag777 InPost Gallery allows PHP Local File Inclusion. This issue affects InPost Gallery: from n/a through 2.1.4.5.
Title WordPress InPost Gallery Plugin <= 2.1.4.5 - Local File Inclusion Vulnerability
Weaknesses CWE-98
References
Metrics cvssV3_1

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


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: Patchstack

Published:

Updated: 2026-05-13T00:11:41.122Z

Reserved: 2025-08-22T11:35:36.401Z

Link: CVE-2025-57889

cve-icon Vulnrichment

Updated: 2025-09-05T18:39:41.678Z

cve-icon NVD

Status : Deferred

Published: 2025-09-05T17:15:38.710

Modified: 2026-04-23T15:32:57.663

Link: CVE-2025-57889

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-04-30T02:15:25Z

Weaknesses
  • CWE-98

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