pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedRe[4]: CVE-2022-2625
3+ messages / 2 participants
[nested] [flat]
* Re[4]: CVE-2022-2625
@ 2022-09-19 04:35 ` misha1966 misha1966 <mmisha1966@bk.ru>
2022-09-19 05:55 ` Re: Re[4]: CVE-2022-2625 Laurenz Albe <laurenz.albe@cybertec.at>
1 sibling, 1 reply; 3+ messages in thread
From: misha1966 misha1966 @ 2022-09-19 04:35 UTC (permalink / raw)
To: Laurenz Albe <laurenz.albe@cybertec.at>; +Cc: pgsql-general@lists.postgresql.org
How can I check this vulnerability. Which SQL to execute?
>Четверг, 15 сентября 2022, 17:22 +09:00 от Laurenz Albe <laurenz.albe@cybertec.at>:
>
>On Thu, 2022-09-15 at 07:24 +0300, misha1966 misha1966 wrote:
>> > Четверг, 15 сентября 2022, 1:58 +09:00 от Laurenz Albe < laurenz.albe@cybertec.at >:
>> >
>> > On Wed, 2022-09-14 at 17:02 +0300, misha1966 misha1966 wrote:
>> > > Tell me, is there a CVE-2022-2625 vulnerability in posgresql 9.5?
>> > > If so, who knows how to patch it? Patches from version 10 are not suitable at all...
>> >
>> > Yes, that vulnerability exists in 9.5.
>> >
>> > To patch that, you'd have to try and backpatch the commit to 9.5 yourself:
>> > https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=b9b21acc766db54d8c337d508d0fe2f5b...
>> >
>> > Since 9.5 is out of support, there are no more bugfixes for it provided
>> > by the community. If security were a real concern for you, you would
>> > certainly not be running a PostgreSQL version that is out of support.
>>
>> All business processes are hooked on postgresql 9.5. There is no way to update.
>> Unfortunately, I don't have the proper qualifications to change it.
>So these "business processes" are more important than security at your site.
>That's fine; everybody has to make their choices.
>But remember that there are also known data-eating bugs lurking in your
>outdated software.
>
>Yours,
>Laurenz Albe
>--
>Cybertec | https://www.cybertec-postgresql.com
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Re[4]: CVE-2022-2625
2022-09-19 04:35 ` Re[4]: CVE-2022-2625 misha1966 misha1966 <mmisha1966@bk.ru>
@ 2022-09-19 05:55 ` Laurenz Albe <laurenz.albe@cybertec.at>
0 siblings, 0 replies; 3+ messages in thread
From: Laurenz Albe @ 2022-09-19 05:55 UTC (permalink / raw)
To: misha1966 misha1966 <mmisha1966@bk.ru>; +Cc: pgsql-general@lists.postgresql.org
On Mon, 2022-09-19 at 07:35 +0300, misha1966 misha1966 wrote:
> > Четверг, 15 сентября 2022, 17:22 +09:00 от Laurenz Albe <laurenz.albe@cybertec.at>:
> >
> > On Thu, 2022-09-15 at 07:24 +0300, misha1966 misha1966 wrote:
> > > > Четверг, 15 сентября 2022, 1:58 +09:00 от Laurenz Albe <laurenz.albe@cybertec.at>:
> > > >
> > > > On Wed, 2022-09-14 at 17:02 +0300, misha1966 misha1966 wrote:
> > > > > Tell me, is there a CVE-2022-2625 vulnerability in posgresql 9.5?
> > > > > If so, who knows how to patch it? Patches from version 10 are not suitable at all...
> > > >
> > > > Yes, that vulnerability exists in 9.5.
> > > >
> > > > To patch that, you'd have to try and backpatch the commit to 9.5 yourself:
> > > > https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=b9b21acc766db54d8c337d508d0fe2f5b...
> > > >
> > > > Since 9.5 is out of support, there are no more bugfixes for it provided
> > > > by the community. If security were a real concern for you, you would
> > > > certainly not be running a PostgreSQL version that is out of support.
> > >
> > > All business processes are hooked on postgresql 9.5. There is no way to update.
> > > Unfortunately, I don't have the proper qualifications to change it.
> >
> > So these "business processes" are more important than security at your site.
> > That's fine; everybody has to make their choices.
> > But remember that there are also known data-eating bugs lurking in your
> > outdated software.
>
> How can I check this vulnerability. Which SQL to execute?
Look at the commit message in the link above.
You create a database object (a function or view). Then you create an extension,
and in the SQL script you put "CREATE OR REPLACE ..." for that same object.
If PostgreSQL allows you to create the extension, you are vulnerable.
Yours,
Laurenz Albe
--
Cybertec | https://www.cybertec-postgresql.com
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re[4]: CVE-2022-2625
@ 2022-09-20 00:31 ` misha1966 misha1966 <mmisha1966@bk.ru>
1 sibling, 0 replies; 3+ messages in thread
From: misha1966 misha1966 @ 2022-09-20 00:31 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-general@lists.postgresql.org
Thank you all! Everything worked out!
CVE-2022-2625 contains a lot more than it seems...
>Пятница, 16 сентября 2022, 0:19 +09:00 от Tom Lane <tgl@sss.pgh.pa.us>:
>
>=?UTF-8?B?bWlzaGExOTY2IG1pc2hhMTk2Ng==?= < mmisha1966@bk.ru > writes:
>> Is there a patch for 9.6 ?
>No; that's out of support too.
>
>You might find that adapting the v10 patch back to 9.6, and
>thence to 9.5, would be easier than trying to do it in one step.
>
>I'm a little bemused by your fixation on this particular CVE,
>though. As such things go, it's not a very big deal. It's only
>of interest if you are routinely installing new extensions, *and*
>those extensions' scripts contain insecure uses of CREATE OR
>REPLACE/CREATE IF NOT EXISTS, *and* you can't fix the extensions
>instead. I would not have thought an institution that's so
>frozen that it can't update to an in-support PG version would be
>doing a lot of new extension installations.
>
>In any case, the real thing you ought to be focusing on is whether
>you are running back-ported patches for any of the *other* CVE-worthy
>security bugs we've fixed since 9.5 went EOL. And how about the
>data-corrupting bugs? Most longtime PG developers think data
>corruption hazards are a good deal more important than a lot of
>the stuff we assign CVEs to. Almost every CVE we've ever issued is
>only relevant if you have hostile actors able to issue arbitrary SQL
>in your database, in which case you're in a world of trouble anyway.
>
>regards, tom lane
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2022-09-20 00:31 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2022-09-19 04:35 ` misha1966 misha1966 <mmisha1966@bk.ru>
2022-09-19 05:55 ` Laurenz Albe <laurenz.albe@cybertec.at>
2022-09-20 00:31 ` misha1966 misha1966 <mmisha1966@bk.ru>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox