# Ubuntu patches phpPgAdmin PHP object injection flaw (CVE-2023-40619) via ESM

> **Key takeaway:** phpPgAdmin's unsafe deserialization of untrusted input allows remote code execution, and Ubuntu ships fixes only through Ubuntu Pro ESM Apps for 16.04 through 22.04 LTS.

**Published:** 2026-12-01T00:37:43+00:00 
**Source:** Ubuntu Security & Release Notices 
**Category:** distro-news 
**Canonical URL:** https://fosswire.org/news/ubuntu-patches-phppgadmin-php-object-injection-flaw-cve-2023 

## Summary
Ubuntu published USN-9286-1 covering a vulnerability in phpPgAdmin, the web-based administration front end for PostgreSQL. The flaw is an unsafe deserialization of untrusted data, which the advisory states could let an attacker run arbitrary code on the host. The issue is tracked as CVE-2023-40619 and affects phpPgAdmin packages across Ubuntu 16.04 LTS, 18.04 LTS, 20.04 LTS and 22.04 LTS.

No fixed packages are available through the standard archive for these releases. Ubuntu instead points users to Ubuntu Pro, where the corrected builds are delivered through ESM Apps: 7.13.0+dfsg-2ubuntu0.1~esm1 on jammy, 7.12.1+dfsg-1ubuntu0.1~esm1 on focal, 5.1+ds-3ubuntu0.1~esm1 on bionic and 5.1+ds-1ubuntu1+esm1 on xenial. The notice notes that a community fix might appear publicly at some later point, and that a normal system update applies the changes once the ESM repository is enabled.

## How the phpPgAdmin deserialization flaw works
- **Defect class:** The advisory describes incorrect handling of deserialization of untrusted data, the classic PHP object injection pattern in which attacker-controlled serialized input is passed to unserialize() and can trigger magic methods on loaded classes.
- **Impact:** Successful exploitation leads to arbitrary code execution under the web server's account, meaning a compromised phpPgAdmin instance can be used to run commands on the PostgreSQL administration host rather than merely read database contents.
- **Affected releases and versions:** Ubuntu 22.04 LTS (phpPgAdmin 7.13.0), 20.04 LTS (7.12.1), 18.04 LTS (5.1) and 16.04 LTS (5.1) are all listed, so the vulnerable code path spans multiple upstream phpPgAdmin generations.
- **Fix delivery:** Corrected packages are 7.13.0+dfsg-2ubuntu0.1~esm1, 7.12.1+dfsg-1ubuntu0.1~esm1, 5.1+ds-3ubuntu0.1~esm1 and 5.1+ds-1ubuntu1+esm1, all published through Ubuntu Pro ESM Apps rather than the regular -security pocket.
- **Mitigation:** Enabling Ubuntu Pro and applying a standard system update installs the fixed build; where ESM is not an option, restricting network access to the phpPgAdmin web interface limits exposure.

## Why it matters
phpPgAdmin is typically deployed as an internet- or intranet-facing web application with database credentials, so a remote code execution bug in it is more serious than its modest install base suggests. The fact that every supported Ubuntu LTS from 16.04 to 22.04 receives the fix only through ESM Apps reinforces how much of the long-term-support security surface now depends on Ubuntu Pro subscriptions, and administrators running phpPgAdmin on older LTS hosts should verify that ESM is enabled or plan to retire the tool.