Vulnerability DatabaseGHSA-2gq2-m628-33xp

GHSA-2gq2-m628-33xp: 
PHP vulnerability analysis and mitigation

Overview

A Local File Inclusion (LFI) vulnerability was discovered in the gregwar/rst library (GHSA-2gq2-m628-33xp), affecting versions prior to 1.0.3. The vulnerability was identified and disclosed on October 31, 2016, potentially allowing unauthorized access to sensitive files on servers using the affected library (GitHub Advisory).

Technical details

The vulnerability stemmed from inadequate input validation in the file inclusion mechanism of the RST library. The issue allowed attackers to manipulate file paths and include arbitrary files from the system. The security fix implemented in version 1.0.3 introduced two key security features: the ability to disable the include directive completely and an option to restrict file inclusion to a specific directory, effectively jailing the inclusion capability (RST Pull).

Impact

The vulnerability could allow attackers to access sensitive files on the server through local file inclusion, potentially exposing confidential information or system files to unauthorized users (GitHub Advisory).

Exploitability

The vulnerability was discovered and reported through HackerOne, indicating its potential for exploitation. The issue was addressed promptly with the release of version 1.0.3, which implemented security controls to prevent unauthorized file access (Security Advisory).

Mitigation and workarounds

The vulnerability was patched in version 1.0.3 of gregwar/rst. The fix introduced two primary mitigation options: completely disabling the include directive or restricting file inclusion to a specific directory using a jail mechanism. Users are advised to upgrade to version 1.0.3 or later to receive these security improvements (RST Pull).

Community reactions

The security community suggested that future major versions should disable the include directive by default and require explicit enabling to enhance security by default. This recommendation was made to reduce the risk of misconfiguration (RST Pull).

Additional resources


Source: This report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-7rj2-q7vr-2299MEDIUM6.1
  • PHP logoPHP
  • marjose123/filament-lockscreen
NoNoNov 12, 2026
GHSA-8f7v-xf7j-hc3qMEDIUM4.8
  • PHP logoPHP
  • payos/payos
NoYesNov 12, 2026
GHSA-v5hc-3j8r-9h37LOW3.7
  • PHP logoPHP
  • payos/payos
NoYesNov 12, 2026
GHSA-h4qh-3qph-xfm6LOW3.7
  • PHP logoPHP
  • payos/payos
NoYesNov 12, 2026
GHSA-fp4v-3mhm-pwjxLOW3.7
  • PHP logoPHP
  • payos/payos
NoYesNov 12, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management