CVE-2024-1896 HIGH

CVE-2024-1896: Photo Gallery <= 1.4.2 - Authenticated(Contributor+) PHP Object Injection via Shortcode

Vendor Awordpresslife
Product Photo Gallery for Images
Weakness CWE-502 · Unsafe deserialization
Published May 2, 2024
Last update April 8, 2026

CVSS base score

7.5/10
Attack vector Network
Attack complexity High
Privileges required Low
User interaction None
Confidentiality High
Integrity High

CVSS vector

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

What the vulnerability does

01Description

The Photo Gallery – Responsive Photo Gallery, Image Gallery, Portfolio Gallery, Logo Gallery And Team Gallery plugin for WordPress is vulnerable to PHP Object Injection in all versions up to, and including, 1.4.2 via deserialization via shortcode of untrusted input from the 'awl_lg_settings_' attribute. This makes it possible for authenticated attackers, with contributor access and above, to inject a PHP Object. No POP chain is present in the vulnerable plugin. If a POP chain is present via an additional plugin or theme installed on the target system, it could allow the attacker to delete arbitrary files, retrieve sensitive data, or execute code.

Explanation of Vulnerability in Simple Terms

02Summary

The Photo Gallery for Images plugin for WordPress contains a deserialization vulnerability in versions up to 1.4.2. An authenticated attacker with low privileges can send a specially crafted request to deserialize untrusted data, potentially leading to remote code execution. The attack requires network access and some technical complexity but does not require user interaction.

What an attacker can do

03Attacker Capabilities

Run their own code on the site, read sensitive data, or modify site content.

Potential impact on your site

04Site Impact

An authenticated user with basic permissions could compromise your entire site, including database access and file modification.

Conditions required to exploit

05Prerequisites

Attacker must have a low-privilege WordPress account (e.g., subscriber or contributor role).

Key dates

06Disclosure timeline

May 2, 2024 CVE published
April 8, 2026 Record updated