CVE-2019-18888
Argument injection in a MimeTypeGuesser in Symfony
Also known as GHSA-xhh6-956q-4q69
Mitigation
- Upgrade symfony/http-foundation to one of 2.8.52, 3.4.35, 4.2.12, 4.3.8 (or later in the same release line).
- Upgrade symfony/mime to 4.3.8 or later.
- Upgrade symfony/symfony to one of 2.8.52, 3.4.35, 4.2.12, 4.3.8 (or later in the same release line).
Who should check
- Projects that depend on Packagist package symfony/http-foundation (>= 2.0.0, < 2.8.52)
- Projects that depend on Packagist package symfony/mime (>= 4.3.0, < 4.3.8)
- Projects that depend on Packagist package symfony/symfony (>= 2.0.0, < 2.8.52)
- Anyone running n/a (versions: see the vendor advisory)
Vulnerability facts
- Affected
- symfony/http-foundation >= 2.0.0, < 2.8.52; symfony/mime >= 4.3.0, < 4.3.8; symfony/symfony >= 2.0.0, < 2.8.52
- Fixed in
- 2.8.52, 3.4.35, 4.2.12, 4.3.8
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 7.5 (v3.1, NVD)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: High
- Availability impact: None
- EPSS
- 2.25% chance of exploitation in 30 days (percentile 84, 2026-11-26)
- CWE
- CWE-88
- Modified
Description
An issue was discovered in Symfony 2.8.0 through 2.8.50, 3.4.0 through 3.4.34, 4.2.0 through 4.2.11, and 4.3.0 through 4.3.7. If an application passes unvalidated user input as the file for which MIME type validation should occur, then arbitrary arguments are passed to the underlying file command. This is related to symfony/http-foundation (and symfony/mime in 4.3.x).
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Packagist symfony/http-foundation | >= 2.0.0, < 2.8.52 | 2.8.52, 3.4.35, 4.2.12, 4.3.8 | osv |
| Packagist symfony/mime | >= 4.3.0, < 4.3.8 | 4.3.8 | osv |
| Packagist symfony/symfony | >= 2.0.0, < 2.8.52 | 2.8.52, 3.4.35, 4.2.12, 4.3.8 | osv |
| n/a | — | — | nvd |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2019-18888. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2019-18888.md Affected: symfony/http-foundation >= 2.0.0, < 2.8.52; symfony/mime >= 4.3.0, < 4.3.8; symfony/symfony >= 2.0.0, < 2.8.52 Fixed in: 2.8.52, 3.4.35, 4.2.12, 4.3.8 Steps: 1. Search this machine and project for symfony/http-foundation (Packagist), symfony/mime (Packagist), symfony/symfony (Packagist), n/a: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
- https://symfony.com/blog/cve-2019-18888-prevent-argument-injection-in-a-mimetypeguesser
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DZNXRVHDQBNZQUCNRVZICPPBFRAUWUJX/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VXEAOEANNIVYANTMOJ42NKSU6BGNBULZ/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UED22BOXTL2SSFMGYKA64ZFHGLLJG3EA/
- https://nvd.nist.gov/vuln/detail/CVE-2019-18888
Other
- https://symfony.com/blog/symfony-4-3-8-released
- https://github.com/symfony/symfony/releases/tag/v4.3.8
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/http-foundation/CVE-2019-18888.yaml
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/mime/CVE-2019-18888.yaml
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2019-18888.yaml
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DZNXRVHDQBNZQUCNRVZICPPBFRAUWUJX
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UED22BOXTL2SSFMGYKA64ZFHGLLJG3EA
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VXEAOEANNIVYANTMOJ42NKSU6BGNBULZ
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DZNXRVHDQBNZQUCNRVZICPPBFRAUWUJX
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UED22BOXTL2SSFMGYKA64ZFHGLLJG3EA
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VXEAOEANNIVYANTMOJ42NKSU6BGNBULZ
- https://symfony.com/cve-2019-18888
FAQ
Is CVE-2019-18888 being exploited?
There is no confirmed exploitation: CVE-2019-18888 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 2.25% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2019-18888?
High: CVSS 7.5 (v3.1, scored by NVD). Remote, no login needed.
Which versions are affected by CVE-2019-18888?
symfony/http-foundation >= 2.0.0, < 2.8.52; symfony/mime >= 4.3.0, < 4.3.8; symfony/symfony >= 2.0.0, < 2.8.52.
Is there a fix for CVE-2019-18888?
Yes. Fixed in 2.8.52, 3.4.35, 4.2.12, 4.3.8. Upgrade symfony/http-foundation to one of 2.8.52, 3.4.35, 4.2.12, 4.3.8 (or later in the same release line). Upgrade symfony/mime to 4.3.8 or later. Upgrade symfony/symfony to one of 2.8.52, 3.4.35, 4.2.12, 4.3.8 (or later in the same release line).
How do I check if I'm affected by CVE-2019-18888?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.