# GHSA-3fvf-2gp4-89wq: Possibility for Denial of Service by overwriting PHP files with language exports

> An attacker with translation management access can cause denial of service by exploiting a path traversal vulnerability in locale exports.

- **Severity:** Not scored
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 18 Mar 2022

## What is GHSA-3fvf-2gp4-89wq?

GHSA-3fvf-2gp4-89wq is a path traversal vulnerability in barryvdh/laravel-translation-manager, published on 18 Mar 2022. Any signed-in user can exploit it over the network, with no action from the victim.

### Official description

### 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/)

## Which versions are affected by GHSA-3fvf-2gp4-89wq?

2 open source packages ship an affected version, including barryvdh/laravel-translation-manager.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `barryvdh/laravel-translation-manager` | Packagist | All versions | 0.6.2 |
| `barryvdh/laravel-translation-manager` | Packagist | All versions | 0.6.2 |

## How do I fix GHSA-3fvf-2gp4-89wq?

Upgrade barryvdh/laravel-translation-manager to 0.6.2 or later.

## Is GHSA-3fvf-2gp4-89wq being exploited?

There is no known exploitation of GHSA-3fvf-2gp4-89wq in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for GHSA-3fvf-2gp4-89wq and fix it if it is affected.

What it is: GHSA-3fvf-2gp4-89wq is a path traversal vulnerability in barryvdh/laravel-translation-manager, published on 18 Mar 2022. Any signed-in user can exploit it over the network, with no action from the victim.
Exploitation: There is no known exploitation of GHSA-3fvf-2gp4-89wq in the wild and no public exploit code.

Affected packages and fixed versions:
- barryvdh/laravel-translation-manager (Packagist): affected all versions; fixed in 0.6.2
- barryvdh/laravel-translation-manager (Packagist): affected all versions; fixed in 0.6.2

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/GHSA-3fvf-2gp4-89wq/ (Markdown: https://insights.sbomify.com/GHSA-3fvf-2gp4-89wq/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/GHSA-3fvf-2gp4-89wq

---
From sbomify Insights: https://insights.sbomify.com/GHSA-3fvf-2gp4-89wq/
Summaries are generated and may contain mistakes; the official description above is the record.
