CVE-2022-24953: Pear/crypt gpg Crypt_GPG Does Not Prevent Additional Vulnerability

MODERATE
Advisory Identifier: GHSA-59x4-67mh-px54
CVSS 5.3
CWE-20
Published
Advisory Summary

CVE-2022-24953 is a MODERATE (CVSS 5.3) crypt_gpg does not prevent additional vulnerability (CWE-20: Improper Input Validation) affecting Pear/crypt gpg libraries in the Packagist ecosystem. The issue involves crypt_gpg does not prevent additional options in gpg calls. Remediation is available by upgrading affected packages to version 1.6.7.

CVE-2022-24953 at a Glance

CVE Identifier CVE-2022-24953
GHSA Identifier GHSA-59x4-67mh-px54
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-20: Improper Input Validation
Affected Product Pear/crypt gpg
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 5.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2022-24953

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

pear/crypt_gpg fixed: 1.6.7
Upgrade pear/crypt_gpg to 1.6.7
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 pear/crypt_gpg

How to Check if You Are Affected

To determine whether your application is affected by CVE-2022-24953, inspect your project dependencies for Pear/crypt gpg:

inspect dependencies for pear/crypt_gpg

Analyze the terminal output to locate any version of Pear/crypt gpg in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.6.7), 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-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Pear/crypt gpg, 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 Crypt_GPG extension before 1.6.7 for PHP does not prevent additional options in GPG calls, which presents a risk for certain environments and GPG versions.

CVE-2022-24953 Affected Pear/crypt gpg Versions

1 component(s)
Fixed Versions:
1.6.7
Product / Package Ecosystem Affected Versions Fixed Version
pear/crypt_gpg
Packagist
< 1.6.7
1.6.7

References

Frequently Asked Questions

What is CVE-2022-24953?
CVE-2022-24953 is a security vulnerability in Pear/crypt gpg involving Crypt_GPG does not prevent additional options in GPG calls under CWE-20: Improper Input Validation.
Which Pear/crypt gpg versions are affected?
Affected versions include releases prior to 1.6.7 across affected packages: pear/crypt_gpg.
What version fixes CVE-2022-24953?
Upgrading to 1.6.7 (or the latest patched release for your respective branch) resolves the vulnerability.
Is pear/crypt_gpg affected?
Yes, pear/crypt_gpg is affected in releases prior to 1.6.7. Upgrade your dependency to 1.6.7 or later.
What is the CVSS score of CVE-2022-24953?
CVE-2022-24953 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N.
What CWE is associated with CVE-2022-24953?
CVE-2022-24953 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check Packagist dependencies for CVE-2022-24953?
Run the dependency tree command: 'inspect dependencies for pear/crypt_gpg'. 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-59x4-67mh-px54",
  "modified" : "2022-03-01T18:36:13Z",
  "published" : "2022-02-18T00:00:36Z",
  "aliases" : [ "CVE-2022-24953" ],
  "summary" : "Crypt_GPG does not prevent additional options in GPG calls",
  "details" : "The Crypt_GPG extension before 1.6.7 for PHP does not prevent additional options in GPG calls, which presents a risk for certain environments and GPG versions.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "pear/crypt_gpg"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.6.7"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-24953"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pear/Crypt_GPG/commit/29c0fbe96d0d4063ecd5c9a4644cb65a7fb7cc4e"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pear/Crypt_GPG/commit/74c8f989cefbe0887274b461dc56197e121bfd04"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pear/Crypt_GPG"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-02-22T18:14:03Z",
    "nvd_published_at" : "2022-02-17T05:15:00Z"
  }
}