GHSA-mvf6-3f2g-xfxf: Endroid/qr code bundle Endroid/qr-code-bundle File Disclosure Vulnerability

MODERATE
CWE-200
Published
Advisory Summary

GHSA-mvf6-3f2g-xfxf is a MODERATE endroid/qr-code-bundle file disclosure vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Endroid/qr code bundle libraries in the Packagist ecosystem. The issue involves endroid/qr-code-bundle file disclosure via logo_path query parameter. Remediation is available by upgrading affected packages to version 3.4.2.

GHSA-mvf6-3f2g-xfxf at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-mvf6-3f2g-xfxf
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected Product Endroid/qr code bundle
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix GHSA-mvf6-3f2g-xfxf

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

endroid/qr-code-bundle fixed: 3.4.2
Upgrade endroid/qr-code-bundle to 3.4.2
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 endroid/qr-code-bundle

How to Check if You Are Affected

To determine whether your application is affected by GHSA-mvf6-3f2g-xfxf, inspect your project dependencies for Endroid/qr code bundle:

inspect dependencies for endroid/qr-code-bundle

Analyze the terminal output to locate any version of Endroid/qr code bundle in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.4.2), 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 CWE-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In Endroid/qr code bundle, 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

Versions of endroid/qr-code-bundle prior to 3.4.2 are affected by a security vulnerability that allows disclosure of files through the logo_path query parameter. The vulnerability arises from the improper handling of non-image data as the logo, which could lead to unintended file disclosure.

GHSA-mvf6-3f2g-xfxf Affected Endroid/qr code bundle Versions

1 component(s)
Fixed Versions:
3.4.2
Product / Package Ecosystem Affected Versions Fixed Version
endroid/qr-code-bundle
Packagist
< 3.4.2
3.4.2

References

Frequently Asked Questions

What is GHSA-mvf6-3f2g-xfxf?
GHSA-mvf6-3f2g-xfxf is a security vulnerability in Endroid/qr code bundle involving endroid/qr-code-bundle File Disclosure via logo_path query parameter under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Which Endroid/qr code bundle versions are affected?
Affected versions include releases prior to 3.4.2 across affected packages: endroid/qr-code-bundle.
What version fixes GHSA-mvf6-3f2g-xfxf?
Upgrading to 3.4.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is endroid/qr-code-bundle affected?
Yes, endroid/qr-code-bundle is affected in releases prior to 3.4.2. Upgrade your dependency to 3.4.2 or later.
What CWE is associated with GHSA-mvf6-3f2g-xfxf?
GHSA-mvf6-3f2g-xfxf is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor (The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.).
How can I check Packagist dependencies for GHSA-mvf6-3f2g-xfxf?
Run the dependency tree command: 'inspect dependencies for endroid/qr-code-bundle'. 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-mvf6-3f2g-xfxf",
  "modified" : "2024-05-15T21:05:13Z",
  "published" : "2024-05-15T21:05:13Z",
  "aliases" : [ ],
  "summary" : "endroid/qr-code-bundle File Disclosure via logo_path query parameter",
  "details" : "Versions of endroid/qr-code-bundle prior to 3.4.2 are affected by a security vulnerability that allows disclosure of files through the logo_path query parameter. The vulnerability arises from the improper handling of non-image data as the logo, which could lead to unintended file disclosure.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "endroid/qr-code-bundle"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.4.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/endroid/qr-code-bundle/commit/51928eaaa30e7db1fd3f1076744dcbc8f8cec8c8"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/endroid/qr-code-bundle/2019-12-22.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/endroid/qr-code-bundle"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/endroid/qr-code-bundle/releases/tag/3.4.2"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-05-15T21:05:13Z",
    "nvd_published_at" : null
  }
}