CVE-2005-0247 Memory corruption in n/a

Medium 6.5 Published Updated

Buffer overflows in PostgreSQL parser allow attackers to execute arbitrary code via crafted SQL statements.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2005-0247?

CVE-2005-0247 is a medium-severity memory corruption vulnerability in Postgresql Postgresql, published on 8 Feb 2005. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

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.

Weakness: CWE-119

Which versions are affected by CVE-2005-0247?

It affects 1 product.

Products include Postgresql Postgresql.

How do I fix CVE-2005-0247?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2005-0247 being exploited?

There is no known exploitation of CVE-2005-0247 in the wild and no public exploit code.

All Postgresql Postgresql vulnerabilities

Sources

Also known as GHSA-ggh8-6p3g-2rw7.

Is CVE-2005-0247 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free