Skip to content
Heist/ feed
Back to feed
MediumFix available

postgresql-15 — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2023-39418

A vulnerability was found in PostgreSQL with the use of the MERGE command, which fails to test new rows against row security policies defined for UPDATE and SELECT. If UPDATE and SELECT policies forbid some rows that INSERT policies do not forbid, a user could store such rows.

Products
postgresql-15
Affected versions
15.3-0+deb12u1, 15.3-1, 15.4-0+deb12u1, 15.4-1, 15.4-2, 15.4-3
Fixed versions
15.5-0+deb12u1
CVEs
CVE-2023-39418
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 15:48 UTC · Revision 1

Source evidence

DEBIAN-CVE-2023-39418

core-osv · Original source

Published 11 Aug 2023, 13:15 UTC

A vulnerability was found in PostgreSQL with the use of the MERGE command, which fails to test new rows against row security policies defined for UPDATE and SELECT. If UPDATE and SELECT policies forbid some rows that INSERT policies do not forbid, a user could store such rows.

osv:DEBIAN-CVE-2023-39418

postgresql-15

Fixed versions: 15.5-0+deb12u1

Complete source record
{
  "id": "82ffdb9f95ae9e034e14bf886508d9dcbc5dc16aac3251b31085047a65bdc973",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2023-39418",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2023-39418",
    "summary": "A vulnerability was found in PostgreSQL with the use of the MERGE command, which fails to test new rows against row security policies defined for UPDATE and SELECT. If UPDATE and SELECT policies forbid some rows that INSERT policies do not forbid, a user could store such rows.",
    "evidence": "osv:DEBIAN-CVE-2023-39418",
    "products": [
      {
        "name": {
          "value": "postgresql-15",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "15.5-0+deb12u1",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "15.3-0+deb12u1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "15.3-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "15.4-0+deb12u1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "15.4-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "15.4-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "15.4-3",
            "evidence": "/affected/0/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "DEBIAN-CVE-2023-39418",
      "aliases": [
        "DEBIAN-CVE-2023-39418"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "15.5-0+deb12u1"
                }
              ]
            }
          ],
          "package": {
            "name": "postgresql-15",
            "purl": "pkg:deb/debian/postgresql-15?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "versions": [
            "15.3-0+deb12u1",
            "15.3-1",
            "15.4-0+deb12u1",
            "15.4-1",
            "15.4-2",
            "15.4-3"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-39418.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-26T18:01:52.590912408Z",
      "provider": "osv",
      "upstream": [
        "CVE-2023-39418"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2023-39418"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2023-39418",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 455741,
  "published_at": "2023-08-11T13:15:09.963+00:00"
}