CVE-2007-4986: Software Security Vulnerability Vulnerability

MODERATE
Advisory Identifier: GHSA-53f2-89vw-gfqr
Published
Advisory Summary

CVE-2007-4986 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-4986 at a Glance

CVE Identifier CVE-2007-4986
GHSA Identifier GHSA-53f2-89vw-gfqr
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-4986

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-4986, 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

Multiple integer overflows in ImageMagick before 6.3.5-9 allow context-dependent attackers to execute arbitrary code via a crafted (1) .dcm, (2) .dib, (3) .xbm, (4) .xcf, or (5) .xwd image file, which triggers a heap-based buffer overflow.

References

secunia.com/advisories/28721 WEB
http://secunia.com/advisories/28721
secunia.com/advisories/27309 WEB
http://secunia.com/advisories/27309
secunia.com/advisories/27364 WEB
http://secunia.com/advisories/27364
NVD — CVE-2007-4986 NVD
https://nvd.nist.gov/vuln/detail/CVE-2007-4986
exchange.xforce.ibmcloud.com/vulnerabilities/367... WEB
https://exchange.xforce.ibmcloud.com/vulnerabilities/36738
issues.rpath.com/browse/rpl-1743 WEB
https://issues.rpath.com/browse/RPL-1743
Software Security Information SECURITY
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9963
bugs.gentoo.org/show_bug.cgi WEB
http://bugs.gentoo.org/show_bug.cgi?id=186030
labs.idefense.com/intelligence/vulner... WEB
http://labs.idefense.com/intelligence/vulnerabilities/display.php?id=594
secunia.com/advisories/26926 WEB
http://secunia.com/advisories/26926
secunia.com/advisories/27048 WEB
http://secunia.com/advisories/27048
secunia.com/advisories/27439 WEB
http://secunia.com/advisories/27439
secunia.com/advisories/29786 WEB
http://secunia.com/advisories/29786
secunia.com/advisories/29857 WEB
http://secunia.com/advisories/29857
secunia.com/advisories/35316 WEB
http://secunia.com/advisories/35316
secunia.com/advisories/36260 WEB
http://secunia.com/advisories/36260
Software Security Information SECURITY
http://security.gentoo.org/glsa/glsa-200710-27.xml
studio.imagemagick.org/pipermail/magick-an... WEB
http://studio.imagemagick.org/pipermail/magick-announce/2007-September/000037.html
Software Security Information SECURITY
http://www.debian.org/security/2009/dsa-1858
www.imagemagick.org/script/changelog.ph... WEB
http://www.imagemagick.org/script/changelog.php
Software Security Information SECURITY
http://www.mandriva.com/en/security/advisories?name=MDVSA-2008:035
Software Security Information SECURITY
http://www.novell.com/linux/security/advisories/2007_23_sr.html
www.redhat.com/support/errata/rhsa... WEB
http://www.redhat.com/support/errata/RHSA-2008-0145.html
www.redhat.com/support/errata/rhsa... WEB
http://www.redhat.com/support/errata/RHSA-2008-0165.html
Software Security Information SECURITY
http://www.securityfocus.com/archive/1/483572/100/0/threaded
Software Security Information SECURITY
http://www.securityfocus.com/bid/25763
Software Security Information SECURITY
http://www.securitytracker.com/id?1018729
www.ubuntu.com/usn/usn-523-1 WEB
http://www.ubuntu.com/usn/usn-523-1
www.vupen.com/english/advisories/... WEB
http://www.vupen.com/english/advisories/2007/3245

Frequently Asked Questions

What is CVE-2007-4986?
CVE-2007-4986 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-4986?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
What CWE is associated with CVE-2007-4986?
CVE-2007-4986 is classified under General Security Weakness.
How can I check Maven dependencies for CVE-2007-4986?
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-53f2-89vw-gfqr",
  "modified" : "2022-05-01T18:28:59Z",
  "published" : "2022-05-01T18:28:59Z",
  "aliases" : [ "CVE-2007-4986" ],
  "details" : "Multiple integer overflows in ImageMagick before 6.3.5-9 allow context-dependent attackers to execute arbitrary code via a crafted (1) .dcm, (2) .dib, (3) .xbm, (4) .xcf, or (5) .xwd image file, which triggers a heap-based buffer overflow.",
  "severity" : [ ],
  "affected" : [ ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2007-4986"
  }, {
    "type" : "WEB",
    "url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/36738"
  }, {
    "type" : "WEB",
    "url" : "https://issues.rpath.com/browse/RPL-1743"
  }, {
    "type" : "WEB",
    "url" : "https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9963"
  }, {
    "type" : "WEB",
    "url" : "http://bugs.gentoo.org/show_bug.cgi?id=186030"
  }, {
    "type" : "WEB",
    "url" : "http://labs.idefense.com/intelligence/vulnerabilities/display.php?id=594"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/26926"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/27048"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/27309"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/27364"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/27439"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/28721"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/29786"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/29857"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/35316"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/36260"
  }, {
    "type" : "WEB",
    "url" : "http://security.gentoo.org/glsa/glsa-200710-27.xml"
  }, {
    "type" : "WEB",
    "url" : "http://studio.imagemagick.org/pipermail/magick-announce/2007-September/000037.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.debian.org/security/2009/dsa-1858"
  }, {
    "type" : "WEB",
    "url" : "http://www.imagemagick.org/script/changelog.php"
  }, {
    "type" : "WEB",
    "url" : "http://www.mandriva.com/en/security/advisories?name=MDVSA-2008:035"
  }, {
    "type" : "WEB",
    "url" : "http://www.novell.com/linux/security/advisories/2007_23_sr.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.redhat.com/support/errata/RHSA-2008-0145.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.redhat.com/support/errata/RHSA-2008-0165.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/archive/1/483572/100/0/threaded"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/25763"
  }, {
    "type" : "WEB",
    "url" : "http://www.securitytracker.com/id?1018729"
  }, {
    "type" : "WEB",
    "url" : "http://www.ubuntu.com/usn/usn-523-1"
  }, {
    "type" : "WEB",
    "url" : "http://www.vupen.com/english/advisories/2007/3245"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : false,
    "github_reviewed_at" : null,
    "nvd_published_at" : "2007-09-24T22:17:00Z"
  }
}