CVE-2022-4060 User Post Gallery <= 2.19 - Unauthenticated RCE

Critical 9.8 Published Updated

Unauthenticated attackers can execute arbitrary code on WordPress sites using the User Post Gallery plugin due to unrestricted callback function execution.

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

What is CVE-2022-4060?

CVE-2022-4060 is a critical code injection vulnerability in Unknown User Post Gallery, published on 16 Jan 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The User Post Gallery WordPress plugin through 2.19 does not limit what callback functions can be called by users, making it possible to any visitors to run code on sites running it.

Which versions are affected by CVE-2022-4060?

It affects 1 product.

Products include Odude User Post Gallery.

How do I fix CVE-2022-4060?

No fix has been published for CVE-2022-4060 yet. Limit exposure of the affected software until one is available.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2022-4060 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-4060 exists.

Public exploit code: 1 Nuclei template and 1 proofs of concept on GitHub.

Sources

Also known as GHSA-g823-9xxv-px4q.

Is CVE-2022-4060 in your software?

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

Check your SBOMs for free