GHSA-r2r8-36pq-27cm: Nzo/url encryptor bundle Nzo/url-encryptor-bundle Insecure Default Secret Key Vulnerability

HIGH
Published
Advisory Summary

GHSA-r2r8-36pq-27cm is a HIGH nzo/url-encryptor-bundle insecure default secret key vulnerability (General Security Weakness) affecting Nzo/url encryptor bundle libraries in the Packagist ecosystem. The issue involves nzo/url-encryptor-bundle insecure default secret key and iv allowing anyone to decrypt values. Remediation is available by upgrading affected packages to version 5.0.1, 4.3.2.

GHSA-r2r8-36pq-27cm at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-r2r8-36pq-27cm
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Nzo/url encryptor bundle
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix GHSA-r2r8-36pq-27cm

To remediate this vulnerability, upgrade all affected Nzo/url encryptor bundle dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

nzo/url-encryptor-bundle fixed: 5.0.1
Upgrade nzo/url-encryptor-bundle to 5.0.1
nzo/url-encryptor-bundle fixed: 4.3.2
Upgrade nzo/url-encryptor-bundle to 4.3.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for nzo/url-encryptor-bundle

How to Check if You Are Affected

To determine whether your application is affected by GHSA-r2r8-36pq-27cm, inspect your project dependencies for Nzo/url encryptor bundle:

inspect dependencies for nzo/url-encryptor-bundle

Analyze the terminal output to locate any version of Nzo/url encryptor bundle in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.0.1), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under General Security Weakness. In Nzo/url encryptor bundle, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Versions of nzo/url-encryptor-bundle prior to 5.0.1 and 4.3.2 are affected by a security vulnerability related to the lack of mandatory key and IV requirements. By default, the bundle uses the aes-256-ctr algorithm, which is susceptible to malleability attacks, potentially leading to Insecure Direct Object Reference (IDOR) vulnerabilities. Additionally, the reuse of keys enables users to decrypt and modify encrypted data if they can guess the plaintext of one ciphertext.

GHSA-r2r8-36pq-27cm Affected Nzo/url encryptor bundle Versions

2 component(s)
Fixed Versions:
5.0.14.3.2
Product / Package Ecosystem Affected Versions Fixed Version
nzo/url-encryptor-bundle
Packagist
≥ 5.0.0
< 5.0.1
5.0.1
nzo/url-encryptor-bundle
Packagist
≥ 4.0.0
< 4.3.2
4.3.2

References

Frequently Asked Questions

What is GHSA-r2r8-36pq-27cm?
GHSA-r2r8-36pq-27cm is a security vulnerability in Nzo/url encryptor bundle involving nzo/url-encryptor-bundle Insecure default secret key and IV allowing anyone to decrypt values under General Security Weakness.
Which Nzo/url encryptor bundle versions are affected?
Affected versions include releases prior to 5.0.1, 4.3.2 across affected packages: nzo/url-encryptor-bundle.
What version fixes GHSA-r2r8-36pq-27cm?
Upgrading to 5.0.1, 4.3.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is nzo/url-encryptor-bundle affected?
Yes, nzo/url-encryptor-bundle is affected in releases prior to 5.0.1, 4.3.2. Upgrade your dependency to 5.0.1, 4.3.2 or later.
What CWE is associated with GHSA-r2r8-36pq-27cm?
GHSA-r2r8-36pq-27cm is classified under General Security Weakness.
How can I check Packagist dependencies for GHSA-r2r8-36pq-27cm?
Run the dependency tree command: 'inspect dependencies for nzo/url-encryptor-bundle'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-r2r8-36pq-27cm",
  "modified" : "2024-05-17T23:06:52Z",
  "published" : "2024-05-17T23:06:52Z",
  "aliases" : [ ],
  "summary" : "nzo/url-encryptor-bundle Insecure default secret key and IV allowing anyone to decrypt values",
  "details" : "Versions of nzo/url-encryptor-bundle prior to 5.0.1 and 4.3.2 are affected by a security vulnerability related to the lack of mandatory key and IV requirements. By default, the bundle uses the aes-256-ctr algorithm, which is susceptible to malleability attacks, potentially leading to Insecure Direct Object Reference (IDOR) vulnerabilities. Additionally, the reuse of keys enables users to decrypt and modify encrypted data if they can guess the plaintext of one ciphertext.\n\n",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "nzo/url-encryptor-bundle"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "5.0.0"
      }, {
        "fixed" : "5.0.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "nzo/url-encryptor-bundle"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.0.0"
      }, {
        "fixed" : "4.3.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/nayzo/NzoUrlEncryptorBundle/commit/ba3af1a9bcf3bedcc0ed5948979f482e2134da1a"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/nayzo/NzoUrlEncryptorBundle/commit/bd8232501c12c9df1bc45b1970870ef665218581"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/nzo/url-encryptor-bundle/2020-05-03.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/nayzo/NzoUrlEncryptorBundle"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-05-17T23:06:52Z",
    "nvd_published_at" : null
  }
}