GHSA-r2r8-36pq-27cm: nzo/url-encryptor-bundle Insecure default secret key and IV allowing anyone to decrypt values
N/A
CVSS Score
Basic Information
CVE ID
-
GHSA ID
EPSS Score
-
CWE
-
Published
5/17/2024
Updated
5/17/2024
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
-
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
nzo/url-encryptor-bundle | composer | >= 5.0.0, < 5.0.1 | 5.0.1 |
nzo/url-encryptor-bundle | composer | >= 4.0.0, < 4.3.2 | 4.3.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from two key issues: 1) The UrlEncryptor
's constructor accepted empty secrets and used a flawed IV derivation method (static length, key reuse). 2) The bundle's configuration
schema permitted empty secrets. The commit patched both by making secrets required and improving IV generation. The __construct
function's pre-patch behavior directly enabled insecure cryptographic parameters, while the Configuration
setup allowed these parameters to remain unconfigured.