GHSA-2gq2-m628-33xp: Gregwar/rst Gregwar/rst Local File Inclusion Vulnerability Vulnerability

HIGH
Published
Advisory Summary

GHSA-2gq2-m628-33xp is a HIGH gregwar/rst local file inclusion vulnerability vulnerability (General Security Weakness) affecting Gregwar/rst libraries in the Packagist ecosystem. The issue involves gregwar/rst local file inclusion vulnerability. Remediation is available by upgrading affected packages to version 1.0.3.

GHSA-2gq2-m628-33xp at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-2gq2-m628-33xp
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Gregwar/rst
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix GHSA-2gq2-m628-33xp

To remediate this vulnerability, upgrade all affected Gregwar/rst dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

gregwar/rst fixed: 1.0.3
Upgrade gregwar/rst to 1.0.3
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for gregwar/rst

How to Check if You Are Affected

To determine whether your application is affected by GHSA-2gq2-m628-33xp, inspect your project dependencies for Gregwar/rst:

inspect dependencies for gregwar/rst

Analyze the terminal output to locate any version of Gregwar/rst in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0.3), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under General Security Weakness. In Gregwar/rst, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

A Local File Inclusion (LFI) vulnerability has been discovered in the gregwar/rst library, potentially exposing sensitive files on the server to unauthorized users. The issue arises from inadequate input validation, allowing an attacker to manipulate file paths and include arbitrary files.

GHSA-2gq2-m628-33xp Affected Gregwar/rst Versions

1 component(s)
Fixed Versions:
1.0.3
Product / Package Ecosystem Affected Versions Fixed Version
gregwar/rst
Packagist
< 1.0.3
1.0.3

References

Frequently Asked Questions

What is GHSA-2gq2-m628-33xp?
GHSA-2gq2-m628-33xp is a security vulnerability in Gregwar/rst involving gregwar/rst Local File Inclusion Vulnerability under General Security Weakness.
Which Gregwar/rst versions are affected?
Affected versions include releases prior to 1.0.3 across affected packages: gregwar/rst.
What version fixes GHSA-2gq2-m628-33xp?
Upgrading to 1.0.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is gregwar/rst affected?
Yes, gregwar/rst is affected in releases prior to 1.0.3. Upgrade your dependency to 1.0.3 or later.
What CWE is associated with GHSA-2gq2-m628-33xp?
GHSA-2gq2-m628-33xp is classified under General Security Weakness.
How can I check Packagist dependencies for GHSA-2gq2-m628-33xp?
Run the dependency tree command: 'inspect dependencies for gregwar/rst'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-2gq2-m628-33xp",
  "modified" : "2024-05-15T21:49:20Z",
  "published" : "2024-05-15T21:49:20Z",
  "aliases" : [ ],
  "summary" : "gregwar/rst Local File Inclusion Vulnerability",
  "details" : "A Local File Inclusion (LFI) vulnerability has been discovered in the gregwar/rst library, potentially exposing sensitive files on the server to unauthorized users. The issue arises from inadequate input validation, allowing an attacker to manipulate file paths and include arbitrary files.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "gregwar/rst"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.0.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/Gregwar/RST/pull/34"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/Gregwar/RST/commit/e8d90ccbeddd91ba3abc506079661dce234f9870"
  }, {
    "type" : "WEB",
    "url" : "https://hackerone.com/reports/179034"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/gregwar/rst/2016-10-31.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/Gregwar/RST"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-05-15T21:49:20Z",
    "nvd_published_at" : null
  }
}