CVE-2007-3105: Software Security Vulnerability Vulnerability

MODERATE
Advisory Identifier: GHSA-8mvg-22rh-hcjv
CWE-119
Published
Advisory Summary

CVE-2007-3105 is a MODERATE security vulnerability vulnerability (CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer) affecting Software libraries in the Maven ecosystem. The weakness occurs when the product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. this may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data.. Remediation is available in the latest vendor maintenance releases.

CVE-2007-3105 at a Glance

CVE Identifier CVE-2007-3105
GHSA Identifier GHSA-8mvg-22rh-hcjv
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer
Affected Product Software
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2007-3105

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-3105, 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-119: Improper Restriction of Operations within the Bounds of a Memory Buffer, where the product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. this may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data. 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

Stack-based buffer overflow in the random number generator (RNG) implementation in the Linux kernel before 2.6.22 might allow local root users to cause a denial of service or gain privileges by setting the default wakeup threshold to a value greater than the output pool size, which triggers writing random numbers to the stack by the pool transfer function involving "bound check ordering". NOTE: this issue might only cross privilege boundaries in environments that have granular assignment of privileges for root.

References

NVD — CVE-2007-3105 NVD
https://nvd.nist.gov/vuln/detail/CVE-2007-3105
issues.rpath.com/browse/rpl-1650 WEB
https://issues.rpath.com/browse/RPL-1650
Software Security Information SECURITY
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10371
secunia.com/advisories/26500 WEB
http://secunia.com/advisories/26500
secunia.com/advisories/26643 WEB
http://secunia.com/advisories/26643
secunia.com/advisories/26647 WEB
http://secunia.com/advisories/26647
secunia.com/advisories/26651 WEB
http://secunia.com/advisories/26651
secunia.com/advisories/26664 WEB
http://secunia.com/advisories/26664
secunia.com/advisories/27212 WEB
http://secunia.com/advisories/27212
secunia.com/advisories/27227 WEB
http://secunia.com/advisories/27227
secunia.com/advisories/27322 WEB
http://secunia.com/advisories/27322
secunia.com/advisories/27436 WEB
http://secunia.com/advisories/27436
secunia.com/advisories/27747 WEB
http://secunia.com/advisories/27747
secunia.com/advisories/29058 WEB
http://secunia.com/advisories/29058
Software Security Information SECURITY
http://support.avaya.com/elmodocs2/security/ASA-2007-474.htm
Software Security Information SECURITY
http://www.debian.org/security/2007/dsa-1363
Software Security Information SECURITY
http://www.debian.org/security/2008/dsa-1504
www.kernel.org/pub/linux/kernel/v2... WEB
http://www.kernel.org/pub/linux/kernel/v2.6/snapshots/patch-2.6.22-git14.log
Software Security Information SECURITY
http://www.mandriva.com/security/advisories?name=MDKSA-2007:195
Software Security Information SECURITY
http://www.mandriva.com/security/advisories?name=MDKSA-2007:196
Software Security Information SECURITY
http://www.mandriva.com/security/advisories?name=MDKSA-2007:216
Software Security Information SECURITY
http://www.novell.com/linux/security/advisories/2007_51_kernel.html
Software Security Information SECURITY
http://www.novell.com/linux/security/advisories/2007_53_kernel.html
www.redhat.com/support/errata/rhsa... WEB
http://www.redhat.com/support/errata/RHSA-2007-0939.html
www.redhat.com/support/errata/rhsa... WEB
http://www.redhat.com/support/errata/RHSA-2007-0940.html
Software Security Information SECURITY
http://www.securityfocus.com/bid/25348
www.ubuntu.com/usn/usn-508-1 WEB
http://www.ubuntu.com/usn/usn-508-1
www.ubuntu.com/usn/usn-509-1 WEB
http://www.ubuntu.com/usn/usn-509-1
www.ubuntu.com/usn/usn-510-1 WEB
http://www.ubuntu.com/usn/usn-510-1

Frequently Asked Questions

What is CVE-2007-3105?
CVE-2007-3105 is a security vulnerability in Software classified as a security vulnerability vulnerability under CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer.
Which Software versions are affected?
Affected versions include releases prior to current release patches.
What version fixes CVE-2007-3105?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
What CWE is associated with CVE-2007-3105?
CVE-2007-3105 is classified under CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer (The product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. This may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data.).
How can I check Maven dependencies for CVE-2007-3105?
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-8mvg-22rh-hcjv",
  "modified" : "2022-05-01T18:10:20Z",
  "published" : "2022-05-01T18:10:20Z",
  "aliases" : [ "CVE-2007-3105" ],
  "details" : "Stack-based buffer overflow in the random number generator (RNG) implementation in the Linux kernel before 2.6.22 might allow local root users to cause a denial of service or gain privileges by setting the default wakeup threshold to a value greater than the output pool size, which triggers writing random numbers to the stack by the pool transfer function involving \"bound check ordering\".  NOTE: this issue might only cross privilege boundaries in environments that have granular assignment of privileges for root.",
  "severity" : [ ],
  "affected" : [ ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2007-3105"
  }, {
    "type" : "WEB",
    "url" : "https://issues.rpath.com/browse/RPL-1650"
  }, {
    "type" : "WEB",
    "url" : "https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10371"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/26500"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/26643"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/26647"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/26651"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/26664"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/27212"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/27227"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/27322"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/27436"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/27747"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/29058"
  }, {
    "type" : "WEB",
    "url" : "http://support.avaya.com/elmodocs2/security/ASA-2007-474.htm"
  }, {
    "type" : "WEB",
    "url" : "http://www.debian.org/security/2007/dsa-1363"
  }, {
    "type" : "WEB",
    "url" : "http://www.debian.org/security/2008/dsa-1504"
  }, {
    "type" : "WEB",
    "url" : "http://www.kernel.org/pub/linux/kernel/v2.6/snapshots/patch-2.6.22-git14.log"
  }, {
    "type" : "WEB",
    "url" : "http://www.mandriva.com/security/advisories?name=MDKSA-2007:195"
  }, {
    "type" : "WEB",
    "url" : "http://www.mandriva.com/security/advisories?name=MDKSA-2007:196"
  }, {
    "type" : "WEB",
    "url" : "http://www.mandriva.com/security/advisories?name=MDKSA-2007:216"
  }, {
    "type" : "WEB",
    "url" : "http://www.novell.com/linux/security/advisories/2007_51_kernel.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.novell.com/linux/security/advisories/2007_53_kernel.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.redhat.com/support/errata/RHSA-2007-0939.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.redhat.com/support/errata/RHSA-2007-0940.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/25348"
  }, {
    "type" : "WEB",
    "url" : "http://www.ubuntu.com/usn/usn-508-1"
  }, {
    "type" : "WEB",
    "url" : "http://www.ubuntu.com/usn/usn-509-1"
  }, {
    "type" : "WEB",
    "url" : "http://www.ubuntu.com/usn/usn-510-1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-119" ],
    "severity" : "MODERATE",
    "github_reviewed" : false,
    "github_reviewed_at" : null,
    "nvd_published_at" : "2007-07-27T21:30:00Z"
  }
}