CVE-2012-1151 Memory corruption in n/a

Medium 5.0 Published Updated

Remote PostgreSQL servers can crash Perl applications using DBD::Pg via crafted warnings or statements due to format string vulnerabilities.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2012-1151?

CVE-2012-1151 is a medium-severity memory corruption vulnerability in n/a, published on 9 Sep 2012. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Multiple format string vulnerabilities in dbdimp.c in DBD::Pg (aka DBD-Pg or libdbd-pg-perl) module before 2.19.0 for Perl allow remote PostgreSQL database servers to cause a denial of service (process crash) via format string specifiers in (1) a crafted database warning to the pg_warn function or (2) a crafted DBD statement to the dbd_st_prepare function.

Weakness: CWE-134

Which versions are affected by CVE-2012-1151?

It affects 1 product.

Linux distribution packages (10)
perl-DBD-Pg Red Hat:enterprise_linux:5::clientAll versions0:1.49-4.el5_8
perl-DBD-Pg-debuginfo Red Hat:enterprise_linux:5::clientAll versions0:1.49-4.el5_8
perl-DBD-Pg Red Hat:enterprise_linux:5::serverAll versions0:1.49-4.el5_8
perl-DBD-Pg-debuginfo Red Hat:enterprise_linux:5::serverAll versions0:1.49-4.el5_8
perl-DBD-Pg Red Hat:enterprise_linux:6::computenodeAll versions0:2.15.1-4.el6_3
perl-DBD-Pg-debuginfo Red Hat:enterprise_linux:6::computenodeAll versions0:2.15.1-4.el6_3
perl-DBD-Pg Red Hat:enterprise_linux:6::serverAll versions0:2.15.1-4.el6_3
perl-DBD-Pg-debuginfo Red Hat:enterprise_linux:6::serverAll versions0:2.15.1-4.el6_3
perl-DBD-Pg Red Hat:enterprise_linux:6::workstationAll versions0:2.15.1-4.el6_3
perl-DBD-Pg-debuginfo Red Hat:enterprise_linux:6::workstationAll versions0:2.15.1-4.el6_3

Products include Perl Perl.

How do I fix CVE-2012-1151?

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-2012-1151 being exploited?

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

Sources

Also known as DEBIAN-CVE-2012-1151, DSA-2431-1, GHSA-h6fj-j4mh-7x7h, RHSA-2012:1116.

Is CVE-2012-1151 in your software?

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

Check your SBOMs for free