Skip to content
Fencer Intel
medium 5.3

CVE-2018-19789 json

Symfony Path Disclosure

published 7y ago modified 4mo ago also GHSA-x3cf-w64x-4cp2 , EUVD-2022-5696

cvss
5.3
version 3.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
3.6%
EPSS 3.6% chance of exploitation in 30 days, percentile 89%
public exploits
0
none known

Summary

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.

Patch / fix

  • packagist symfony/symfony 2.7.50, 2.8.49, 3.4.20, 4.0.15, 4.1.9, 4.2.1
  • packagist symfony/form 2.7.50, 2.8.49, 3.4.20, 4.0.15, 4.1.9, 4.2.1
  • sensiolabs symfony 2.7.50, 2.8.49, 3.4.20, 4.0.15, 4.1.9, 4.2.1
  • symfony Debian 14, Debian 13, Debian 12 3.4.20+dfsg-1

debian advisories DEBIAN-CVE-2018-19789

Is CVE-2018-19789 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2018-19789 updated

php-symfony: Multiple vulnerabilities fixed in symfony 2.8.7

  • Red Hat All currently supported Red Hat products
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

3.59% chance of exploitation in the next 30 days, higher than 89% of all scored CVEs (FIRST EPSS, 2026-11-09).

CVSS scores

assigned by version score vector
NVD 3.0 5.3 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
NVD 2.0 5.0 AV:N/AC:L/Au:N/C:P/I:N/A:N
GitHub 3.0 5.3 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Affected packages

ecosystem package affected fixed in
packagist symfony/symfony
>=2.7.0, <2.7.50
>=2.8.0, <2.8.49
>=3.0.0, <3.4.20
>=4.0.0, <4.0.15
>=4.1.0, <4.1.9
>=4.2.0, <4.2.1
2.7.50
2.8.49
3.4.20
4.0.15
4.1.9
4.2.1
packagist symfony/form
>=2.7.0, <2.7.50
>=2.8.0, <2.8.49
>=3.0.0, <3.4.20
>=4.0.0, <4.0.15
>=4.1.0, <4.1.9
>=4.2.0, <4.2.1
2.7.50
2.8.49
3.4.20
4.0.15
4.1.9
4.2.1

Classification

Weakness
  • CWE-434 Unrestricted Upload of File with Dangerous Type

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.