CVE-2004-2124 Code injection in n/a

Medium 5.0 Published Updated

Remote attackers can execute arbitrary code via PHP remote file inclusion in Gallery when register_globals simulation is enabled.

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-2004-2124?

CVE-2004-2124 is a medium-severity code injection vulnerability in n/a, published on 27 May 2005. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The register_globals simulation capability in Gallery 1.3.1 through 1.4.1 allows remote attackers to modify the HTTP_POST_VARS variable and conduct a PHP remote file inclusion attack via the GALLERY_BASEDIR parameter, a different vulnerability than CVE-2002-1412.

Which versions are affected by CVE-2004-2124?

It affects 1 product.

Products include Gallery Project Gallery.

How do I fix CVE-2004-2124?

No fix has been published for CVE-2004-2124 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-2004-2124 being exploited?

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

Public exploit code: 1 Exploit-DB entry.

Sources

Also known as GHSA-f4p5-2pxq-w62g.

Is CVE-2004-2124 in your software?

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

Check your SBOMs for free