CVE-2007-4772: Software Security Vulnerability Vulnerability

MODERATE
Advisory Identifier: GHSA-x3q3-v77f-cg26
Published
Advisory Summary

CVE-2007-4772 is a MODERATE security vulnerability vulnerability (General Security Weakness) affecting Software libraries in the Maven ecosystem. Remediation is available in the latest vendor maintenance releases.

CVE-2007-4772 at a Glance

CVE Identifier CVE-2007-4772
GHSA Identifier GHSA-x3q3-v77f-cg26
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Software
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2007-4772

To remediate this vulnerability, upgrade all affected Software dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2007-4772, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree

Analyze the terminal output to locate any version of Software in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: The mvn dependency:tree command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under General Security Weakness. In Software, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

References

NVD — CVE-2007-4772 NVD
https://nvd.nist.gov/vuln/detail/CVE-2007-4772
exchange.xforce.ibmcloud.com/vulnerabilities/394... WEB
https://exchange.xforce.ibmcloud.com/vulnerabilities/39497
issues.rpath.com/browse/rpl-1768 WEB
https://issues.rpath.com/browse/RPL-1768
Software Security Information SECURITY
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A11569
usn.ubuntu.com/568-1 WEB
https://usn.ubuntu.com/568-1
www.redhat.com/archives/fedora-pac... WEB
https://www.redhat.com/archives/fedora-package-announce/2008-January/msg00397.html
www.redhat.com/archives/fedora-pac... WEB
https://www.redhat.com/archives/fedora-package-announce/2008-January/msg00469.html
h20000.www2.hp.com/bizsupport/techsupp... WEB
http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c01420154
kb.juniper.net/infocenter/index WEB
http://kb.juniper.net/InfoCenter/index?page=content&id=JSA10705
Software Security Information SECURITY
http://lists.opensuse.org/opensuse-security-announce/2008-02/msg00000.html
Software Security Information SECURITY
http://lists.opensuse.org/opensuse-security-announce/2016-02/msg00049.html
Software Security Information SECURITY
http://lists.opensuse.org/opensuse-security-announce/2016-02/msg00052.html
Software Security Information SECURITY
http://lists.opensuse.org/opensuse-security-announce/2016-02/msg00054.html
Software Security Information SECURITY
http://lists.opensuse.org/opensuse-security-announce/2016-02/msg00056.html
Software Security Information SECURITY
http://lists.opensuse.org/opensuse-security-announce/2016-03/msg00016.html
rhn.redhat.com/errata/rhsa-2013-01... WEB
http://rhn.redhat.com/errata/RHSA-2013-0122.html
secunia.com/advisories/28359 WEB
http://secunia.com/advisories/28359
secunia.com/advisories/28376 WEB
http://secunia.com/advisories/28376
secunia.com/advisories/28437 WEB
http://secunia.com/advisories/28437
secunia.com/advisories/28438 WEB
http://secunia.com/advisories/28438
secunia.com/advisories/28454 WEB
http://secunia.com/advisories/28454
secunia.com/advisories/28455 WEB
http://secunia.com/advisories/28455
secunia.com/advisories/28464 WEB
http://secunia.com/advisories/28464
secunia.com/advisories/28477 WEB
http://secunia.com/advisories/28477
secunia.com/advisories/28479 WEB
http://secunia.com/advisories/28479
secunia.com/advisories/28679 WEB
http://secunia.com/advisories/28679
secunia.com/advisories/28698 WEB
http://secunia.com/advisories/28698
secunia.com/advisories/29070 WEB
http://secunia.com/advisories/29070
secunia.com/advisories/29248 WEB
http://secunia.com/advisories/29248
secunia.com/advisories/29638 WEB
http://secunia.com/advisories/29638
secunia.com/advisories/30535 WEB
http://secunia.com/advisories/30535
Software Security Information SECURITY
http://security.gentoo.org/glsa/glsa-200801-15.xml
Software Security Information SECURITY
http://securitytracker.com/id?1019157
sourceforge.net/project/shownotes.p... WEB
http://sourceforge.net/project/shownotes.php?release_id=565440&group_id=10894
sourceforge.net/tracker/index.php WEB
http://sourceforge.net/tracker/index.php?func=detail&aid=1810264&group_id=10894&atid=110894
sunsolve.sun.com/search/document.do WEB
http://sunsolve.sun.com/search/document.do?assetkey=1-26-103197-1
sunsolve.sun.com/search/document.do WEB
http://sunsolve.sun.com/search/document.do?assetkey=1-66-200559-1
Software Security Information SECURITY
http://www.debian.org/security/2008/dsa-1460
Software Security Information SECURITY
http://www.debian.org/security/2008/dsa-1463
Software Security Information SECURITY
http://www.mandriva.com/security/advisories?name=MDVSA-2008:004
Software Security Information SECURITY
http://www.mandriva.com/security/advisories?name=MDVSA-2008:059
www.postgresql.org/about/news.905 WEB
http://www.postgresql.org/about/news.905
www.redhat.com/support/errata/rhsa... WEB
http://www.redhat.com/support/errata/RHSA-2008-0038.html
www.redhat.com/support/errata/rhsa... WEB
http://www.redhat.com/support/errata/RHSA-2008-0040.html
www.redhat.com/support/errata/rhsa... WEB
http://www.redhat.com/support/errata/RHSA-2008-0134.html
Software Security Information SECURITY
http://www.securityfocus.com/archive/1/485864/100/0/threaded
Software Security Information SECURITY
http://www.securityfocus.com/archive/1/486407/100/0/threaded
Software Security Information SECURITY
http://www.securityfocus.com/archive/1/493080/100/0/threaded
Software Security Information SECURITY
http://www.securityfocus.com/bid/27163
Software Security Information SECURITY
http://www.vmware.com/security/advisories/VMSA-2008-0009.html
www.vupen.com/english/advisories/... WEB
http://www.vupen.com/english/advisories/2008/0061
www.vupen.com/english/advisories/... WEB
http://www.vupen.com/english/advisories/2008/0109
www.vupen.com/english/advisories/... WEB
http://www.vupen.com/english/advisories/2008/1071/references
www.vupen.com/english/advisories/... WEB
http://www.vupen.com/english/advisories/2008/1744

