CVE-2005-0504: Software Security Vulnerability Vulnerability

MODERATE
Advisory Identifier: GHSA-995p-5gwf-8prh
CWE-119
Published
Advisory Summary

CVE-2005-0504 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-2005-0504 at a Glance

CVE Identifier CVE-2005-0504
GHSA Identifier GHSA-995p-5gwf-8prh
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-2005-0504

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-2005-0504, 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

Buffer overflow in the MoxaDriverIoctl function for the moxa serial driver (moxa.c) in Linux 2.2.x, 2.4.x, and 2.6.x before 2.6.22 allows local users to execute arbitrary code via a certain modified length value.

References

NVD — CVE-2005-0504 NVD
https://nvd.nist.gov/vuln/detail/CVE-2005-0504
Software Security Information SECURITY
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9770
kernel.org/pub/linux/kernel/v2... WEB
http://kernel.org/pub/linux/kernel/v2.6/ChangeLog-2.6.22
lists.grok.org.uk/pipermail/full-disc... WEB
http://lists.grok.org.uk/pipermail/full-disclosure/2005-January/030660.html
secunia.com/advisories/17002 WEB
http://secunia.com/advisories/17002
secunia.com/advisories/20163 WEB
http://secunia.com/advisories/20163
secunia.com/advisories/20202 WEB
http://secunia.com/advisories/20202
secunia.com/advisories/20338 WEB
http://secunia.com/advisories/20338
secunia.com/advisories/26651 WEB
http://secunia.com/advisories/26651
secunia.com/advisories/30112 WEB
http://secunia.com/advisories/30112
Software Security Information SECURITY
http://securitytracker.com/id?1013273
Software Security Information SECURITY
http://www.debian.org/security/2006/dsa-1067
Software Security Information SECURITY
http://www.debian.org/security/2006/dsa-1069
Software Security Information SECURITY
http://www.debian.org/security/2006/dsa-1070
Software Security Information SECURITY
http://www.debian.org/security/2006/dsa-1082
www.redhat.com/support/errata/rhsa... WEB
http://www.redhat.com/support/errata/RHSA-2005-529.html
www.redhat.com/support/errata/rhsa... WEB
http://www.redhat.com/support/errata/RHSA-2005-551.html
www.redhat.com/support/errata/rhsa... WEB
http://www.redhat.com/support/errata/RHSA-2005-663.html
www.redhat.com/support/errata/rhsa... WEB
http://www.redhat.com/support/errata/RHSA-2008-0237.html
Software Security Information SECURITY
http://www.securityfocus.com/bid/12195
www.ubuntu.com/usn/usn-508-1 WEB
http://www.ubuntu.com/usn/usn-508-1
www.vupen.com/english/advisories/... WEB
http://www.vupen.com/english/advisories/2005/1878

Frequently Asked Questions

What is CVE-2005-0504?
CVE-2005-0504 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-2005-0504?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
What CWE is associated with CVE-2005-0504?
CVE-2005-0504 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-2005-0504?
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-995p-5gwf-8prh",
  "modified" : "2022-05-01T01:49:50Z",
  "published" : "2022-05-01T01:49:50Z",
  "aliases" : [ "CVE-2005-0504" ],
  "details" : "Buffer overflow in the MoxaDriverIoctl function for the moxa serial driver (moxa.c) in Linux 2.2.x, 2.4.x, and 2.6.x before 2.6.22 allows local users to execute arbitrary code via a certain modified length value.",
  "severity" : [ ],
  "affected" : [ ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2005-0504"
  }, {
    "type" : "WEB",
    "url" : "https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9770"
  }, {
    "type" : "WEB",
    "url" : "http://kernel.org/pub/linux/kernel/v2.6/ChangeLog-2.6.22"
  }, {
    "type" : "WEB",
    "url" : "http://lists.grok.org.uk/pipermail/full-disclosure/2005-January/030660.html"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/17002"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/20163"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/20202"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/20338"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/26651"
  }, {
    "type" : "WEB",
    "url" : "http://secunia.com/advisories/30112"
  }, {
    "type" : "WEB",
    "url" : "http://securitytracker.com/id?1013273"
  }, {
    "type" : "WEB",
    "url" : "http://www.debian.org/security/2006/dsa-1067"
  }, {
    "type" : "WEB",
    "url" : "http://www.debian.org/security/2006/dsa-1069"
  }, {
    "type" : "WEB",
    "url" : "http://www.debian.org/security/2006/dsa-1070"
  }, {
    "type" : "WEB",
    "url" : "http://www.debian.org/security/2006/dsa-1082"
  }, {
    "type" : "WEB",
    "url" : "http://www.redhat.com/support/errata/RHSA-2005-529.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.redhat.com/support/errata/RHSA-2005-551.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.redhat.com/support/errata/RHSA-2005-663.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.redhat.com/support/errata/RHSA-2008-0237.html"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/12195"
  }, {
    "type" : "WEB",
    "url" : "http://www.ubuntu.com/usn/usn-508-1"
  }, {
    "type" : "WEB",
    "url" : "http://www.vupen.com/english/advisories/2005/1878"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-119" ],
    "severity" : "MODERATE",
    "github_reviewed" : false,
    "github_reviewed_at" : null,
    "nvd_published_at" : "2005-03-14T05:00:00Z"
  }
}