High

Unauthenticated crypto and weak IV in Magento\Framework\Encryption

  • Disclosed: 20.11.2019
  • Updated: 11.10.2026 12:17

The __construct function in Framework/Encryption/Crypt.php in Magento 2 uses the PHP rand function to generate a random number for the initialization vector, which makes it easier for remote attackers to defeat cryptographic protection mechanisms by guessing the value.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Composer package magento/community-edition >= 2.0, < 2.2.6 2.2.6
Composer package magento/project-community-edition >= 2.0, <= 2.0.2 no fix
Magento (core) magento/community-edition >= 2.0, < 2.2.6, >= 2.0, <= 2.0.2 2.2.6

References

CVSS score 7.5/10
CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Weakness (CWE)
CWE-327
Platform
Composer, Magento
Package
magento/community-edition, magento/project-community-edition
Disclosed
20.11.2019
Updated
11.10.2026 12:17

Sources and licenses

OSV / GitHub Advisory Database - GHSA-h7qw-mxrm-c6h2 - CC BY 4.0

Vulnerability history: magento/project-community-edition

All published vulnerabilities of this package (Composer package), newest first. Shows whether this is a one-off slip or a package that needs watching.

All (161) in the archive
Total entries
161
First → latest
11.2019 10.2025
Without a fix
160
Exploited in attacks
1

Severity breakdown

  • Critical 24
  • High 48
  • Medium 77
  • Low 12

Disclosures per year

  1. 2019: 1
  2. 2020: 0
  3. 2021: 0
  4. 2022: 63
  5. 2023: 31
  6. 2024: 23
  7. 2025: 43
  8. 2026: 0
Severity:
  1. Unauthenticated crypto and weak IV in Magento\Framework\Encryption this entry
    High · 7.5 CVE-2016-6485 >= 2.0, <= 2.0.2 no fix
  2. High · 8.1 CVE-2025-54264 <= 2.0.2 no fix
  3. Critical · 9.1 Exploited in attacks CVE-2025-54236 <= 2.0.2 no fix
  4. High · 8.1 CVE-2025-49555 <= 2.0.2 no fix
  5. High · 7.5 CVE-2025-49554 <= 2.0.2 no fix
  6. High · 8.7 CVE-2025-49557 <= 2.0.2 no fix
  7. High · 8.2 CVE-2025-43585 <= 2.0.2 no fix
  8. Critical · 9.1 CVE-2025-24434 <= 2.0.2 no fix
  9. High · 8.7 CVE-2025-24438 <= 2.0.2 no fix
  10. High · 7.5 CVE-2025-24406 <= 2.0.2 no fix
  11. High · 8.2 CVE-2025-24409 <= 2.0.2 no fix
  12. High · 8.7 CVE-2025-24417 <= 2.0.2 no fix
  13. High · 8.7 CVE-2025-24416 <= 2.0.2 no fix
  14. High · 8.7 CVE-2025-24415 <= 2.0.2 no fix
  15. High · 8.7 CVE-2025-24414 <= 2.0.2 no fix
  16. High · 8.7 CVE-2025-24413 <= 2.0.2 no fix
  17. High · 8.7 CVE-2025-24412 <= 2.0.2 no fix
  18. High · 8.1 CVE-2025-24411 <= 2.0.2 no fix
  19. High · 8.7 CVE-2025-24410 <= 2.0.2 no fix
Show more (20) Showing 21 of 72

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.