[ GLSA 202409-02 ] PostgreSQL: Privilege Escalation

[email protected] Sun, 22 Sep 2024 05:47:41 -0000
Newsgroups gmane.linux.gentoo.announce
Message-ID <172698406156.7.6829895412902579214@3f85d36892cf>
--===============7479539490329679798==
Content-Type: text/plain; charset="utf-8"

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Gentoo Linux Security Advisory                           GLSA 202409-02
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                           https://security.gentoo.org/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

 Severity: High
    Title: PostgreSQL: Privilege Escalation
     Date: September 22, 2024
     Bugs: #937573
       ID: 202409-02

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Synopsis
========

A vulnerability has been discovered in PostgreSQL, which can lead to
privilege escalation.

Background
==========

PostgreSQL is an open source object-relational database management
system.

Affected packages
=================

Package            Vulnerable    Unaffected
-----------------  ------------  ------------
dev-db/postgresql  < 12.20:12    >= 12.20:12
                   < 13.16:13    >= 13.16:13
                   < 14.13:14    >= 14.13:14
                   < 15.8:15     >= 15.8:15
                   < 16.4:16     >= 16.4:16

Description
===========

A vulnerability has been discovered in PostgreSQL. Please review the CVE
identifier referenced below for details.

Impact
======

An attacker able to create and drop non-temporary objects could inject
SQL code that would be executed by a concurrent pg_dump session with the
privileges of the role running pg_dump (which is often a superuser). The
attack involves replacing a sequence or similar object with a view or
foreign table that will execute malicious code. To prevent this,
introduce a new server parameter restrict_nonsystem_relation_kind that
can disable expansion of non-builtin views as well as access to foreign
tables, and teach pg_dump to set it when available. Note that the attack
is prevented only if both pg_dump and the server it is dumping from are
new enough to have this fix.

Workaround
==========

There is no known workaround at this time.

Resolution
==========

All PostgreSQL users should upgrade to the latest version:

  # emerge --sync
  # emerge --ask --oneshot --verbose ">=dev-db/postgresql-12.20:12"
  # emerge --ask --oneshot --verbose ">=dev-db/postgresql-13.16:13"
  # emerge --ask --oneshot --verbose ">=dev-db/postgresql-14.13:14"
  # emerge --ask --oneshot --verbose ">=dev-db/postgresql-15.8:15"
  # emerge --ask --oneshot --verbose ">=dev-db/postgresql-16.4:16"

References
==========

[ 1 ] CVE-2024-7348
      https://nvd.nist.gov/vuln/detail/CVE-2024-7348

Availability
============

This GLSA and any updates to it are available for viewing at
the Gentoo Security Website:

 https://security.gentoo.org/glsa/202409-02

Concerns?
=========

Security is a primary focus of Gentoo Linux and ensuring the
confidentiality and security of our users' machines is of utmost
importance to us. Any security concerns should be addressed to
[email protected] or alternatively, you may file a bug at
https://bugs.gentoo.org.

License
=======

Copyright 2024 Gentoo Foundation, Inc; referenced text
belongs to its owner(s).

The contents of this document are licensed under the
Creative Commons - Attribution / Share Alike license.

https://creativecommons.org/licenses/by-sa/2.5
--===============7479539490329679798==
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEpqTA6ABLMxh/aChGFMQkOaVy+9kFAmbvr30ACgkQFMQkOaVy
+9knphAAyzdNrSiUsI+DfOIgnbRkXc6pmz6/nHV88XPQEDUuiLUqnZ7GI1W6uXM1
49f7sq7+sRUJ6O3/9xLwTvJ4yn0xkHGRbVJuZJF00yqpAhvMENto2DbBNO6x7l+T
prvOkCu2MDc0A9OQlh/0Te8M8xnYhAZsXJFHjDXseOM5gmGAuIT5/vzg+ry0Wk+R
ExUyZ0CF6w/fH/WJuw4Z6NC9HSwcMtC+hwcW902Z6Y9bNGUJJyo1+Wk5oEQgscLn
IcNWeBnQaiYdu0hBcSTyoR7CU79RRpYutuNwcY9HrNWt1Ie7KFRkg4NP36ulRIUw
JPdOcS335TKYUZWv3lC1R/hwH1PAhw+WkYT6kX3h/jpLZloo6mIqQrO/UuwBKOhl
qWtsnt9Uw+KB+XRG0jwnAELgkyyujQLyKOO58Jt6RAyFC4nDrnvmJt31oDxN3WZA
RFMHkMq2Lyp+azTdDcHari2Mf+KkbPN98ORZ4Ay9szorhRA/VzY1MYidjSD/AG31
+YCCGPNKb25I2kBynpqE6/g48ud9y1W+J57WxeZzhqFoEZWV2y8qVn1e+hZP3fh0
Wgq9mpYJwuvzMaPROd9ArpccVGc1EzuC/BLDkJChG3IUzS61OKPqHV7MExAYqdS1
BG4Z/XTLTAbYh6J+OfXv8xNApMQQPTzWO1qt9Lwb9bE5EgioTJA=
=LV4g
-----END PGP SIGNATURE-----

--===============7479539490329679798==--