GHSA-87mp-xc4x-x8rh: Asymmetricrypt/asymmetricrypt Asymmetricrypt/asymmetricrypt Padding Oracle Vulnerability Vulnerability

MODERATE
CWE-327
Published
Advisory Summary

GHSA-87mp-xc4x-x8rh is a MODERATE asymmetricrypt/asymmetricrypt padding oracle vulnerability vulnerability (CWE-327: Use of a Broken or Risky Cryptographic Algorithm) affecting Asymmetricrypt/asymmetricrypt libraries in the Packagist ecosystem. The issue involves asymmetricrypt/asymmetricrypt padding oracle vulnerability in rsa encryption. Remediation is available in the latest vendor maintenance releases.

GHSA-87mp-xc4x-x8rh at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-87mp-xc4x-x8rh
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-327: Use of a Broken or Risky Cryptographic Algorithm
Affected Product Asymmetricrypt/asymmetricrypt
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix GHSA-87mp-xc4x-x8rh

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

asymmetricrypt/asymmetricrypt fixed: Latest secure release
Upgrade asymmetricrypt/asymmetricrypt to Latest secure release
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 asymmetricrypt/asymmetricrypt

How to Check if You Are Affected

To determine whether your application is affected by GHSA-87mp-xc4x-x8rh, inspect your project dependencies for Asymmetricrypt/asymmetricrypt:

inspect dependencies for asymmetricrypt/asymmetricrypt

Analyze the terminal output to locate any version of Asymmetricrypt/asymmetricrypt in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), 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 CWE-327: Use of a Broken or Risky Cryptographic Algorithm, where the product uses a broken or risky cryptographic algorithm or protocol. In Asymmetricrypt/asymmetricrypt, 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

The encryption and decryption process were vulnerable against the Bleichenbacher's attack, which is a padding oracle vulnerability disclosed in the 98'. The issue was about the wrong padding utilized, which allowed to retrieve the encrypted content. The OPENSSL_PKCS1_PADDING version, aka PKCS v1.5 was vulnerable (is the one set by default when using openssl_* methods), while the PKCS v2.0 isn't anymore (it's also called OAEP). A fix for this vulnerability was merged at https://github.com/Cosmicist/AsymmetriCrypt/pull/5/commits/a0318cfc5022f2a7715322dba3ff91d475ace7c6.

GHSA-87mp-xc4x-x8rh Affected Asymmetricrypt/asymmetricrypt Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
asymmetricrypt/asymmetricrypt
Packagist
≤ 0.3.0

References

Frequently Asked Questions

What is GHSA-87mp-xc4x-x8rh?
GHSA-87mp-xc4x-x8rh is a security vulnerability in Asymmetricrypt/asymmetricrypt involving asymmetricrypt/asymmetricrypt Padding Oracle Vulnerability in RSA Encryption under CWE-327: Use of a Broken or Risky Cryptographic Algorithm.
Which Asymmetricrypt/asymmetricrypt versions are affected?
Affected versions include releases prior to current release patches across affected packages: asymmetricrypt/asymmetricrypt.
What version fixes GHSA-87mp-xc4x-x8rh?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is asymmetricrypt/asymmetricrypt affected?
Yes, asymmetricrypt/asymmetricrypt is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with GHSA-87mp-xc4x-x8rh?
GHSA-87mp-xc4x-x8rh is classified under CWE-327: Use of a Broken or Risky Cryptographic Algorithm (The product uses a broken or risky cryptographic algorithm or protocol.).
How can I check Packagist dependencies for GHSA-87mp-xc4x-x8rh?
Run the dependency tree command: 'inspect dependencies for asymmetricrypt/asymmetricrypt'. 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-87mp-xc4x-x8rh",
  "modified" : "2024-05-15T17:47:31Z",
  "published" : "2024-05-15T17:47:31Z",
  "aliases" : [ ],
  "summary" : "asymmetricrypt/asymmetricrypt Padding Oracle Vulnerability in RSA Encryption",
  "details" : "The encryption and decryption process were vulnerable against the Bleichenbacher's attack, which is a padding oracle vulnerability disclosed in the 98'.\nThe issue was about the wrong padding utilized, which allowed to retrieve the encrypted content.\nThe OPENSSL_PKCS1_PADDING version, aka PKCS v1.5 was vulnerable (is the one set by default when using openssl_* methods), while the PKCS v2.0 isn't anymore (it's also called OAEP).\n\nA fix for this vulnerability was merged at https://github.com/Cosmicist/AsymmetriCrypt/pull/5/commits/a0318cfc5022f2a7715322dba3ff91d475ace7c6.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "asymmetricrypt/asymmetricrypt"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "0.3.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/Cosmicist/AsymmetriCrypt/issues/4"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/Cosmicist/AsymmetriCrypt/pull/5"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/Cosmicist/AsymmetriCrypt"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/asymmetricrypt/asymmetricrypt/2017-11-20.yaml"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-327" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-05-15T17:47:31Z",
    "nvd_published_at" : null
  }
}