CVE-2017-16790
Symfony SSRF Vulnerability via Form Component
Reported by mitre · Published August 6, 2018
symfony/symfony is fixed in 3.3.12, 3.2.13, 2.8.30 and 1 more (Packagist)
An issue was discovered in Symfony before 2.7.38, 2.8.31, 3.2.14, 3.3.13, 3.4-BETA5, and 4.0-BETA5. When a form is submitted by the user, the request handler classes of the Form component merge POST data and uploaded files data into one array. This big array forms the data that are then bound to the form. At this stage there is no difference anymore between submitted POST data and uploaded files. A user can send a crafted HTTP request where the value of a "FileType" is sent as normal POST data that could be interpreted as a local file path on the server-side (for example, "file:///etc/passwd"). If the application did not perform any additional checks about the value submitted to the "FileType", the contents of the given file on the server could have been exposed to the attacker.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| symfony/symfony | Packagist | 3.3.12, 3.2.13, 2.8.30, 2.7.37 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| symfony | symfony | 3.3.0-alpha0, 2.7.0-alpha0, 2.8.0-alpha0 |
| n/a | n/a | * |
| symfony | form | 2.7.0-alpha0, 2.8.0-alpha0, 3.2.0-alpha0 |
Timeline
- Aug 6, 2018 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Nov 21, 2024 CVE Updated
- Apr 6, 2026 Distribution Patch
- Apr 6, 2026 Security Advisory (2 in total, the first dated here)
- Oct 2, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2017-16790
vulnetix vdb fixes CVE-2017-16790
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2017-16790/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_CONFIRM
- DSA-4262 vendor-advisoryx_refsource_DEBIAN
- http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-16790 advisory
- http://symfony.com/blog/cve-2017-16790-ensure-that-submitted-data-are-uploaded-files url
- https://github.com/symfony/symfony/pull/24993 patch