CVE-2022-24953: Pear/crypt gpg Crypt_GPG Does Not Prevent Additional Vulnerability
MODERATECVE-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
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).
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.
Upgrade pear/crypt_gpg to 1.6.7
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
CVE-2022-24953 Affected Pear/crypt gpg Versions
1 component(s)| 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?
Which Pear/crypt gpg versions are affected?
What version fixes CVE-2022-24953?
Is pear/crypt_gpg affected?
What is the CVSS score of CVE-2022-24953?
What CWE is associated with CVE-2022-24953?
How can I check Packagist dependencies for CVE-2022-24953?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}