dataiotech Labs
dbaguidedbaguideDBAdataxtoolsdataopsphere
Database Security & Compliance

Database Security & Hardening

Live CVE tracking, security hardening, privilege models, audit logging, and post-breach response runbooks.

Critical CVE Security Advisories

All Advisories →
CVE-2026-1104CVSS 7.8

PostgreSQL 17.2 Autovacuum Memory Leak Security Patch

Resolved excessive memory consumption bug during parallel autovacuum workers.

Action / Patch::Upgrade to PostgreSQL 17.2 immediately or restrict autovacuum_work_mem limit.
Motor: PostgreSQL2026-09-07
CVE-2024-10979CVSS 8.8

PostgreSQL PL/Perl Environment Variable Manipulation Code Execution

Vulnerability in PostgreSQL PL/Perl allowing non-superusers to modify sensitive environment variables and execute arbitrary code.

Action / Patch::Upgrade immediately to PostgreSQL 17.1, 16.5, 15.9, 14.14, or 13.17.
Motor: PostgreSQL2024-11-14
CVE-2024-21096CVSS 7.5

MySQL Server Optimizer Denial of Service (DoS) Vulnerability

Allows low-privileged authenticated users with network access to cause server hangs or complete crash via crafted optimizer queries.

Action / Patch::Apply Oracle Critical Patch Update (CPU) and upgrade to MySQL 8.0.37+ or 8.4.1+ LTS.
Motor: MySQL2024-10-18

Hardening Practices

All Guides →
postgresql • auth

PostgreSQL pg_hba.conf Hardening & Mandatory SCRAM-SHA-256 + TLS

critical

Deprecate legacy MD5 and insecure `trust` auth methods, enforcing SCRAM-SHA-256 encryption and mandatory TLS certificates.

Insecure Practice:
# TEHLİKELİ: Tüm ağa şifresiz veya zayıf MD5 erişimi
host    all    all    0.0.0.0/0    trust
host    all    all    0.0.0.0/0    md5
Hardened Practice:
# GÜVENLİ: Sadece TLS (hostssl), tanımlı subnet ve SCRAM-SHA-256
hostssl app_db  app_user 10.0.4.0/24  scram-sha-256
hostssl all     dba_team 10.0.1.0/24  scram-sha-256 clientcert=verify-full
mysql • network

MySQL Attack Surface Reduction (local_infile=0 & bind-address)

critical

Disable client-side local file reads and restrict listening socket to internal private VPC subnets.

Insecure Practice:
[mysqld]
bind-address = 0.0.0.0
local_infile = 1
Hardened Practice:
[mysqld]
bind-address = 10.0.2.15
local_infile = 0
skip_show_database = 1
require_secure_transport = ON

Compromised Credential Rotation Runbook

Emergency triage procedure to terminate hijacked sessions, rotate secrets, and audit data exfiltration.

Full Runbook →
1
Terminate Sessions

Kill all active client connections for the compromised user.

SELECT pg_terminate_backend(pid) FROM pg_stat_activity WHERE usename='compromised_user';
2
Lock Role & Reset Secret

Rotate credentials with a secure vault hash and revoke login permissions.

ALTER ROLE compromised_user NOLOGIN PASSWORD 'new_vault_secret';
3
Audit Log Forensics

Inspect audit trail to identify accessed tables and origin IPs.

grep 'AUDIT: SESSION' /var/log/postgresql/*.log | grep 'compromised_user'