GHSA-3fvf-2gp4-89wq: Barryvdh/laravel translation manager Denial of Service Vulnerability

MODERATE
Published
Advisory Summary

GHSA-3fvf-2gp4-89wq is a MODERATE denial of service vulnerability (General Security Weakness) affecting Barryvdh/laravel translation manager libraries in the Packagist ecosystem. The issue involves possibility for denial of service by overwriting php files with language exports. Remediation is available by upgrading affected packages to version 0.6.2.

GHSA-3fvf-2gp4-89wq at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-3fvf-2gp4-89wq
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Barryvdh/laravel translation manager
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix GHSA-3fvf-2gp4-89wq

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

barryvdh/laravel-translation-manager fixed: 0.6.2
Upgrade barryvdh/laravel-translation-manager to 0.6.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 barryvdh/laravel-translation-manager

How to Check if You Are Affected

To determine whether your application is affected by GHSA-3fvf-2gp4-89wq, inspect your project dependencies for Barryvdh/laravel translation manager:

inspect dependencies for barryvdh/laravel-translation-manager

Analyze the terminal output to locate any version of Barryvdh/laravel translation manager in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.6.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 General Security Weakness. In Barryvdh/laravel translation manager, 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

### Impact Laravel Translation Manager didn't check the locale name, which allowed directory traversal when exporting files. The content would be a PHP file returning an array of translations, but this could lead to unexpected results, like denial of service. Access to the Laravel Translation Manager is required, because a new locale would have to be added and published. ### Patches Version 0.6.2 fixes this issue. ### Workarounds Only allow trusted admins to publish/edit translations. ### References https://github.com/barryvdh/laravel-translation-manager/pull/417 ### For more information If you have any questions or comments about this advisory: * Open an issue in https://github.com/barryvdh/laravel-translation-manager * Email me (see Github profile) ### Credits Found and reported by [Natalia Trojanowska](https://www.linkedin.com/in/trojanowskanatalia/)

GHSA-3fvf-2gp4-89wq Affected Barryvdh/laravel translation manager Versions

1 component(s)
Fixed Versions:
0.6.2
Product / Package Ecosystem Affected Versions Fixed Version
barryvdh/laravel-translation-manager
Packagist
< 0.6.2
0.6.2

References

Frequently Asked Questions

What is GHSA-3fvf-2gp4-89wq?
GHSA-3fvf-2gp4-89wq is a security vulnerability in Barryvdh/laravel translation manager involving Possibility for Denial of Service by overwriting PHP files with language exports under General Security Weakness.
Which Barryvdh/laravel translation manager versions are affected?
Affected versions include releases prior to 0.6.2 across affected packages: barryvdh/laravel-translation-manager.
What version fixes GHSA-3fvf-2gp4-89wq?
Upgrading to 0.6.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is barryvdh/laravel-translation-manager affected?
Yes, barryvdh/laravel-translation-manager is affected in releases prior to 0.6.2. Upgrade your dependency to 0.6.2 or later.
What CWE is associated with GHSA-3fvf-2gp4-89wq?
GHSA-3fvf-2gp4-89wq is classified under General Security Weakness.
How can I check Packagist dependencies for GHSA-3fvf-2gp4-89wq?
Run the dependency tree command: 'inspect dependencies for barryvdh/laravel-translation-manager'. 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-3fvf-2gp4-89wq",
  "modified" : "2022-03-18T23:17:15Z",
  "published" : "2022-03-18T23:17:15Z",
  "aliases" : [ ],
  "summary" : "Possibility for Denial of Service by overwriting PHP files with language exports",
  "details" : "### Impact\nLaravel Translation Manager didn't check the locale name, which allowed directory traversal when exporting files. The content would be a PHP file returning an array of translations, but this could lead to unexpected results, like denial of service. Access to the Laravel Translation Manager is required, because a new locale would have to be added and published.\n\n### Patches\nVersion 0.6.2 fixes this issue.\n\n### Workarounds\nOnly allow trusted admins to publish/edit translations.\n\n### References\nhttps://github.com/barryvdh/laravel-translation-manager/pull/417\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in https://github.com/barryvdh/laravel-translation-manager\n* Email me (see Github profile)\n\n### Credits\nFound and reported by [Natalia Trojanowska](https://www.linkedin.com/in/trojanowskanatalia/)",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "barryvdh/laravel-translation-manager"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.6.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/barryvdh/laravel-translation-manager/security/advisories/GHSA-3fvf-2gp4-89wq"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/barryvdh/laravel-translation-manager"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-03-18T23:17:15Z",
    "nvd_published_at" : null
  }
}