CVE-2002-1412Gallery Vulnerability
Gallery photo album package before 1.3.1 allows local and possibly remote attackers to execute arbitrary code via a modified GALLERY_BASEDIR variable that points to a directory or URL that contains a Trojan horse init.php script.
Published Apr 11, 2003 · Updated Apr 15, 2026 · Also known as DEBIAN-CVE-2002-1412, DSA-138
Key Facts
Patch immediately- CVE-2002-1412 is a high-severity vulnerability (CVSS 7.5 v2) affecting Gallery (Gallery Project).
- It is not listed in any known-exploited vulnerabilities catalog. Public exploit code is available.
- EPSS estimates a 39% probability of exploitation in the next 30 days.
- Fixed versions are available, including Gallery 1.2.5-7, Gallery 1.3.1.
- Brandefense priority: patch immediately, because public exploit code exists for a high-severity flaw.
Scores
CVSS v2
7.5
AV:N/AC:L/Au:N/C:P/I:P/A:P
EPSS (30-day exploit likelihood)
39%
Higher than 98.5% of all scored CVEs
Exploit maturity
Proof of concept
ATLAS score
35/100
Publication score, see How it works
Exploitation Verdict
KEV listed
Not listed
Federal due date
None
No federal due date
Ransomware use
Not reported
Attributed actors
None named
Exploit & Defence Guidance
Exploit maturity
Proof of concept
Public exploit code
1
Proof-of-concept links
In-the-wild evidence
0
Reports of active use
Advisories And Exploit References
Description
Gallery photo album package before 1.3.1 allows local and possibly remote attackers to execute arbitrary code via a modified GALLERY_BASEDIR variable that points to a directory or URL that contains a Trojan horse init.php script.
Affected Products
2 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| GalleryGallery Project | See advisory | 1.3.1 |
Patched Releases
Gallery
1.2.5-7, 1.3.1
Timeline
Publicly disclosed
Apr 11, 2003
Last updated
Apr 15, 2026
References
- patch20020801 code injection in gallery
- patchDSA-138
- exploitExploitDB-21676
- othergallery.menalto.com · modules.php
- othergallery-basedir-execute-commands(9737)
FAQ
Common Questions.
Gallery photo album package before 1.3.1 allows local and possibly remote attackers to execute arbitrary code via a modified GALLERY_BASEDIR variable that points to a directory or URL that contains a Trojan horse init.php script.
Affected: Gallery (Gallery Project). The full list is in the CVE brief.
It is not listed in any known-exploited vulnerabilities catalog.
No, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
Public exploit code is available.
Fixed versions are available, including Gallery 1.2.5-7, Gallery 1.3.1.
Brandefense priority: patch immediately, because public exploit code exists for a high-severity flaw.
Is CVE-2002-1412 On Your Attack Surface?
Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.
Request A Demo