Description
Cleartext storage in PostgreSQL pgcrypto disabled ciphers allows a user to recover cleartext, via direct observation of the faulty ciphertext. The OpenSSL version and OpenSSL configuration determine the disabled ciphers. If the application accepts encrypted data as input, decryption will succeed even with the wrong key. This in turn loses the modest protection from the Modification Detection Code (MDC). Affected functions are pgp_sym_encrypt, pgp_sym_decrypt, pgp_pub_encrypt, pgp_pub_decrypt, pgp_sym_encrypt_bytea, pgp_sym_decrypt_bytea, pgp_pub_encrypt_bytea, and pgp_pub_decrypt_bytea. Versions before PostgreSQL 18.5, 17.11, 16.15, 15.19, and 14.24 are affected.
Published: 2026-08-13
Score: 6.5 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability lies in PostgreSQL’s pgcrypto module when the OpenSSL library is configured to disable certain ciphers. In these conditions, data encrypted with functions such as pgp_sym_encrypt or pgp_pub_encrypt is written to the database in cleartext, and decryption can still succeed even with an incorrect key. This defeats the intended confidentiality and limited integrity protection of the Modification Detection Code and enables an attacker to recover plain data by simply viewing the faulty ciphertext. The weakness is categorized as cryptographic key‐management and sensitive data exposure, matching CWE‑313 and CWE‑345.

Affected Systems

Affected versions are PostgreSQL releases prior to 18.5, 17.11, 16.15, 15.19, and 14.24. The functions impacted are pgp_sym_encrypt, pgp_sym_decrypt, pgp_pub_encrypt, pgp_pub_decrypt, pgp_sym_encrypt_bytea, pgp_sym_decrypt_bytea, pgp_pub_encrypt_bytea, and pgp_pub_decrypt_bytea, all of which can be used in standard database applications running on these versions.

Risk and Exploitability

The CVSS score of 6.5 indicates moderate to high risk, and while the EPSS score is not available, the vulnerability has been documented as not in CISA’s KEV catalog. Attackers can exploit the flaw by executing any of the affected pgcrypto functions with user data; the decryption succeeds even when the key is wrong, revealing cleartext. Because the flaw is in the database engine itself, the attack requires only that the attacker has database access sufficient to run the affected functions, making the exploitation straightforward once the environment is configured with disabled OpenSSL ciphers.

Generated by OpenCVE AI on August 13, 2026 at 14:48 UTC.

Remediation

Vendor Workaround

Use FIPS-compliant ciphers or other OpenSSL-enabled ciphers


OpenCVE Recommended Actions

  • Upgrade PostgreSQL to the first non‑affected release (18.5, 17.11, 16.15, 15.19, or 14.24).
  • Reconfigure the instance to use FIPS‑compliant or properly enabled OpenSSL ciphers so that pgcrypto functions employ secure encryption.
  • Audit all existing pgcrypto calls—re‑implement or eliminate usage of the affected functions and ensure that encrypted data is only accepted when the encryption key is correct.

Generated by OpenCVE AI on August 13, 2026 at 14:48 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 13 Aug 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 13 Aug 2026 15:30:00 +0000

Type Values Removed Values Added
First Time appeared Postgresql
Postgresql postgresql
Vendors & Products Postgresql
Postgresql postgresql

Thu, 13 Aug 2026 13:15:00 +0000

Type Values Removed Values Added
Description Cleartext storage in PostgreSQL pgcrypto disabled ciphers allows a user to recover cleartext, via direct observation of the faulty ciphertext. The OpenSSL version and OpenSSL configuration determine the disabled ciphers. If the application accepts encrypted data as input, decryption will succeed even with the wrong key. This in turn loses the modest protection from the Modification Detection Code (MDC). Affected functions are pgp_sym_encrypt, pgp_sym_decrypt, pgp_pub_encrypt, pgp_pub_decrypt, pgp_sym_encrypt_bytea, pgp_sym_decrypt_bytea, pgp_pub_encrypt_bytea, and pgp_pub_decrypt_bytea. Versions before PostgreSQL 18.5, 17.11, 16.15, 15.19, and 14.24 are affected.
Title PostgreSQL pgcrypto, for OpenSSL-disabled ciphers, silently encrypts to and decrypts from cleartext
Weaknesses CWE-313
CWE-345
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N'}


Subscriptions

Postgresql Postgresql
cve-icon MITRE

Status: PUBLISHED

Assigner: PostgreSQL

Published:

Updated: 2026-08-13T15:34:25.917Z

Reserved: 2026-07-03T20:28:08.416Z

Link: CVE-2026-14663

cve-icon Vulnrichment

Updated: 2026-08-13T15:19:58.692Z

cve-icon NVD

Status : Received

Published: 2026-08-13T13:17:43.700

Modified: 2026-08-13T16:17:55.600

Link: CVE-2026-14663

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-13T15:15:12Z

Weaknesses
  • CWE-313

    Cleartext Storage in a File or on Disk

  • CWE-345

    Insufficient Verification of Data Authenticity