CVEfocus › CVE database › CVE-2005-0247

CVE-2005-0247

EPSS 3.5% (higher than 89% of CVEs)Published 2005-02-08Updated 2024-08-07Assigner: redhat

Multiple buffer overflows in gram.y for PostgreSQL 8.0.1 and earlier may allow attackers to execute arbitrary code via (1) a large number of variables in a SQL statement being handled by the read_sql_construct function, (2) a large number of INTO variables in a SELECT statement being handled by the make_select_stmt function, (3) a large number of arbitrary variables in a SELECT statement being handled by the make_select_stmt function, and (4) a large number of INTO variables in a FETCH statement being handled by the make_fetch_stmt function, a different set of vulnerabilities than CVE-2005-0245.

What to do

Fixed builds are available from Red Hat: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

22Fixed

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Red Hat Enterprise Linux 4postgresqlFixed0:7.4.7-2.RHEL4.1RHSA-2005:138
Red Hat Enterprise Linux 4postgresql-contribFixed0:7.4.7-2.RHEL4.1RHSA-2005:138
Red Hat Enterprise Linux 4postgresql-develFixed0:7.4.7-2.RHEL4.1RHSA-2005:138
Red Hat Enterprise Linux 4postgresql-docsFixed0:7.4.7-2.RHEL4.1RHSA-2005:138
Red Hat Enterprise Linux 4postgresql-jdbcFixed0:7.4.7-2.RHEL4.1RHSA-2005:138
Red Hat Enterprise Linux 4postgresql-libsFixed0:7.4.7-2.RHEL4.1RHSA-2005:138
Red Hat Enterprise Linux 4postgresql-plFixed0:7.4.7-2.RHEL4.1RHSA-2005:138
Red Hat Enterprise Linux 4postgresql-pythonFixed0:7.4.7-2.RHEL4.1RHSA-2005:138
Red Hat Enterprise Linux 4postgresql-serverFixed0:7.4.7-2.RHEL4.1RHSA-2005:138
Red Hat Enterprise Linux 4postgresql-tclFixed0:7.4.7-2.RHEL4.1RHSA-2005:138
Red Hat Enterprise Linux 4postgresql-testFixed0:7.4.7-2.RHEL4.1RHSA-2005:138
Red Hat Enterprise Linux 3rh-postgresqlFixed0:7.3.9-2RHSA-2005:141
Red Hat Enterprise Linux 3rh-postgresql-contribFixed0:7.3.9-2RHSA-2005:141
Red Hat Enterprise Linux 3rh-postgresql-develFixed0:7.3.9-2RHSA-2005:141
Red Hat Enterprise Linux 3rh-postgresql-docsFixed0:7.3.9-2RHSA-2005:141
Red Hat Enterprise Linux 3rh-postgresql-jdbcFixed0:7.3.9-2RHSA-2005:141
Red Hat Enterprise Linux 3rh-postgresql-libsFixed0:7.3.9-2RHSA-2005:141
Red Hat Enterprise Linux 3rh-postgresql-plFixed0:7.3.9-2RHSA-2005:141
Red Hat Enterprise Linux 3rh-postgresql-pythonFixed0:7.3.9-2RHSA-2005:141
Red Hat Enterprise Linux 3rh-postgresql-serverFixed0:7.3.9-2RHSA-2005:141
Red Hat Enterprise Linux 3rh-postgresql-tclFixed0:7.3.9-2RHSA-2005:141
Red Hat Enterprise Linux 3rh-postgresql-testFixed0:7.3.9-2RHSA-2005:141

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.