Debian Codegraph @

debian/changelog

raw
1 postgresql-18 (18.6-3) unstable; urgency=medium
2
3 * Fix package names used in the Breaks and drop old Breaks against
4 dbconfig-common before 2.0.22.
5
6 -- Christoph Berg <[email protected]> Sat, 15 Aug 2026 21:42:00 +0200
7
8 postgresql-18 (18.6-2) unstable; urgency=medium
9
10 * Add Breaks on the packages affected by the output_plugin_libraries change:
11 pg-rewrite, pg-squeeze, postgres-decoderbufs, wal2json.
12 Also add timescaledb (different reason, TBD).
13
14 -- Christoph Berg <[email protected]> Fri, 14 Aug 2026 22:45:43 +0200
15
16 postgresql-18 (18.6-1) unstable; urgency=medium
17
18 * New upstream version 18.6. (18.5 was never released.)
19
20 + Restrict logical decoding output plugins to the set specified by
21 a new server parameter `output_plugin_libraries` (Jacob
22 Champion)
23
24 Previously, a replication user could select any loadable library
25 for logical decoding, allowing exploits of various sorts. To
26 allow locking this down without breaking setups that worked
27 before, introduce a whitelist of allowed output plugins.
28
29 By default, only the output plugins shipped as part of
30 PostgreSQL (`pgoutput` and `test_decoding`) are included in
31 `output_plugin_libraries`. Installations that rely on other
32 output plugins must add them after updating the server, for
33 example
34
35 output_plugin_libraries = 'pgoutput, test_decoding, my_trusted_decoder'
36
37 Additionally, pg_upgrade --check will fail if the
38 `output_plugin_libraries` parameter on the new cluster does not
39 permit the plugins of logical replication slots on the old
40 cluster, when migrating from versions 17 and later. Make
41 necessary additions to the new cluster's setting before
42 performing pg_upgrade.
43
44 The PostgreSQL Project thanks Vladimir Tokarev and Yu Kunpeng
45 for reporting this problem. (CVE-2026-6471)
46
47 + Fix contrib/pgcrypto's PGP encryption to detect unsupported
48 ciphers (Daniel Gustafsson)
49
50 Previously, if OpenSSL rejected the requested cipher (for
51 example, because it is running in FIPS mode, or the legacy
52 provider hasn't been loaded), pgcrypto failed to notice the
53 failure and simply XOR'd the non-encrypted block with the
54 plaintext, rendering the "encryption" trivially breakable. This
55 will typically occur with deprecated or non-FIPS cipher
56 algorithms (cipher-algo=blowfish/bf, twofish, cast5, or 3des).
57
58 By default, pgcrypto will now fail to decrypt any messages that
59 were affected in this way. To allow retrieval of such data, a
60 new option `ignore-cipher-failure` has been added to
61 pgp_pub_decrypt() and pgp_sym_decrypt(). Setting
62 `ignore-cipher-failure=1` will restore their previous behavior,
63 allowing the faulty encryption wrapper to be stripped off:
64
65 pgp_sym_decrypt(encrypted_column, any key, 'ignore-cipher-failure=1')
66
67 Once the affected messages are identified and stripped of their
68 wrappers, they can then be re-encrypted with a modern algorithm.
69 It is important however that the behavior of OpenSSL be the same
70 as it was when the faulty messages were created: if the set of
71 unsupported algorithms is not the same, this approach will not
72 work. See the documentation for `ignore-cipher-failure`.
73
74 The PostgreSQL Project thanks Shishir Sharma for reporting this
75 problem. (CVE-2026-14663)
76
77 + Fix psql to skip in-line data following a scripted COPY ... FROM
78 STDIN command, even if the COPY fails before sending
79 `PGRES_COPY_IN` (Tom Lane)
80
81 Previously, if a `COPY` command failed at startup (for instance,
82 because the target table doesn't exist) psql would not realize
83 that and would proceed to read the following in-line data as SQL
84 commands. In the best case that's wrong and in the worst case
85 it's a SQL-injection hazard. Teach psql to recognize
86 syntactically-valid COPY ... FROM STDIN commands and to skip
87 data on its own authority if the server doesn't respond with
88 `PGRES_COPY_IN`.
89
90 While this fix is unlikely to affect any production SQL scripts,
91 test scripts might intentionally exercise failing COPY ... FROM
92 STDIN commands. Those will need to gain a `\.` data terminator
93 line after each such command.
94
95 The PostgreSQL Project thanks Alexander Lakhin for reporting
96 this problem. (CVE-2026-6464)
97
98 + Cross-check the output row type of a portal running EXECUTE or
99 FETCH (Robert Haas)
100
101 EXECUTE and FETCH use two portals: an outer one for the
102 statement itself, and an inner one running the query being
103 executed on its behalf. It was previously possible to make the
104 declared row types of the two portals diverge, leading to server
105 memory disclosure and arbitrary code execution.
106
107 The PostgreSQL Project thanks Ben Morris (in collaboration with
108 Claude and Anthropic Research) and Peter Geoghegan for reporting
109 this problem. (CVE-2026-16239)
110
111 + Fix buffer overrun with long time zone abbreviation in to_char()
112 (Tom Lane)
113
114 This can easily crash the server, and exploits leading to
115 arbitrary code execution have been reported.
116
117 The PostgreSQL Project thanks Hcamael, Amjad Shahzad, Tan Zhen
118 of AntAISecurityLab, Tomer Fichman, Zheng Yu, Amy Burnett
119 (OpenAI Codex Security), Rick de Jager, Heewon Song, Sylvie
120 Mayer, Aleksander Alekseev, and Hillai Ben Sasson for reporting
121 this problem. (CVE-2026-14669)
122
123 + Fix buffer overrun in regexp match/split functions (Masahiko
124 Sawada)
125
126 If passed invalidly-encoded data, these functions could write
127 past the end of their conversion buffer.
128
129 The PostgreSQL Project thanks Francesco Verardi for reporting
130 this problem. (CVE-2026-14664)
131
132 + Harden the ascii() function against invalid input (Michael
133 Paquier)
134
135 By supplying invalidly-encoded input, this function could be
136 coaxed to read and return a few bytes of data that it shouldn't.
137 In assert-enabled builds, its assertions could be triggered too.
138
139 The PostgreSQL Project thanks Hcamael for reporting this
140 problem. (CVE-2026-18024)
141
142 + Fix multirange type handling in pg_restore_attribute_stats()
143 (OpenAI Security Research Team)
144
145 pg_restore_attribute_stats() treated multirange types just like
146 their underlying range type. This works correctly for the bounds
147 histogram, but it was wrong for all the other statistics kinds.
148
149 The PostgreSQL Project thanks Amy Burnett (OpenAI Codex
150 Security) for reporting this problem. (CVE-2026-16238)
151
152 + Make scalarineqsel() check that a constant it expects to be of
153 type tid actually is (Tom Lane)
154
155 This expectation will hold for all the built-in operators that
156 use this estimator, but a maliciously-constructed operator could
157 violate it, leading to a crash or server memory disclosure.
158
159 The PostgreSQL Project thanks Hcamael for reporting this
160 problem. (CVE-2026-14668)
161
162 + Harden tsvector and tsquery code against overly long values
163 (both individual lexemes and total vector/query length) (Tom
164 Lane)
165
166 The documented limits were not enforced in all code paths.
167
168 The PostgreSQL Project thanks Yuhang Wu, Zhenpeng Lin, Zheng Yu,
169 and Hcamael for reporting these problems. (CVE-2026-14662)
170
171 + Fix various places that mistakenly assumed they would not have
172 to deal with more than `FUNC_MAX_ARGS` function arguments (Tom
173 Lane)
174
175 Notably, the server's actual limit on the number of arguments to
176 an aggregate function is `FUNC_MAX_ARGS - 1`, but the parser
177 failed to enforce that, creating hazards downstream.
178
179 The PostgreSQL Project thanks Zheng Yu, ylwangtju, and Masahiko
180 Sawada for reporting these problems. (CVE-2026-14679)
181
182 + Reject calls from SQL to functions that take or return type
183 internal (Tom Lane)
184
185 The existing defenses against doing this have been shown to be
186 insufficient, so add more explicit checks.
187
188 The PostgreSQL Project thanks Amy Burnett (OpenAI Codex
189 Security) for reporting this problem. (CVE-2026-14680)
190
191 + Preserve the ownership of extended statistics objects when they
192 are rebuilt by ALTER TABLE (Masahiko Sawada)
193
194 Previously, the role running ALTER TABLE gained ownership of
195 such objects, but that seems inappropriate.
196
197 The PostgreSQL Project thanks Noah Misch for reporting this
198 problem. (CVE-2026-6469)
199
200 + When deparsing an EXTRACT() function call, quote the field name
201 if needed (Nathan Bossart)
202
203 The parser accepts any string literal as a field name in
204 EXTRACT(), deferring validation to execution. If the call is
205 stored and deparsed (for example during pg_dump), the string
206 body was regurgitated verbatim, allowing SQL injection.
207
208 The PostgreSQL Project thanks Ben Morris (in collaboration with
209 Claude and Anthropic Research) for reporting this problem.
210 (CVE-2026-15741)
211
212 + Check for `USAGE` privilege on data types in places that
213 formerly failed to check that (Nathan Bossart)
214
215 CREATE TYPE AS RANGE did not check, nor did ALTER TABLE OF, nor
216 did commands that create stored expressions. These omissions
217 allowed roles without `USAGE` privilege to nonetheless create
218 objects depending on the type, possibly blocking the type's
219 owner from changing the type later.
220
221 The PostgreSQL Project thanks Jingzhou Fu for reporting this
222 problem. (CVE-2026-6470)
223
224 + Invalidate role-dependent cached plans after role changes (Ilya
225 Staroverov, Shinya Kato, Nathan Bossart)
226
227 Role membership, role attribute, and database ownership changes
228 may impact the expected behavior of row-level security policies,
229 but previously we'd continue to use cached plans that were made
230 according to the old state of affairs.
231
232 The PostgreSQL Project thanks Ilya Staroverov and Shinya Kato
233 for reporting this problem. (CVE-2026-14666)
234
235 + Reject GSSEncRequest after direct SSL connection (Michael
236 Paquier)
237
238 After establishing a TLS-encrypted connection, the server would
239 still accept a request for GSSAPI encryption. If that succeeded,
240 the connection would proceed using TLS encryption, but it would
241 look like a GSS connection to the pg_hba rules. Thus, a pg_hba
242 policy intending to disallow TLS would not be enforced
243 correctly.
244
245 The PostgreSQL Project thanks p4p3r for reporting this problem.
246 (CVE-2026-14681)
247
248 + Make mock SCRAM authentication secrets more plausible (Nathan
249 Bossart)
250
251 If a SCRAM login is attempted against a role that doesn't exist
252 or doesn't have a SCRAM secret, we generate a mock secret and
253 carry out the authentication handshake anyway, to avoid
254 revealing these facts to an attacker. But the mock secret was
255 made with a fixed iteration count, which in itself can be an
256 observable response discrepancy. Use the configuration setting
257 `scram_iterations` instead, to make the mock secret look more
258 like the installation's real secrets.
259
260 The PostgreSQL Project thanks Radim Marek for reporting this
261 problem. (CVE-2026-14672)
262
263 + Fix out-of-bounds writes in ecpg applications caused by invalid
264 bytea data received from the server (Michael Paquier)
265
266 ecpg assumed without checking that any bytea value must begin
267 with `\x`. A broken or malicious server might send a string
268 shorter than 2 bytes, resulting in memory clobber in the
269 application.
270
271 The PostgreSQL Project thanks ylwangtju for reporting this
272 problem. (CVE-2026-16241)
273
274 + Do not do backquote expansion on the argument of psql's
275 \unrestrict command (Nathan Bossart)
276
277 This oversight in the fix for CVE-2025-8714 allows a malicious
278 server to inject shell commands into plain-text dump output that
279 will be run at restore time on the machine running psql, the
280 exact scenario that CVE-2025-8714 intended to prevent.
281
282 The PostgreSQL Project thanks Lucas Velgus, Filip Janus, and
283 Daniel Bakker for reporting this problem. (CVE-2026-18408)
284
285 + Remove pg_dump's assumption that pg_proc.protrftypes cannot have
286 more than `FUNC_MAX_ARGS` entries (Tom Lane)
287
288 Since there could be entries for both input and output
289 arguments, it's feasible for this array's length to exceed
290 `FUNC_MAX_ARGS` (which constrains only input arguments). Even if
291 that were not so, pg_dump cannot assume that the server was
292 built with the same value of `FUNC_MAX_ARGS` that it has. An
293 overrun would lead to a memory clobber inside pg_dump.
294
295 The PostgreSQL Project thanks Masahiko Sawada for reporting this
296 problem. (CVE-2026-19385)
297
298 + Harden PL/Perl against "tied" Perl arrays and hashes (Tom Lane)
299
300 A tied object that doesn't behave like a regular one could lead
301 to memory overwrite, or to constructing a corrupt result array
302 (which would likely cause problems later).
303
304 The PostgreSQL Project thanks Hcamael for reporting this
305 problem. (CVE-2026-14670)
306
307 + Fix integer overflows in memory-allocation calculations in
308 PL/Perl and PL/Tcl (Heikki Linnakangas)
309
310 This is the same type of problem as CVE-2026-6473, just in a
311 different part of the code, and is fixed in the same way.
312
313 The PostgreSQL Project thanks the Tulya Project (Team Dhiutsa,
314 Bitecope Technologies Private Ltd) for reporting this problem.
315 (CVE-2026-14677)
316
317 + Ensure that contrib/amcheck functions restrict `search_path`
318 before executing index expressions (Noah Misch)
319
320 Because amcheck will run such index expressions as the owner of
321 their tables, a caller could potentially hijack
322 `search_path`-dependent functions to run arbitrary code as the
323 table owner. By default this is not a vulnerability because only
324 superusers are allowed to call amcheck functions; but if that
325 privilege was granted out, it created a larger hazard than the
326 documentation suggests.
327
328 The PostgreSQL Project thanks Yuelin Wang and Jacob Brazeal for
329 reporting this problem. (CVE-2026-14673)
330
331 + Fix integer overflows in contrib/fuzzystrmatch's levenshtein()
332 and levenshtein_less_equal() functions (Nathan Bossart)
333
334 Passing large cost values to these functions could cause integer
335 overflows, thereby producing nonsensical results, and even
336 causing out-of-bounds writes in some cases.
337
338 The PostgreSQL Project thanks Ben Morris (in collaboration with
339 Claude and Anthropic Research) for reporting this problem.
340 (CVE-2026-15742)
341
342 + Fix buffer overrun in contrib/pg_stat_statements (Álvaro
343 Herrera)
344
345 Query normalization didn't accurately account for the amount of
346 space the normalized string would require.
347
348 The PostgreSQL Project thanks Sajeeb Lohani (with TrendAI Zero
349 Day Initiative) and Yuelin Wang for reporting this problem.
350 (CVE-2026-14676)
351
352 + Fix datatype error in contrib/pg_trgm's GiST picksplit function
353 (Heikki Linnakangas)
354
355 This mistake resulted in reading past the end of the buffer,
356 typically causing bad split decisions; but a crash could ensue
357 if you're very unlucky.
358
359 The PostgreSQL Project thanks Mehmet D. Ince for reporting this
360 problem. (CVE-2026-14678)
361
362 + Remove the plan cache in contrib/refint (Ayush Tiwari)
363
364 This caching behavior has several serious bugs, notably that
365 check_foreign_key() embeds the new key values in its
366 cascade-UPDATE queries, so a cached plan reuses the
367 originally-needed values rather than the key values that should
368 be used. The simplest solution is to remove it.
369
370 The PostgreSQL Project thanks Hcamael for reporting this
371 problem. (CVE-2026-14671)
372
373 + Ensure that parallel GIN index builds update the table's
374 pg_class.reltuples value correctly (Jan Nidzwetzki, Tomas
375 Vondra)
376
377 A parallel worker could report an uninitialized value for the
378 number of rows it processed, leading to a bogus value for
379 reltuples, even Infinity or NaN. Such values could lead to
380 subsequent autovacuum and autoanalyze operations never deciding
381 that the table needs to be processed. If so, the situation will
382 not self-heal. A manual ANALYZE command, or creation of another
383 index, will be needed to reset reltuples to the correct value.
384 If you have any tables with GIN indexes, it's recommended to
385 check to see if their reltuples entries look sane. A query such
386 as this may be helpful:
387
388 SELECT DISTINCT t.oid::regclass, t.reltuples
389 FROM pg_class t
390 JOIN pg_index i ON t.oid = i.indrelid
391 JOIN pg_class ic ON i.indexrelid = ic.oid
392 WHERE t.relhasindex AND ic.relam = 2742;
393
394 * Fix psql -c 'truncate/create table; copy from stdin'.
395
396 -- Christoph Berg <[email protected]> Tue, 11 Aug 2026 22:58:48 +0200
397
398 postgresql-18 (18.4-1) unstable; urgency=medium
399
400 [ Christoph Berg ]
401 * New upstream version 18.4.
402
403 + Prevent unbounded recursion while processing startup packets
404 (Michael Paquier)
405
406 A malicious client could crash the connected backend by alternating
407 rejected SSL and GSS encryption requests indefinitely.
408
409 The PostgreSQL Project thanks Calif.io (in collaboration with Claude and
410 Anthropic Research) for reporting this problem. (CVE-2026-6479)
411
412 + Fix assorted integer overflows in memory-allocation calculations
413 (Tom Lane, Nathan Bossart, Heikki Linnakangas)
414
415 Various places were incautious about the possibility of integer overflow
416 in calculations of how much memory to allocate. Overflow would lead to
417 allocating a too-small buffer which the caller would then write past the
418 end of. This would at least trigger server crashes, and probably could
419 be exploited for arbitrary code execution. In many but by no means all
420 cases, the hazard exists only in 32-bit builds.
421
422 The PostgreSQL Project thanks Xint Code, Bruce Dang, Sven Klemm, and
423 Pavel Kohout for reporting these problems. (CVE-2026-6473)
424
425 + Properly quote subscription names in pg_createsubscriber
426 (Nathan Bossart)
427
428 The given subscription name was inserted into SQL commands without
429 quoting, so that SQL injection could be achieved in the (perhaps
430 unlikely) case that the subscription name comes from an untrusted
431 source.
432
433 The PostgreSQL Project thanks Yu Kunpeng for reporting this problem.
434 (CVE-2026-6476)
435
436 + Properly quote object names in logical replication origin checks
437 (Pavel Kohout)
438
439 ALTER SUBSCRIPTION ... REFRESH PUBLICATION interpolated schema and
440 relation names into SQL commands without quoting them, allowing
441 execution of arbitrary SQL on the publisher.
442
443 The PostgreSQL Project thanks Pavel Kohout for reporting this problem.
444 (CVE-2026-6638)
445
446 + Reject over-length options in ts_headline() (Michael Paquier)
447
448 The StartSel, StopSel and FragmentDelimiter strings must not exceed 32Kb
449 in length, but this was not checked for. An over-length value would
450 typically crash the server.
451
452 The PostgreSQL Project thanks Xint Code for reporting this problem.
453 (CVE-2026-6473)
454
455 + Detect faulty input when restoring attribute MCV statistics
456 (Michael Paquier)
457
458 The statistics restore functions were insufficiently careful about
459 validating most-common-value statistics, and would accept values that
460 could crash the planner later on.
461
462 The PostgreSQL Project thanks Jeroen Gui for reporting this problem.
463 (CVE-2026-6575)
464
465 + Guard against malicious time zone names in timeofday() and pg_strftime()
466 (Tom Lane)
467
468 A crafted time zone setting could pass % sequences to snprintf(),
469 potentially causing crashes or disclosure of server memory. Another
470 path to similar results was to overflow the limited-size output buffer
471 used by pg_strftime().
472
473 The PostgreSQL Project thanks Xint Code for reporting this problem.
474 (CVE-2026-6474)
475
476 + When creating a multirange type, ensure the user has CREATE privilege on
477 the schema specified for the multirange type (Jelte Fennema-Nio)
478
479 The multirange type can be put into a different schema than its parent
480 range type, but we neglected to apply the required privilege check when
481 doing so.
482
483 The PostgreSQL Project thanks Jelte Fennema-Nio for reporting this
484 problem. (CVE-2026-6472)
485
486 + Use timing-safe string comparisons in authentication code
487 (Michael Paquier)
488
489 Use timingsafe_bcmp() instead of memcpy() or strcmp() when checking
490 passwords, hashes, etc. It is not known whether the data dependency of
491 those functions is usefully exploitable in any of these places, but in
492 the interests of safety, replace them.
493
494 The PostgreSQL Project thanks Joe Conway for reporting this problem.
495 (CVE-2026-6478)
496
497 + Mark PQfn() as unsafe, and avoid using it within libpq (Nathan Bossart)
498
499 For a non-integral result type, PQfn() is not passed the size of the
500 output buffer, so it cannot check that the data returned by the server
501 will fit. A malicious server could therefore overwrite client memory.
502 This is unfixable without an API change, so mark the function as
503 deprecated. Internally to libpq, use a variant version that can apply
504 the missing check.
505
506 The PostgreSQL Project thanks Yu Kunpeng and Martin Heistermann for
507 reporting this problem. (CVE-2026-6477)
508
509 + Prevent path traversal in pg_basebackup and pg_rewind (Michael Paquier)
510
511 These applications failed to validate output file paths read from their
512 input, so that a malicious source could overwrite any file writable by
513 these applications. Constrain where data can be written by rejecting
514 paths that are absolute or contain parent-directory references.
515
516 The PostgreSQL Project thanks XlabAI Team of Tencent Xuanwu Lab and
517 Valery Gubanov for reporting this problem. (CVE-2026-6475)
518
519 + Guard against field overflow within contrib/intarray's query_int type
520 and contrib/ltree's ltxtquery type (Tom Lane)
521
522 Parsing of these query structures did not check for overflow of 16-bit
523 fields, so that construction of an invalid query tree was possible.
524 This can crash the server when executing the query.
525
526 The PostgreSQL Project thanks Xint Code for reporting this problem.
527 (CVE-2026-6473)
528
529 + Guard against overly long values of contrib/ltree's lquery type
530 (Michael Paquier)
531
532 Values with more than 64K items caused internal overflows, potentially
533 resulting in stack smashes or wrong answers.
534
535 The PostgreSQL Project thanks Vergissmeinnicht, A1ex, and Jihe Wang for
536 reporting this problem. (CVE-2026-6473)
537
538 + Prevent SQL injection and buffer overruns in contrib/spi
539 (Nathan Bossart)
540
541 check_foreign_key() was insufficiently careful about quoting key values,
542 and also used fixed-length buffers for constructing queries. While this
543 module is only meant as example code, it still shouldn't contain such
544 dangerous errors.
545
546 The PostgreSQL Project thanks Nikolay Samokhvalov for reporting this
547 problem. (CVE-2026-6637)
548
549 * Add zh_TW, zh_CN debconf translations. Thanks Yangfl! (Closes: #1124468)
550
551 [ Michael Banck ]
552 * Add patch that fixes TAP tests on hurd.
553
554 -- Christoph Berg <[email protected]> Mon, 11 May 2026 22:49:32 +0200
555
556 postgresql-18 (18.3-1) unstable; urgency=medium
557
558 * New upstream version 18.3.
559
560 + Fix failure after replaying a multixid truncation record from WAL that
561 was generated by an older minor version (Heikki Linnakangas)
562
563 Erroneous logic for coping with the way that previous versions handled
564 multixid wraparound led to replay failure, with messages like "could not
565 access status of transaction". A typical scenario in which this could
566 occur is a standby server of the latest minor version consuming WAL from
567 a primary server of an older version.
568
569 + Avoid incorrect complaint of invalid encoding when substring() is
570 applied to toasted data (Noah Misch)
571
572 The fix for CVE-2026-2006 was too aggressive and could raise an error
573 about an incomplete character in cases that are actually valid.
574
575 + Fix oversight in the fix for CVE-2026-2007 (Zsolt Parragi)
576
577 If the bounds array needed to be expanded, because the input contained
578 more trigrams than the initial guess, generate_trgm_only didn't return
579 the modified array pointer to its caller. That would lead to incorrect
580 output from strict_word_similarity() and related functions, or in rare
581 cases a crash. The faulty code is reached if the input string becomes
582 longer when it's converted to lower case. The only known instances of
583 that occur when an ICU locale is used with certain single-byte
584 encodings.
585
586 + Fix the volatility marking of json_strip_nulls() and jsonb_strip_nulls()
587 (Andrew Dunstan)
588
589 These functions have always been considered immutable, but refactoring
590 in version 18 accidentally marked them stable instead. That prevents
591 their use in index expressions and could cause unnecessary repeat
592 evaluations in queries. This fix corrects the marking in
593 newly-initialized database clusters (including clusters that are
594 pg_upgrade'd to 18.3 or later). However it will not help existing
595 clusters made using 18.0 through 18.2.
596
597 If this mistake affects your usage of these functions, the recommended
598 fix for an existing cluster is a manual catalog update. As superuser,
599 perform
600
601 UPDATE pg_catalog.pg_proc SET provolatile = 'i' WHERE oid IN ('3261','3262');
602
603 in each affected database. Update template0 and template1 as well, so
604 that databases made in future will have the fix.
605
606 -- Christoph Berg <[email protected]> Tue, 24 Feb 2026 12:48:56 +0100
607
608 postgresql-18 (18.2-1) unstable; urgency=medium
609
610 * New upstream version 18.2.
611
612 + Guard against unexpected dimensions of oidvector/int2vector (Tom Lane)
613
614 These data types are expected to be 1-dimensional arrays containing no
615 nulls, but there are cast pathways that permit violating those
616 expectations. Add checks to some functions that were depending on those
617 expectations without verifying them, and could misbehave in consequence.
618
619 The PostgreSQL Project thanks Altan Birler for reporting this problem.
620 (CVE-2026-2003)
621
622 + Harden selectivity estimators against being attached to operators that
623 accept unexpected data types (Tom Lane)
624
625 contrib/intarray contained a selectivity estimation function that could
626 be abused for arbitrary code execution, because it did not check that
627 its input was of the expected data type. Third-party extensions should
628 check for similar hazards and add defenses using the technique intarray
629 now uses. Since such extension fixes will take time, we now require
630 superuser privilege to attach a non-built-in selectivity estimator to an
631 operator.
632
633 The PostgreSQL Project thanks Daniel Firer, as part of zeroday.cloud,
634 for reporting this problem. (CVE-2026-2004)
635
636 + Fix buffer overrun in contrib/pgcrypto's PGP decryption functions
637 (Michael Paquier)
638
639 Decrypting a crafted message with an overlength session key caused a
640 buffer overrun, with consequences as bad as arbitrary code execution.
641
642 The PostgreSQL Project thanks Team Xint Code, as part of zeroday.cloud,
643 for reporting this problem. (CVE-2026-2005)
644
645 + Fix inadequate validation of multibyte character lengths
646 (Thomas Munro, Noah Misch)
647
648 Assorted bugs allowed an attacker able to issue crafted SQL to overrun
649 string buffers, with consequences as bad as arbitrary code execution.
650 After these fixes, applications may observe invalid byte sequence for
651 encoding errors when string functions process invalid text that has been
652 stored in the database.
653
654 The PostgreSQL Project thanks Paul Gerste and Moritz Sanft, as part of
655 zeroday.cloud, for reporting this problem. (CVE-2026-2006)
656
657 + Harden contrib/pg_trgm against changes in string lowercasing behavior
658 (Heikki Linnakangas)
659
660 Fix potential buffer overruns arising from the fact that in some locales
661 lower-casing a string can produce more characters (not bytes) than were
662 in the original. That behavior is new in version 18, and so is the bug.
663
664 The PostgreSQL Project thanks Heikki Linnakangas for reporting this
665 problem. (CVE-2026-2007)
666
667 * Remove pg_numa_init and LLVM 21 patches, merged upstream.
668
669 -- Christoph Berg <[email protected]> Tue, 10 Feb 2026 11:26:19 +0100
670
671 postgresql-18 (18.1-2) unstable; urgency=medium
672
673 * Fix build with LLVM 21.
674
675 -- Christoph Berg <[email protected]> Thu, 11 Dec 2025 17:37:16 +0100
676
677 postgresql-18 (18.1-1) unstable; urgency=medium
678
679 * New upstream version 18.1.
680
681 + Check for CREATE privileges on the schema in CREATE STATISTICS
682 (Jelte Fennema-Nio)
683
684 This omission allowed table owners to create statistics in any schema,
685 potentially leading to unexpected naming conflicts.
686
687 The PostgreSQL Project thanks Jelte Fennema-Nio for reporting this
688 problem. (CVE-2025-12817)
689
690 + Avoid integer overflow in allocation-size calculations within libpq
691 (Jacob Champion)
692
693 Several places in libpq were not sufficiently careful about computing
694 the required size of a memory allocation. Sufficiently large inputs
695 could cause integer overflow, resulting in an undersized buffer, which
696 would then lead to writing past the end of the buffer.
697
698 The PostgreSQL Project thanks Aleksey Solovev of Positive Technologies
699 for reporting this problem. (CVE-2025-12818)
700
701 * Handle EPERM in pg_numa_init.
702 * Test-Depend on postgresql-common-dev.
703
704 -- Christoph Berg <[email protected]> Tue, 11 Nov 2025 13:05:55 +0100
705
706 postgresql-18 (18.0-1) unstable; urgency=medium
707
708 * PostgreSQL 18.0.
709 * B-D on openssl.
710
711 -- Christoph Berg <[email protected]> Tue, 23 Sep 2025 21:46:05 +0200
712
713 postgresql-18 (18~rc1-3) unstable; urgency=medium
714
715 * libpq.pc: Drop libcurl from Requires.private.
716
717 -- Christoph Berg <[email protected]> Tue, 23 Sep 2025 17:12:07 +0200
718
719 postgresql-18 (18~rc1-2) unstable; urgency=medium
720
721 * Upload to unstable in preparation of 18.0 release.
722 * B-D on postgresql-common-dev instead of -common.
723 * Drop move-pages32 patch, upstream had a different fix already.
724
725 -- Christoph Berg <[email protected]> Mon, 22 Sep 2025 12:37:17 +0200
726
727 postgresql-18 (18~rc1-1) experimental; urgency=medium
728
729 * New upstream version 18rc1.
730 * libpq-oauth.lintian-overrides: Package is a plugin.
731
732 -- Christoph Berg <[email protected]> Wed, 13 Aug 2025 23:37:10 +0200
733
734 postgresql-18 (18~beta3-1) experimental; urgency=medium
735
736 * New upstream version 18beta3.
737 * Drop obsolete patches: focal-arm64-outline-atomics, jit-s390x.
738
739 -- Christoph Berg <[email protected]> Tue, 12 Aug 2025 12:08:31 +0200
740
741 postgresql-18 (18~beta2-1) experimental; urgency=medium
742
743 * New upstream version 18beta2.
744 * Drop hurd-iovec patch, implemented upstream.
745 * debian/libpq5.symbols: Remove PQservice (introduced earlier in 18).
746
747 -- Christoph Berg <[email protected]> Fri, 18 Jul 2025 12:48:48 +0200
748
749 postgresql-18 (18~beta1+20250701-1) experimental; urgency=medium
750
751 * New upstream snapshot.
752
753 -- Christoph Berg <[email protected]> Tue, 01 Jul 2025 11:36:41 +0200
754
755 postgresql-18 (18~beta1+20250624-1) experimental; urgency=medium
756
757 * New upstream snapshot.
758 * Restrict libpq-oauth and B-D: libnuma-dev to [linux-any].
759 * Work around a Linux 32-bit bug in move_pages on 64-bit kernels.
760 * Add Turkish debconf translation by Atila KOÇ, thanks! (Closes: #1107984)
761 * Add Catalan debconf translation by Carles Pina i Estany, thanks!
762
763 -- Christoph Berg <[email protected]> Mon, 23 Jun 2025 14:37:14 +0200
764
765 postgresql-18 (18~beta1+20250612-1) experimental; urgency=medium
766
767 * New upstream snapshot.
768 * Add B-D on libnuma-dev.
769
770 -- Christoph Berg <[email protected]> Fri, 06 Jun 2025 14:29:17 +0200
771
772 postgresql-18 (18~beta1-1) experimental; urgency=medium
773
774 * First beta version.
775
776 -- Christoph Berg <[email protected]> Tue, 06 May 2025 20:28:58 +0200
777
778 postgresql-18 (18~~devel.20250502-1) experimental; urgency=medium
779
780 * Split libpq-oauth into a separate package so libpq5 does not have to
781 depend on libcurl.
782
783 -- Christoph Berg <[email protected]> Fri, 02 May 2025 10:39:45 +0200
784
785 postgresql-18 (18~~devel.20250421-1) experimental; urgency=medium
786
787 * New upstream snapshot.
788
789 -- Christoph Berg <[email protected]> Mon, 21 Apr 2025 21:07:47 +0200
790
791 postgresql-18 (18~~devel.20250405-1) experimental; urgency=medium
792
793 * New upstream snapshot.
794 * B-D on liburing-dev.
795
796 -- Christoph Berg <[email protected]> Wed, 02 Apr 2025 15:15:38 +0200
797
798 postgresql-18 (18~~devel.20250331-1) experimental; urgency=medium
799
800 * New upstream snapshot.
801 * Drop extension_destdir patch, implemented upstream as
802 extension_control_path.
803 * Disable JIT on loong64 and riscv64 again, still segfaulting.
804
805 -- Christoph Berg <[email protected]> Wed, 19 Mar 2025 15:47:26 +0100
806
807 postgresql-18 (18~~devel.20250318+g4078da6c478-1) experimental; urgency=medium
808
809 * New major upstream version 18; packaging based on postgresql-17.
810 * Move JIT to new postgresql-18-jit package. (Closes: #927182)
811 * Enable JIT only on 64-bit architectures.
812
813 -- Christoph Berg <[email protected]> Tue, 18 Mar 2025 16:43:43 +0100