CVE-2007-4772: Medium severity PostgreSQL postgresql vulnerability

Published Oct 3, 2007
·
Updated

The regular expression parser in TCL before 8.4.17, as used in PostgreSQL 8.2 before 8.2.6, 8.1 before 8.1.11, 8.0 before 8.0.15, and 7.4 before 7.4.19, allows context-dependent attackers to cause a denial of service (infinite loop) via a crafted regular expression.

Other sources

Will Drewry of the Google Security Team reported a problem in regular expressions code use by PostreSQL which results in a non-terminating infinite loop during nondeterministic finite automata optimization. These loops remain even after the client disconnects and can be used to hog CPU and connections to the database until a full-fledged denial of service condition occurs.

— Red Hat

Affected Software

11 affected componentsFixes available
PostgreSQL postgresql>=7.4<7.4.19
PostgreSQL postgresql>=8.0<8.0.15
PostgreSQL postgresql>=8.1<8.1.11
PostgreSQL postgresql>=8.2<8.2.6
Tcl Tcl\/tk<8.4.17
Debian Debian Linux=3.1
Canonical Ubuntu Linux=6.06
Canonical Ubuntu Linux=6.10
Canonical Ubuntu Linux=7.04
Canonical Ubuntu Linux=7.10
redhat/8.2.6<1.
1.

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/8.2.6 to a version that resolves this vulnerability.

    Fixed in 1.

Event History

Oct 3, 2007
Data Sourced
via Red Hat·07:43 AM
DescriptionSeverityAffected Software
Jan 9, 2008
CVE Published
via MITRE·09:00 PM
Data Sourced
via MITRE·09:00 PM
Description
Data Sourced
09:46 PM
DescriptionWeaknessAffected Software
Data Sourced
via NVD·09:46 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jan 10, 2008
CVE Published
via MITRE·02:00 AM
Oct 9, 2019
Data Sourced
10:53 PM
RemedySeverity

Frequently Asked Questions

1

What is the severity of CVE-2007-4772?

CVE-2007-4772 is classified as a denial of service vulnerability due to its potential to cause an infinite loop.

2

How do I fix CVE-2007-4772?

To fix CVE-2007-4772, update to PostgreSQL version 8.2.6 or later, or upgrade Tcl to version 8.4.17 or later.

3

Which software versions are affected by CVE-2007-4772?

CVE-2007-4772 affects PostgreSQL versions 7.4 prior to 7.4.19, 8.0 prior to 8.0.15, 8.1 prior to 8.1.11, and 8.2 prior to 8.2.6, as well as Tcl before 8.4.17.

4

Can CVE-2007-4772 be exploited remotely?

Yes, CVE-2007-4772 can be exploited by remote attackers through crafted regular expressions.

5

What are the potential impacts of CVE-2007-4772?

The potential impacts of CVE-2007-4772 include service outages and degraded performance due to denial of service.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203