<Vulnerability name="CVE-2026-116303">
    <DocumentDistribution xml:lang="en">Copyright © 2012 Red Hat, Inc. All rights reserved.</DocumentDistribution>
    <ThreatSeverity>Low</ThreatSeverity>
    <PublicDate>2026-11-12T14:15:01</PublicDate>
    <Bugzilla id="2572544" url="https://bugzilla.redhat.com/show_bug.cgi?id=2572544" xml:lang="en:us">
postgresql: PostgreSQL: Unauthorized execution of restricted cast functions via type conversion operations
    </Bugzilla>
    <CVSS3 status="verified">
        <CVSS3BaseScore>3.1</CVSS3BaseScore>
        <CVSS3ScoringVector>CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N</CVSS3ScoringVector>
    </CVSS3>
    <CWE>CWE-420</CWE>
    <Details xml:lang="en:us" source="Mitre">
Missing authorization in PostgreSQL type conversion allows a database user to invoke a cast function despite lacking EXECUTE privilege on that function, via foreign keys, to_json(), and others.  A successful attack requires the attacker to search each database for access-restricted cast functions and identify confidentiality impact specific to each function implementation found.  There are few or no practical examples of an access-restricted cast function or of a cast function having confidentiality impact.  Versions before PostgreSQL 18.7, 17.12, 16.16, 15.20, and 14.25 are affected.
    </Details>
    <Details xml:lang="en:us" source="Red Hat">
A flaw was found in PostgreSQL. An authenticated database user can bypass permission checks to invoke restricted type conversion (cast) functions without the necessary execution privileges. By triggering operations such as foreign key evaluations or data formatting functions, a user may execute unauthorized functions and potentially access sensitive information.
    </Details>
    <Statement xml:lang="en:us">
This vulnerability is rated as having a Low impact because exploitation requires an authenticated database user and depends on the presence of custom cast functions that both restrict execute permissions and expose sensitive data. In standard Red Hat Enterprise Linux PostgreSQL deployments, cast functions are not configured with restrictive execute permissions nor do they handle confidential logic by default. Consequently, typical production environments have virtually no practical exposure to this flaw.
    </Statement>
    <Mitigation xml:lang="en:us">
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.
    </Mitigation>
    <AffectedRelease cpe="cpe:/a:redhat:hummingbird:1">
        <ProductName>Red Hat Hardened Images</ProductName>
        <ReleaseDate>2026-11-13T00:00:00Z</ReleaseDate>
        <Advisory type="RHSA" url="https://access.redhat.com/errata/RHSA-2026:100114">RHSA-2026:100114</Advisory>
        <Package name="postgresql17-main">postgresql17-main-17.12-0.1.hum1</Package>
    </AffectedRelease>
    <AffectedRelease cpe="cpe:/a:redhat:hummingbird:1">
        <ProductName>Red Hat Hardened Images</ProductName>
        <ReleaseDate>2026-11-13T00:00:00Z</ReleaseDate>
        <Advisory type="RHSA" url="https://access.redhat.com/errata/RHSA-2026:100123">RHSA-2026:100123</Advisory>
        <Package name="postgresql18-main">postgresql18-main-18.7-0.1.hum1</Package>
    </AffectedRelease>
    <AffectedRelease cpe="cpe:/a:redhat:hummingbird:1">
        <ProductName>Red Hat Hardened Images</ProductName>
        <ReleaseDate>2026-11-12T00:00:00Z</ReleaseDate>
        <Advisory type="RHSA" url="https://access.redhat.com/errata/RHSA-2026:99821">RHSA-2026:99821</Advisory>
        <Package name="libpq-main">libpq-main-18.7-0.1.hum1</Package>
    </AffectedRelease>
    <References xml:lang="en:us">
https://www.cve.org/CVERecord?id=CVE-2026-116303
https://nvd.nist.gov/vuln/detail/CVE-2026-116303
https://www.postgresql.org/support/security/CVE-2026-116303/
    </References>
</Vulnerability>