Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2007-2642: Directory traversal vulnerability in galeria.php in R2K Gallery 1.7 allows remote attackers to read arbitrary

55
This month
HIGH 7.8DOWNGRADE

CVE-2007-2642 is a high-severity flaw (CVSS 7.8) affecting r2k gallery. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

Directory traversal vulnerability in galeria.php in R2K Gallery 1.7 allows remote attackers to read arbitrary files via a .. (dot dot) in the lang2 parameter.

Why this priority

  • High severity
  • Public exploit reference

No fix is published yet: follow the downgrade or mitigation steps.

Risk facts

CVSS score7.8 (High)
EPSS exploit chance3.7% (top 10%)
CISA exploited listNo
Published2007-05-13
Last modified2026-06-16
Publisher (CNA): MITRE · Vendor: r2k

Share: LinkedIn · X · Reddit

Last updated 2026-06-16 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

r2k r2k gallery DOWNGRADE
Affected: 1.7
Fixed in: no fixed release known
Safe to downgrade to: a release before 1.7
1. Check installed version
apt-cache policy r2k-gallery || rpm -q r2k-gallery || r2k-gallery --version
2. No fixed release: DOWNGRADE to a release before 1.7 (Debian / Ubuntu)
apt-cache madison r2k-gallery sudo apt install r2k-gallery=<VERSION_BEFORE_1.7> sudo apt-mark hold r2k-gallery
2. No fixed release: DOWNGRADE (RHEL / Amazon Linux / Fedora)
dnf --showduplicates list r2k-gallery sudo dnf downgrade r2k-gallery-<VERSION_BEFORE_1.7> sudo dnf versionlock add r2k-gallery
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.

Public exploits and detection

Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.

Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2007-2642?

r2k gallery: downgrade or apply the listed mitigation. Exact commands for each OS are on this page.

Is CVE-2007-2642 being exploited?

CVE-2007-2642 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.

What does CVE-2007-2642 affect?

CVE-2007-2642 affects r2k gallery. Severity is high (CVSS 7.8). Directory traversal vulnerability in galeria.php in R2K Gallery 1.7 allows remote attackers to read arbitrary files via a .. (dot dot) in the lang2 parameter.

How urgent is CVE-2007-2642?

Priority 55/100. High severity; Public exploit reference

Software pages

PHP vulnerabilities

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.