CVE-2023-0241 pgAdmin 4 vulnerable to directory traversal

Medium 6.5 Published Updated

Attackers can exploit directory traversal in pgAdmin 4 to modify other users' settings or alter the database.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-0241?

CVE-2023-0241 is a medium-severity path traversal vulnerability in pgadmin, published on 27 Mar 2023. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

pgAdmin 4 versions prior to v6.19 contains a directory traversal vulnerability. A user of the product may change another user's settings or alter the database.

Weakness: CWE-22

Which versions are affected by CVE-2023-0241?

3 open source packages ship an affected version, including pgadmin4. It affects 1 product.

PackageAffectedFixed in
pgadmin4 PyPIAll versions6.19
pgadmin4 PyPIAll versions6.19
pgadmin4 PyPIAll versions6.19
Linux distribution packages (10)
pgadmin4 SUSE:Enterprise Storage 7.1All versions4.30-150300.3.9.1
pgadmin4 SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOSAll versions4.30-150300.3.9.1
pgadmin4 SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSSAll versions4.30-150300.3.9.1
pgadmin4 SUSE:Linux Enterprise Module for Server Applications 15 SP4All versions4.30-150300.3.9.1
pgadmin4 SUSE:Linux Enterprise Real Time 15 SP3All versions4.30-150300.3.9.1
pgadmin4 SUSE:Linux Enterprise Server 15 SP3-LTSSAll versions4.30-150300.3.9.1
pgadmin4 SUSE:Linux Enterprise Server for SAP Applications 15 SP3All versions4.30-150300.3.9.1
pgadmin4 SUSE:Manager Proxy 4.2All versions4.30-150300.3.9.1
pgadmin4 SUSE:Manager Server 4.2All versions4.30-150300.3.9.1
pgadmin4 openSUSE:Leap 15.4All versions4.30-150300.3.9.1

Products include Pgadmin Pgadmin 4.

How do I fix CVE-2023-0241?

Upgrade pgadmin4 to 6.19 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2023-0241 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-0241 exists.

Sources

Also known as GHSA-9crj-hpxh-f6qg, PYSEC-2026-1771, SUSE-SU-2023:1877-1.

Is CVE-2023-0241 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free