CVE-2022-24953 Crypt_GPG does not prevent additional options in GPG calls

Medium 5.3 Published Updated

Attackers can inject additional options into GPG calls via the Crypt_GPG PHP extension, potentially leading to arbitrary code execution.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-24953?

CVE-2022-24953 is a medium-severity command injection vulnerability in n/a, published on 17 Feb 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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.

Weakness: CWE-88

Which versions are affected by CVE-2022-24953?

2 open source packages ship an affected version, including pear/crypt_gpg. It affects 1 product.

PackageAffectedFixed in
pear/crypt_gpg PackagistAll versions1.6.7
pear/crypt_gpg PackagistAll versions1.6.7

Products include Pear Crypt Gpg.

How do I fix CVE-2022-24953?

Upgrade pear/crypt_gpg to 1.6.7 or later.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2022-24953 being exploited?

There is no known exploitation of CVE-2022-24953 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2022-24953, GHSA-59x4-67mh-px54, UBUNTU-CVE-2022-24953.

Is CVE-2022-24953 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free