Frequently Asked Questions

What is CVE-2007-4772?
CVE-2007-4772 is a security vulnerability in Software classified as a security vulnerability vulnerability under General Security Weakness.
Which Software versions are affected?
Affected versions include releases prior to current release patches.
What version fixes CVE-2007-4772?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
What CWE is associated with CVE-2007-4772?
CVE-2007-4772 is classified under General Security Weakness.
How can I check Maven dependencies for CVE-2007-4772?
Run the dependency tree command: 'mvn dependency:tree'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-x3q3-v77f-cg26",
  "modified" : "2025-04-09T03:50:06Z",
  "published" : "2022-05-01T18:27:00Z",
  "aliases" : [ "CVE-2007-4772" ],
  "details" : "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.",
  "severity" : [ ],
  "affected" : [ ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2007-4772"
  }, {
    "type" : "WEB",
    "url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/39497"
  }, {
    "type" : "WEB",
    "url" : "https://issues.rpath.com/browse/RPL-1768"
  }, {
    "type" : "WEB",
    "url" : "https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A11569"
  }, {
    "type" : "WEB",
    "url" : "https://usn.ubuntu.com/568-1"
  }, {
    "type" : "WEB",
    "url" : "https://www.redhat.com/archives/fedora-package-announce/2008-January/msg00397.html"
  }, {
    "type" : "WEB",
    "url" : "https://www.redhat.com/archives/fedora-package-announce/2008-January/msg00469.html"
  }, {
    "type" : "WEB",
    "url" : "http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c01420154"
  }, {
    "type" : "WEB",
    "url" : "http://kb.juniper.net/InfoCenter/index?page=content&id=JSA10705"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2008-02/msg00000.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2016-02/msg00049.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2016-02/msg00052.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2016-02/msg00054.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2016-02/msg00056.html"
  }, {
    "type" : "WEB",
    "url" : "http://lists.opensuse.org/opensuse-security-announce/2016-03/msg00016.html"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2013-0122.html"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/28359"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/28376"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/28437"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/28438"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/28454"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/28455"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/28464"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/28477"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/28479"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/28679"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/28698"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/29070"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/29248"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/29638"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/30535"
  }, {
    "type" : "WEB",
    "url" : "http://security.gentoo.org/glsa/glsa-200801-15.xml"
  }, {
    "type" : "WEB",
    "url" : "http://securitytracker.com/id?1019157"
  }, {
    "type" : "WEB",
    "url" : "http://sourceforge.net/project/shownotes.php?release_id=565440&group_id=10894"
  }, {
    "type" : "WEB",
    "url" : "http://sourceforge.net/tracker/index.php?func=detail&aid=1810264&group_id=10894&atid=110894"
  }, {
    "type" : "WEB",
    "url" : "http://sunsolve.sun.com/search/document.do?assetkey=1-26-103197-1"
  }, {
    "type" : "WEB",
    "url" : "http://sunsolve.sun.com/search/document.do?assetkey=1-66-200559-1"
  }, {
    "type" : "WEB",
    "url" : "http://www.debian.org/security/2008/dsa-1460"
  }, {
    "type" : "WEB",
    "url" : "http://www.debian.org/security/2008/dsa-1463"
  }, {
    "type" : "WEB",
    "url" : "http://www.mandriva.com/security/advisories?name=MDVSA-2008:004"
  }, {
    "type" : "WEB",
    "url" : "http://www.mandriva.com/security/advisories?name=MDVSA-2008:059"
  }, {
    "type" : "WEB",
    "url" : "http://www.postgresql.org/about/news.905"
  }, {
    "type" : "WEB",
    "url" : "http://www.redhat.com/support/errata/RHSA-2008-0038.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.redhat.com/support/errata/RHSA-2008-0040.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.redhat.com/support/errata/RHSA-2008-0134.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/archive/1/485864/100/0/threaded"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/archive/1/486407/100/0/threaded"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/archive/1/493080/100/0/threaded"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/27163"
  }, {
    "type" : "WEB",
    "url" : "http://www.vmware.com/security/advisories/VMSA-2008-0009.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.vupen.com/english/advisories/2008/0061"
  }, {
    "type" : "WEB",
    "url" : "http://www.vupen.com/english/advisories/2008/0109"
  }, {
    "type" : "WEB",
    "url" : "http://www.vupen.com/english/advisories/2008/1071/references"
  }, {
    "type" : "WEB",
    "url" : "http://www.vupen.com/english/advisories/2008/1744"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : false,
    "github_reviewed_at" : null,
    "nvd_published_at" : "2008-01-09T21:46:00Z"
  }
}