Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. prestashop/prestashop
  4. ›
  5. CVE-2018-20717

CVE-2018-20717: Improper Control of Generation of Code ('Code Injection')

May 14, 2022 (updated July 24, 2023)

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.

References

  • blog.ripstech.com/2018/prestashop-remote-code-execution/
  • build.prestashop.com/news/prestashop-1-7-2-5-maintenance-release/
  • github.com/advisories/GHSA-xx67-2j3v-h76p
  • nvd.nist.gov/vuln/detail/CVE-2018-20717

Code Behaviors & Features

Detect and mitigate CVE-2018-20717 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.7.2.5

Fixed versions

  • 1.7.2.5

Solution

Upgrade to version 1.7.2.5 or above.

Impact 8.8 HIGH

CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

packagist/prestashop/prestashop/CVE-2018-20717.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:10 +0000.