[CLSA-2026:1794219717] Fix CVE(s): CVE-2025-12818
Type:
security
Severity:
Important
Release date:
2026-11-09 10:22:09 UTC
Description:
* SECURITY UPDATE: SQL injection through the libpq escaping functions and the client utilities, where an invalidly encoded multibyte character could swallow a following quote or backslash that was then copied unescaped, enabling psql meta-command execution - debian/patches/CVE-2025-1094.patch: add pg_encoding_verifymbstr(), pg_encoding_verifymbchar() and pg_encoding_set_invalid(), validate each character and replace invalid ones with an always invalid byte sequence in PQescapeLiteral(), PQescapeIdentifier(), PQescapeString() and PQescapeStringConn(), add fmtIdEnc() and make appendStringLiteral() and appendPsqlMetaConnect() encoding aware, in src/interfaces/libpq/fe-exec.c, src/fe_utils/string_utils.c, src/backend/utils/mb/wchar.c, src/include/mb/pg_wchar.h, pg_dump, psql and src/bin/scripts, build wchar.o into libpgfeutils, and add the test_escape test module - CVE-2025-1094 * SECURITY UPDATE: integer overflows in libpq size calculations that let an application input provider or a network peer cause an undersized allocation followed by an out of bounds heap write - debian/patches/CVE-2025-12818.patch: use size_t and add overflow checks in PQescapeInternal(), PQescapeByteaInternal(), PQsetvalue(), pqResultAlloc(), pqRowProcessor(), PQprint(), do_header(), do_field(), reportErrorPosition(), build_startup_packet(), parse_comma_separated_list() and ldapServiceLookup(), in src/interfaces/libpq/fe-connect.c, fe-exec.c, fe-print.c and fe-protocol3.c - CVE-2025-12818
CVEs fixed:
Updated packages:
  • libecpg-compat3-12_12.22-2~trixie+tuxcare.els17_amd64.deb
    sha:39f17f2fbea66d2e25abddd7d78378cb8f20787c
  • libecpg-dev-12_12.22-2~trixie+tuxcare.els17_amd64.deb
    sha:766445ebf291d6eab99d5ba88831fc20992dbabc
  • libecpg6-12_12.22-2~trixie+tuxcare.els17_amd64.deb
    sha:599ab41dff091025882b102f2f0fd26d95558244
  • libpgtypes3-12_12.22-2~trixie+tuxcare.els17_amd64.deb
    sha:541651670cb4843133191e0e6062c767ca649792
  • libpq-dev-12_12.22-2~trixie+tuxcare.els17_amd64.deb
    sha:2d029ad5b44134329dc3e3c884da502ac689e1f0
  • libpq5-12_12.22-2~trixie+tuxcare.els17_amd64.deb
    sha:5a2b678ca92ebe08f5ba4c76512c77b4c05cad7c
  • postgresql12_12.22-2~trixie+tuxcare.els17_amd64.deb
    sha:ce9d381ae75d133df5fa3b41a9880a8a0df807d9
  • postgresql12-client_12.22-2~trixie+tuxcare.els17_amd64.deb
    sha:149b1d98280cb913a12b548d92e56944ac2f6c68
  • postgresql12-doc_12.22-2~trixie+tuxcare.els17_all.deb
    sha:fdc74f020caf2fd62741fdc6661f1a4071ce9142
  • postgresql12-plperl_12.22-2~trixie+tuxcare.els17_amd64.deb
    sha:9802a4cd0113edab0d942d4a7964a923ff711b17
  • postgresql12-plpython3_12.22-2~trixie+tuxcare.els17_amd64.deb
    sha:dd332b61d378b13d89a39b3989093e69f8fc4500
  • postgresql12-pltcl_12.22-2~trixie+tuxcare.els17_amd64.deb
    sha:8e8dc195deebab237f71b03e9fb8144b49b76484
  • postgresql12-server-dev_12.22-2~trixie+tuxcare.els17_amd64.deb
    sha:c22ba2c09f04b59bc1d634bd5e82f6f5a34c01fd
  • libecpg-compat3-12_12.22-2~trixie+tuxcare.els17_arm64.deb
    sha:d28b494daf926dc0f9cb120b3fb1a035f185e58b
  • libecpg-dev-12_12.22-2~trixie+tuxcare.els17_arm64.deb
    sha:fda2f2daeaf114c0b24dc4ef17110a12d0b5ad84
  • libecpg6-12_12.22-2~trixie+tuxcare.els17_arm64.deb
    sha:05da06f3bfb695c0631a327296d5165236d23fce
  • libpgtypes3-12_12.22-2~trixie+tuxcare.els17_arm64.deb
    sha:80d0c7a4dba8e498aeff519542cbd19d59d74900
  • libpq-dev-12_12.22-2~trixie+tuxcare.els17_arm64.deb
    sha:d552418ffbe5a97ed52d96036f75ef041edcc043
  • libpq5-12_12.22-2~trixie+tuxcare.els17_arm64.deb
    sha:a4b978f78e0879f95ea1bea4656b8a15362dd685
  • postgresql12_12.22-2~trixie+tuxcare.els17_arm64.deb
    sha:dea1138709d1d19025ddd580db9677ea7357738e
  • postgresql12-client_12.22-2~trixie+tuxcare.els17_arm64.deb
    sha:e422d47fdb71e5f89f1237602de8332f2c24b351
  • postgresql12-plperl_12.22-2~trixie+tuxcare.els17_arm64.deb
    sha:c05e12c205540a49e6985ab75e0e8013cbb26224
  • postgresql12-plpython3_12.22-2~trixie+tuxcare.els17_arm64.deb
    sha:4dc927547d0ea4803e5dbfab4329d016feec5312
  • postgresql12-pltcl_12.22-2~trixie+tuxcare.els17_arm64.deb
    sha:d8c48dfba32ff8e6e52a777a827e40cc3bbe8831
  • postgresql12-server-dev_12.22-2~trixie+tuxcare.els17_arm64.deb
    sha:ab0e058bb3f17f5a478dfd924aad92b70faabd9f
Notes:
This page is generated automatically and has not been checked for errors. For clarification or corrections please contact the CloudLinux Packaging Team.