CVE-2018-20717 json
PrestaShop PHP Object Injection
published 7y ago modified 4mo ago also GHSA-xx67-2j3v-h76p , EUVD-2022-5874
- cvss
- 8.8
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.7%
- EPSS 2.7% chance of exploitation in 30 days, percentile 85%
- public exploits
- 0
- none known
Summary
In the orders section of PrestaShop before 1.7.2.5, an attack is possible after gaining access to a target store with a user role with the rights of at least a Salesman or higher privileges. The attacker can then inject arbitrary PHP objects into the process and abuse an object chain in order to gain Remote Code Execution. This occurs because protection against serialized objects looks for a 0: followed by an integer, but does not consider 0:+ followed by an integer.
Patch / fix
- packagist prestashop/prestashop 1.7.2.5
- prestashop prestashop 1.7.2.5
Is CVE-2018-20717 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 FencerExploit prediction
2.69% chance of exploitation in the next 30 days, higher than 85% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- blog.ripstech.com https://blog.ripstech.com/2018/prestashop-remote-code-execution/ referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 8.8 | CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 6.5 | AV:N/AC:L/Au:S/C:P/I:P/A:P |
| GitHub | 3.0 | 8.8 | CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | prestashop/prestashop | <1.7.2.5 |
1.7.2.5 |
Classification
- Weakness
-
- CWE-94 Improper Control of Generation of Code
References
-
blog.ripstech.com
/2018/prestashop-remote-code-execution/
exploit, third-party-advisory
-
build.prestashop.com
/news/prestashop-1-7-2-5-maintenance-release/
release-notes, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2018-20717
advisory
-
blog.ripstech.com
/2018/prestashop-remote-code-execution
web
-
build.prestashop.com
/news/prestashop-1-7-2-5-maintenance-release
web
-
github.com
/PrestaShop/PrestaShop
package
Sources
- CVE List CVE-2018-20717
- GitHub Advisory GHSA-xx67-2j3v-h76p
- NVD CVE-2018-20717
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.