GHSA-f57v-q966-7fh6 Monolog Header injection in NativeMailerHandler
Not scored
Published
Check this codebase for GHSA-f57v-q966-7fh6 and fix it if it is affected.
What it is: GHSA-f57v-q966-7fh6 is a vulnerability in monolog/monolog, published on 15 May 2024. It can be exploited over the network, with no action from the victim.
Exploitation: There is no known exploitation of GHSA-f57v-q966-7fh6 in the wild and no public exploit code.
Affected packages and fixed versions:
- monolog/monolog (Packagist): affected from 1.8.0; fixed in 1.12.0
- monolog/monolog (Packagist): affected from 1.8.0; fixed in 1.12.0
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-f57v-q966-7fh6/ (Markdown: https://insights.sbomify.com/GHSA-f57v-q966-7fh6/index.md)
Attackers can manipulate email headers in Monolog's NativeMailerHandler, potentially altering email content or metadata when logs are emailed.
- Exploited in the wild
- Not known
- Login needed
- Not stated
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is GHSA-f57v-q966-7fh6?
GHSA-f57v-q966-7fh6 is a vulnerability in monolog/monolog, published on 15 May 2024. It can be exploited over the network, with no action from the victim.
Official description
A header injection vulnerability has been identified in the NativeMailerHandler of the Monolog library. This vulnerability may allow an attacker to manipulate email headers when log messages are sent via email.
Which versions are affected by GHSA-f57v-q966-7fh6?
2 open source packages ship an affected version, including monolog/monolog.
| Package | Affected | Fixed in |
|---|---|---|
monolog/monolog Packagist | From 1.8.0 | 1.12.0 |
monolog/monolog Packagist | From 1.8.0 | 1.12.0 |
How do I fix GHSA-f57v-q966-7fh6?
Upgrade monolog/monolog to 1.12.0 or later.
Is GHSA-f57v-q966-7fh6 being exploited?
There is no known exploitation of GHSA-f57v-q966-7fh6 in the wild and no public exploit code.