CVE-2022-24953
PHP vulnerability analysis and mitigation

Overview

The Crypt_GPG extension before version 1.6.7 for PHP contains a security vulnerability (CVE-2022-24953) that fails to prevent additional options in GPG calls. This vulnerability was discovered and disclosed in February 2022, affecting all versions of the Crypt_GPG package prior to 1.6.7. The vulnerability impacts environments using the PHP Crypt_GPG extension for GPG operations (NVD).

Technical details

The vulnerability stems from the failure to properly validate arguments in API calls, allowing potential manipulation of GPG commands. The issue was addressed by inserting an end-of-options marker ('--') before operation arguments to prevent interpretation of user-supplied input as commands or flags. The vulnerability has been assigned a CVSS v3.1 base score of 5.3 (Medium) with a vector string of CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N (NVD, Debian).

Impact

The vulnerability could allow API calls to be tricked into performing unintended commands, potentially resulting in erroneous output or information leaks. The security impact varies depending on the environment and GPG version in use (Debian).

Exploitability

The vulnerability can be exploited through API calls such as getFingerprint() by manipulating input to perform unintended commands. The risk is particularly relevant for certain environments and specific GPG versions (Debian).

Mitigation and workarounds

The vulnerability was fixed in Crypt_GPG version 1.6.7 by implementing proper input validation and adding the end-of-options marker before operation arguments. Users are advised to upgrade to version 1.6.7 or later to address this security issue (GitHub Commit).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-59989CRITICAL9.2
  • PHP logoPHP
  • phalcon/cphalcon
NoYesAug 21, 2026
CVE-2026-63135HIGH8.2
  • PHP logoPHP
  • yourls/yourls
NoYesAug 21, 2026
GHSA-p2ch-c2c3-4xm5MEDIUM6.1
  • PHP logoPHP
  • winter/wn-backend-module
NoYesAug 20, 2026
GHSA-8hgv-xc77-jmcrMEDIUM5.1
  • PHP logoPHP
  • getgrav/grav
NoYesAug 21, 2026
GHSA-hq84-x37p-j6q5MEDIUM4.5
  • PHP logoPHP
  • winter/wn-backend-module
NoYesAug 20, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management