Live Exposure Defense: From CVE to Confirmed Exposure in 12 Hours – See more

New CVE Detected

CVE-2026-35048 – Unauthenticated RCE via PHP Code Injection – Piwigo ≤ 16.3.0

Be the first to know when new zero-days emerge:

Summary

CVE-2026-35048 is a critical unauthenticated remote code execution (RCE) vulnerability in the Piwigo open-source photo gallery application, affecting all versions up to and including 16.3.0. The flaw resides in Piwigo’s installer endpoint (install.php), where attacker-controlled POST parameters are written directly into a PHP configuration file without adequate sanitization — a protection gap triggered by a PHP 8.0 compatibility regression. Piwigo has addressed the issue in version 16.4.0 and the vulnerability carries a CVSS v3.1 base score of 9.8 (Critical).

Technical details

  • Root cause: The installer (install.php) accepts database configuration POST parameters — prefix, dbpasswd, dbhost, dbname, and dbuser — and writes their values directly into local/config/database.inc.php. The existing addslashes() sanitization is silently rendered ineffective on PHP 8+ because it conditionally checks for get_magic_quotes_gpc(), a function that was permanently removed in PHP 8.0. With the check returning false, raw user input is interpolated directly into PHP source code in the config file.
  • Trigger conditions: The installer endpoint (install.php) must be network-accessible. This condition exists on newly deployed instances and on misconfigured production deployments where the installer has not been removed or restricted after initial setup.
  • Attack vector: An unauthenticated remote attacker submits a crafted HTTP POST request to install.php containing arbitrary PHP code embedded within one or more of the database configuration parameters. No credentials, prior access, or user interaction are required.
  • Impact: The injected PHP payload is persisted to local/config/database.inc.php and executed on every subsequent page load, resulting in persistent, server-side remote code execution. Full confidentiality, integrity, and availability compromise is possible.

Affected software

  • Piwigo 16.3.0 and all earlier versions

Severity

CVSS v3.1 base score: 9.8 (Critical)
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Mitigation and recommended actions

  • Patch: Upgrade to Piwigo 16.4.0, which introduces input sanity checks for installer parameters, directly addressing this vulnerability (GHSA-gphq-34pv-gvf3).
  • Workaround (if immediate upgrade is not possible): Remove or restrict network access to install.php on all production Piwigo instances. The installer serves no function after initial setup and should never be internet-accessible on a live deployment.

IONIX Status

The IONIX research team is tracking ongoing exploitation attempts and recommends immediate patching. Potentially affected assets are outlined in this post.

References

Are you exposed?

Get a free report of your organization’s exposure to this CVE and threat

How IONIX’s External Exposure Management Platform Detects and Validates
Zero-Days to Shrink MTTR

1

Map your entire attack surface (continously)

IONIX uses multi-factor discovery methods, including DNS analysis, certificate mapping, metadata inspection, and more, to automatically map every internet-facing asset across your environment. This includes cloud instances, third-party platforms, shadow IT, and even forgotten infrastructure that traditional tools miss.

2

Monitor for new CVEs

Dozens of threat intel feeds using agentic technology are continuously analyzed to detect the appearance of proof-of-concept code, exploit kits, and indicators of active targeting. IONIX goes further by applying AI to proactively evaluate whether emerging vulnerabilities are likely to be exploited, even before PoCs go public.

3

Identify Potential External Exposures

Not all CVEs matter. IONIX filters vulnerabilities by asking attacker-centric questions: Can it be reached from the internet? Does it require authentication? Is it being exploited in the wild? This dramatically reduces noise and focuses teams on threats that can actually be weaponized.

4

Create Safe, Scalable Exploit Validations

IONIX transforms real-world PoCs into safe, non-intrusive test payloads that can be run in production environments without disruption. These simulations are precisely targeted to the systems that are vulnerable, ensuring rapid validation without unnecessary load.

5

Execute Exploit Validations

By combining context about software stack, versioning, exposure status, and reachability, IONIX ensures that only the right payloads are executed against the right assets, maximizing efficiency and minimizing risk.

6

Drive Fast and Actionable Remediation

Results are routed through integrations with ticketing, SOAR, and SIEM tools. Issues are written in plain language, bundled into remediation clusters, and prioritized based on asset criticality, exploitability, and blast radius. This shortens mean time to remediation (MTTR) and empowers teams to act with confidence.

Are you exposed?

Get a free report of your organization’s exposure to this CVE and threat

Subscribe to Threat Center RSS

Copy/paste the link below into your preferred RSS reader or follow these instructions to subscribe to Slack alerts.

Get Real-Time CVE Alerts to Your Email

Be the first to know when new zero-days emerge