CVE-2007-5340: Software Security Vulnerability Vulnerability

MODERATE
Advisory Identifier: GHSA-39p9-vprq-5c7p
CWE-20
Published
Advisory Summary

CVE-2007-5340 is a MODERATE security vulnerability vulnerability (CWE-20: Improper Input Validation) affecting Software libraries in the Maven ecosystem. The weakness occurs when the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.. Remediation is available in the latest vendor maintenance releases.

CVE-2007-5340 at a Glance

CVE Identifier CVE-2007-5340
GHSA Identifier GHSA-39p9-vprq-5c7p
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-20: Improper Input Validation
Affected Product Software
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2007-5340

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-5340, 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 CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. 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

Multiple vulnerabilities in the Javascript engine in Mozilla Firefox before 2.0.0.8, Thunderbird before 2.0.0.8, and SeaMonkey before 1.1.5 allow remote attackers to cause a denial of service (crash) via crafted HTML that triggers memory corruption.

References

NVD — CVE-2007-5340 NVD
https://nvd.nist.gov/vuln/detail/CVE-2007-5340
bugzilla.mozilla.org/buglist.cgi WEB
https://bugzilla.mozilla.org/buglist.cgi?bug_id=372309%2C387955%2C390078%2C393537
bugzilla.mozilla.org/buglist.cgi WEB
https://bugzilla.mozilla.org/buglist.cgi?bug_id=372309,387955,390078,393537
exchange.xforce.ibmcloud.com/vulnerabilities/372... WEB
https://exchange.xforce.ibmcloud.com/vulnerabilities/37282
issues.rpath.com/browse/rpl-1858 WEB
https://issues.rpath.com/browse/RPL-1858
issues.rpath.com/browse/rpl-1884 WEB
https://issues.rpath.com/browse/RPL-1884
Software Security Information SECURITY
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9622
usn.ubuntu.com/535-1 WEB
https://usn.ubuntu.com/535-1
www.redhat.com/archives/fedora-pac... WEB
https://www.redhat.com/archives/fedora-package-announce/2007-November/msg00498.html
www.redhat.com/archives/fedora-pac... WEB
https://www.redhat.com/archives/fedora-package-announce/2007-October/msg00285.html
www.redhat.com/archives/fedora-pac... WEB
https://www.redhat.com/archives/fedora-package-announce/2007-October/msg00355.html
bugs.gentoo.org/show_bug.cgi WEB
http://bugs.gentoo.org/show_bug.cgi?id=196481
h20000.www2.hp.com/bizsupport/techsupp... WEB
http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c00771742
h20000.www2.hp.com/bizsupport/techsupp... WEB
http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c00774579
secunia.com/advisories/27276 WEB
http://secunia.com/advisories/27276
secunia.com/advisories/27298 WEB
http://secunia.com/advisories/27298
secunia.com/advisories/27311 WEB
http://secunia.com/advisories/27311
secunia.com/advisories/27313 WEB
http://secunia.com/advisories/27313
secunia.com/advisories/27315 WEB
http://secunia.com/advisories/27315
secunia.com/advisories/27325 WEB
http://secunia.com/advisories/27325
secunia.com/advisories/27326 WEB
http://secunia.com/advisories/27326
secunia.com/advisories/27327 WEB
http://secunia.com/advisories/27327
secunia.com/advisories/27335 WEB
http://secunia.com/advisories/27335
secunia.com/advisories/27336 WEB
http://secunia.com/advisories/27336
secunia.com/advisories/27356 WEB
http://secunia.com/advisories/27356
secunia.com/advisories/27360 WEB
http://secunia.com/advisories/27360
secunia.com/advisories/27383 WEB
http://secunia.com/advisories/27383
secunia.com/advisories/27387 WEB
http://secunia.com/advisories/27387
secunia.com/advisories/27403 WEB
http://secunia.com/advisories/27403
secunia.com/advisories/27414 WEB
http://secunia.com/advisories/27414
secunia.com/advisories/27425 WEB
http://secunia.com/advisories/27425
secunia.com/advisories/27480 WEB
http://secunia.com/advisories/27480
secunia.com/advisories/27665 WEB
http://secunia.com/advisories/27665
secunia.com/advisories/27680 WEB
http://secunia.com/advisories/27680
secunia.com/advisories/27704 WEB
http://secunia.com/advisories/27704
secunia.com/advisories/28179 WEB
http://secunia.com/advisories/28179
secunia.com/advisories/28363 WEB
http://secunia.com/advisories/28363
secunia.com/advisories/28398 WEB
http://secunia.com/advisories/28398
secunia.com/advisories/28636 WEB
http://secunia.com/advisories/28636
Software Security Information SECURITY
http://security.gentoo.org/glsa/glsa-200711-24.xml
Software Security Information SECURITY
http://securitytracker.com/id?1018834
Software Security Information SECURITY
http://securitytracker.com/id?1018835
sunsolve.sun.com/search/document.do WEB
http://sunsolve.sun.com/search/document.do?assetkey=1-26-231441-1
sunsolve.sun.com/search/document.do WEB
http://sunsolve.sun.com/search/document.do?assetkey=1-66-201516-1
sunsolve.sun.com/search/document.do WEB
http://sunsolve.sun.com/search/document.do?assetkey=1-77-1018977.1-1
support.novell.com/techcenter/psdb/60e... WEB
http://support.novell.com/techcenter/psdb/60eb95b75c76f9fbfcc9a89f99cd8f79.html
Software Security Information SECURITY
http://www.debian.org/security/2007/dsa-1391
Software Security Information SECURITY
http://www.debian.org/security/2007/dsa-1392
Software Security Information SECURITY
http://www.debian.org/security/2007/dsa-1396
Software Security Information SECURITY
http://www.debian.org/security/2007/dsa-1401
Software Security Information SECURITY
http://www.gentoo.org/security/en/glsa/glsa-200711-14.xml
www.kb.cert.org/vuls/id/755513 WEB
http://www.kb.cert.org/vuls/id/755513
Software Security Information SECURITY
http://www.mandriva.com/en/security/advisories?name=MDKSA-2007:202
Software Security Information SECURITY
http://www.mandriva.com/security/advisories?name=MDVSA-2007:047
Software Security Information SECURITY
http://www.mandriva.com/security/advisories?name=MDVSA-2008:047
Software Security Information SECURITY
http://www.mozilla.org/security/announce/2007/mfsa2007-29.html
Software Security Information SECURITY
http://www.novell.com/linux/security/advisories/2007_57_mozilla.html
Software Security Information SECURITY
http://www.novell.com/linux/security/advisories/suse_security_summary_report.html
www.redhat.com/support/errata/rhsa... WEB
http://www.redhat.com/support/errata/RHSA-2007-0979.html
www.redhat.com/support/errata/rhsa... WEB
http://www.redhat.com/support/errata/RHSA-2007-0980.html
www.redhat.com/support/errata/rhsa... WEB
http://www.redhat.com/support/errata/RHSA-2007-0981.html
Software Security Information SECURITY
http://www.securityfocus.com/archive/1/482876/100/200/threaded
Software Security Information SECURITY
http://www.securityfocus.com/archive/1/482925/100/0/threaded
Software Security Information SECURITY
http://www.securityfocus.com/archive/1/482932/100/200/threaded
Software Security Information SECURITY
http://www.securityfocus.com/bid/26132
www.ubuntu.com/usn/usn-536-1 WEB
http://www.ubuntu.com/usn/usn-536-1
www.vupen.com/english/advisories/... WEB
http://www.vupen.com/english/advisories/2007/3544
www.vupen.com/english/advisories/... WEB
http://www.vupen.com/english/advisories/2007/3545
www.vupen.com/english/advisories/... WEB
http://www.vupen.com/english/advisories/2007/3587
www.vupen.com/english/advisories/... WEB
http://www.vupen.com/english/advisories/2007/4272
www.vupen.com/english/advisories/... WEB
http://www.vupen.com/english/advisories/2008/0082
www.vupen.com/english/advisories/... WEB
http://www.vupen.com/english/advisories/2008/0083
www.vupen.com/english/advisories/... WEB
http://www.vupen.com/english/advisories/2008/0643

