CVE-2018-19789

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.
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTNIST
5.3 MEDIUM
NETWORK
LOW
NONE
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
mitreCNA
---
---
CVEADP
---
---
Base Score
CVSS 3.x
EPSS Score
Percentile: 74%
VendorProductVersion
sensiolabssymfony
2.7.0 ≤
𝑥
< 2.7.50
sensiolabssymfony
2.8.0 ≤
𝑥
< 2.8.49
sensiolabssymfony
3.0.0 ≤
𝑥
< 3.4.20
sensiolabssymfony
4.0.0 ≤
𝑥
< 4.0.15
sensiolabssymfony
4.1.0 ≤
𝑥
< 4.1.9
sensiolabssymfony
4.2.0 ≤
𝑥
< 4.2.1
debiandebian_linux
8.0
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
symfony
bullseye
4.4.19+dfsg-2+deb11u6
fixed
bookworm
5.4.23+dfsg-1+deb12u2
fixed
sid
6.4.13+dfsg-1
fixed
trixie
6.4.13+dfsg-1
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
symfony
noble
not-affected
mantic
not-affected
lunar
not-affected
kinetic
not-affected
jammy
not-affected
impish
not-affected
hirsute
not-affected
groovy
not-affected
focal
not-affected
eoan
not-affected
disco
not-affected
cosmic
ignored
bionic
needed
xenial
needed
trusty
dne