Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2018-19789

MEDIUM 5.3EPSS 90%

Symfony Path Disclosure

Also known as GHSA-x3cf-w64x-4cp2

Mitigation

  • Upgrade symfony/symfony to one of 2.7.50, 2.8.49, 3.4.20, 4.0.15, 4.1.9, 4.2.1 (or later in the same release line).
  • Upgrade symfony/form to one of 2.7.50, 2.8.49, 3.4.20, 4.0.15, 4.1.9, 4.2.1 (or later in the same release line).

Who should check

  • Projects that depend on Packagist package symfony/symfony (>= 2.7.0, < 2.7.50)
  • Projects that depend on Packagist package symfony/form (>= 2.7.0, < 2.7.50)
  • Anyone running n/a (versions: see the vendor advisory)

Vulnerability facts

Affected
symfony/symfony >= 2.7.0, < 2.7.50; symfony/form >= 2.7.0, < 2.7.50
Fixed in
2.7.50, 2.8.49, 3.4.20, 4.0.15, 4.1.9, 4.2.1
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
5.3 (v3.0, NVD)CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/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: Low
  • Integrity impact: None
  • Availability impact: None
EPSS
3.59% chance of exploitation in 30 days (percentile 90, 2026-11-26)
CWE
CWE-434
Published
Modified

Description

An issue was discovered in Symfony 2.7.x before 2.7.50, 2.8.x before 2.8.49, 3.x before 3.4.20, 4.0.x before 4.0.15, 4.1.x before 4.1.9, and 4.2.x before 4.2.1. When using the scalar type hint `string` in a setter method (e.g. `setName(string $name)`) of a class that's the `data_class` of a form, and when a file upload is submitted to the corresponding field instead of a normal text input, then `UploadedFile::__toString()` is called which will then return and disclose the path of the uploaded file. If combined with a local file inclusion issue in certain circumstances this could escalate it to a Remote Code Execution.

Affected and fixed versions

Package / productAffectedFixedSource
Packagist symfony/symfony>= 2.7.0, < 2.7.502.7.50, 2.8.49, 3.4.20, 4.0.15, 4.1.9, 4.2.1osv
Packagist symfony/form>= 2.7.0, < 2.7.502.7.50, 2.8.49, 3.4.20, 4.0.15, 4.1.9, 4.2.1osv
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-2018-19789. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2018-19789.md
Affected: symfony/symfony >= 2.7.0, < 2.7.50; symfony/form >= 2.7.0, < 2.7.50
Fixed in: 2.7.50, 2.8.49, 3.4.20, 4.0.15, 4.1.9, 4.2.1

Steps:
1. Search this machine and project for symfony/symfony (Packagist), symfony/form (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

FAQ

Is CVE-2018-19789 being exploited?

There is no confirmed exploitation: CVE-2018-19789 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 3.59% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2018-19789?

Medium: CVSS 5.3 (v3.0, scored by NVD). Remote, no login needed.

Which versions are affected by CVE-2018-19789?

symfony/symfony >= 2.7.0, < 2.7.50; symfony/form >= 2.7.0, < 2.7.50.

Is there a fix for CVE-2018-19789?

Yes. Fixed in 2.7.50, 2.8.49, 3.4.20, 4.0.15, 4.1.9, 4.2.1. Upgrade symfony/symfony to one of 2.7.50, 2.8.49, 3.4.20, 4.0.15, 4.1.9, 4.2.1 (or later in the same release line). Upgrade symfony/form to one of 2.7.50, 2.8.49, 3.4.20, 4.0.15, 4.1.9, 4.2.1 (or later in the same release line).

How do I check if I'm affected by CVE-2018-19789?

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.

Sponsors