Frequently Asked Questions

What is CVE-2007-5340?
CVE-2007-5340 is a security vulnerability in Software classified as a security vulnerability vulnerability under CWE-20: Improper Input Validation.
Which Software versions are affected?
Affected versions include releases prior to current release patches.
What version fixes CVE-2007-5340?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
What CWE is associated with CVE-2007-5340?
CVE-2007-5340 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check Maven dependencies for CVE-2007-5340?
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-39p9-vprq-5c7p",
  "modified" : "2025-04-09T03:47:40Z",
  "published" : "2022-05-01T18:32:21Z",
  "aliases" : [ "CVE-2007-5340" ],
  "details" : "Multiple vulnerabilities in the Javascript engine in Mozilla Firefox before 2.0.0.8, Thunderbird before 2.0.0.8, and SeaMonkey before 1.1.5 allow remote attackers to cause a denial of service (crash) via crafted HTML that triggers memory corruption.",
  "severity" : [ ],
  "affected" : [ ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2007-5340"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.mozilla.org/buglist.cgi?bug_id=372309%2C387955%2C390078%2C393537"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.mozilla.org/buglist.cgi?bug_id=372309,387955,390078,393537"
  }, {
    "type" : "WEB",
    "url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/37282"
  }, {
    "type" : "WEB",
    "url" : "https://issues.rpath.com/browse/RPL-1858"
  }, {
    "type" : "WEB",
    "url" : "https://issues.rpath.com/browse/RPL-1884"
  }, {
    "type" : "WEB",
    "url" : "https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9622"
  }, {
    "type" : "WEB",
    "url" : "https://usn.ubuntu.com/535-1"
  }, {
    "type" : "WEB",
    "url" : "https://www.redhat.com/archives/fedora-package-announce/2007-November/msg00498.html"
  }, {
    "type" : "WEB",
    "url" : "https://www.redhat.com/archives/fedora-package-announce/2007-October/msg00285.html"
  }, {
    "type" : "WEB",
    "url" : "https://www.redhat.com/archives/fedora-package-announce/2007-October/msg00355.html"
  }, {
    "type" : "WEB",
    "url" : "http://bugs.gentoo.org/show_bug.cgi?id=196481"
  }, {
    "type" : "WEB",
    "url" : "http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c00771742"
  }, {
    "type" : "WEB",
    "url" : "http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c00774579"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/27276"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/27298"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/27311"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/27313"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/27315"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/27325"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/27326"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/27327"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/27335"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/27336"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/27356"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/27360"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/27383"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/27387"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/27403"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/27414"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/27425"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/27480"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/27665"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/27680"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/27704"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/28179"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/28363"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/28398"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/28636"
  }, {
    "type" : "WEB",
    "url" : "http://security.gentoo.org/glsa/glsa-200711-24.xml"
  }, {
    "type" : "WEB",
    "url" : "http://securitytracker.com/id?1018834"
  }, {
    "type" : "WEB",
    "url" : "http://securitytracker.com/id?1018835"
  }, {
    "type" : "WEB",
    "url" : "http://sunsolve.sun.com/search/document.do?assetkey=1-26-231441-1"
  }, {
    "type" : "WEB",
    "url" : "http://sunsolve.sun.com/search/document.do?assetkey=1-66-201516-1"
  }, {
    "type" : "WEB",
    "url" : "http://sunsolve.sun.com/search/document.do?assetkey=1-77-1018977.1-1"
  }, {
    "type" : "WEB",
    "url" : "http://support.novell.com/techcenter/psdb/60eb95b75c76f9fbfcc9a89f99cd8f79.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.debian.org/security/2007/dsa-1391"
  }, {
    "type" : "WEB",
    "url" : "http://www.debian.org/security/2007/dsa-1392"
  }, {
    "type" : "WEB",
    "url" : "http://www.debian.org/security/2007/dsa-1396"
  }, {
    "type" : "WEB",
    "url" : "http://www.debian.org/security/2007/dsa-1401"
  }, {
    "type" : "WEB",
    "url" : "http://www.gentoo.org/security/en/glsa/glsa-200711-14.xml"
  }, {
    "type" : "WEB",
    "url" : "http://www.kb.cert.org/vuls/id/755513"
  }, {
    "type" : "WEB",
    "url" : "http://www.mandriva.com/en/security/advisories?name=MDKSA-2007:202"
  }, {
    "type" : "WEB",
    "url" : "http://www.mandriva.com/security/advisories?name=MDVSA-2007:047"
  }, {
    "type" : "WEB",
    "url" : "http://www.mandriva.com/security/advisories?name=MDVSA-2008:047"
  }, {
    "type" : "WEB",
    "url" : "http://www.mozilla.org/security/announce/2007/mfsa2007-29.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.novell.com/linux/security/advisories/2007_57_mozilla.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.novell.com/linux/security/advisories/suse_security_summary_report.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.redhat.com/support/errata/RHSA-2007-0979.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.redhat.com/support/errata/RHSA-2007-0980.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.redhat.com/support/errata/RHSA-2007-0981.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/archive/1/482876/100/200/threaded"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/archive/1/482925/100/0/threaded"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/archive/1/482932/100/200/threaded"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/26132"
  }, {
    "type" : "WEB",
    "url" : "http://www.ubuntu.com/usn/usn-536-1"
  }, {
    "type" : "WEB",
    "url" : "http://www.vupen.com/english/advisories/2007/3544"
  }, {
    "type" : "WEB",
    "url" : "http://www.vupen.com/english/advisories/2007/3545"
  }, {
    "type" : "WEB",
    "url" : "http://www.vupen.com/english/advisories/2007/3587"
  }, {
    "type" : "WEB",
    "url" : "http://www.vupen.com/english/advisories/2007/4272"
  }, {
    "type" : "WEB",
    "url" : "http://www.vupen.com/english/advisories/2008/0082"
  }, {
    "type" : "WEB",
    "url" : "http://www.vupen.com/english/advisories/2008/0083"
  }, {
    "type" : "WEB",
    "url" : "http://www.vupen.com/english/advisories/2008/0643"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20" ],
    "severity" : "MODERATE",
    "github_reviewed" : false,
    "github_reviewed_at" : null,
    "nvd_published_at" : "2007-10-21T19:17:00Z"
  }
}