CVE Vulnerabilities

CVE-2004-1371

Improper Restriction of Operations within the Bounds of a Memory Buffer

Published: Aug 04, 2004 | Modified: Jul 11, 2017
CVSS 3.x
N/A
Source:
NVD
CVSS 2.x
9 HIGH
AV:N/AC:L/Au:S/C:C/I:C/A:C
RedHat/V2
RedHat/V3
Ubuntu

Stack-based buffer overflow in Oracle 9i and 10g allows remote attackers to execute arbitrary code via a long token in the text of a wrapped procedure.

Weakness

The software performs operations on a memory buffer, but it can read from or write to a memory location that is outside of the intended boundary of the buffer.

Affected Software

Name Vendor Start Version End Version
Application_server Oracle * *
Application_server Oracle 9.0.2 9.0.2
Application_server Oracle 9.0.2.0.0 9.0.2.0.0
Application_server Oracle 9.0.2.0.1 9.0.2.0.1
Application_server Oracle 9.0.2.1 9.0.2.1
Application_server Oracle 9.0.2.2 9.0.2.2
Application_server Oracle 9.0.2.3 9.0.2.3
Application_server Oracle 9.0.3 9.0.3
Application_server Oracle 9.0.3.1 9.0.3.1
Application_server Oracle 9.0.4 9.0.4
Application_server Oracle 9.0.4.0 9.0.4.0
Application_server Oracle 9.0.4.1 9.0.4.1
Collaboration_suite Oracle release_1 release_1
Database_server Oracle 9i_application_server 9i_application_server
E-business_suite Oracle 11.5.1 11.5.1
E-business_suite Oracle 11.5.2 11.5.2
E-business_suite Oracle 11.5.3 11.5.3
E-business_suite Oracle 11.5.4 11.5.4
E-business_suite Oracle 11.5.5 11.5.5
E-business_suite Oracle 11.5.6 11.5.6
E-business_suite Oracle 11.5.7 11.5.7
E-business_suite Oracle 11.5.8 11.5.8
E-business_suite Oracle 11.5.9 11.5.9
Enterprise_manager Oracle 9 9
Enterprise_manager Oracle 9.0.1 9.0.1
Enterprise_manager_database_control Oracle 10.1.2 10.1.2
Enterprise_manager_grid_control Oracle 10.1.0.2 10.1.0.2
Oracle10g Oracle enterprise_9.0.4_.0 enterprise_9.0.4_.0
Oracle10g Oracle enterprise_10.1.0.2 enterprise_10.1.0.2
Oracle10g Oracle personal_9.0.4_.0 personal_9.0.4_.0
Oracle10g Oracle personal_10.1_.0.2 personal_10.1_.0.2
Oracle10g Oracle standard_9.0.4_.0 standard_9.0.4_.0
Oracle10g Oracle standard_10.1_.0.2 standard_10.1_.0.2
Oracle8i Oracle enterprise_8.0.5_.0.0 enterprise_8.0.5_.0.0
Oracle8i Oracle enterprise_8.0.6_.0.0 enterprise_8.0.6_.0.0
Oracle8i Oracle enterprise_8.0.6_.0.1 enterprise_8.0.6_.0.1
Oracle8i Oracle enterprise_8.1.5_.0.0 enterprise_8.1.5_.0.0
Oracle8i Oracle enterprise_8.1.5_.0.2 enterprise_8.1.5_.0.2
Oracle8i Oracle enterprise_8.1.5_.1.0 enterprise_8.1.5_.1.0
Oracle8i Oracle enterprise_8.1.6_.0.0 enterprise_8.1.6_.0.0
Oracle8i Oracle enterprise_8.1.6_.1.0 enterprise_8.1.6_.1.0
Oracle8i Oracle enterprise_8.1.7_.0.0 enterprise_8.1.7_.0.0
Oracle8i Oracle enterprise_8.1.7_.1.0 enterprise_8.1.7_.1.0
Oracle8i Oracle enterprise_8.1.7_.4 enterprise_8.1.7_.4
Oracle8i Oracle standard_8.0.6 standard_8.0.6
Oracle8i Oracle standard_8.0.6_.3 standard_8.0.6_.3
Oracle8i Oracle standard_8.1.5 standard_8.1.5
Oracle8i Oracle standard_8.1.6 standard_8.1.6
Oracle8i Oracle standard_8.1.7 standard_8.1.7
Oracle8i Oracle standard_8.1.7_.0.0 standard_8.1.7_.0.0
Oracle8i Oracle standard_8.1.7_.1 standard_8.1.7_.1
Oracle8i Oracle standard_8.1.7_.4 standard_8.1.7_.4
Oracle9i Oracle client_9.2.0.1 client_9.2.0.1
Oracle9i Oracle client_9.2.0.2 client_9.2.0.2
Oracle9i Oracle enterprise_8.1.7 enterprise_8.1.7
Oracle9i Oracle enterprise_9.0.1 enterprise_9.0.1
Oracle9i Oracle enterprise_9.0.1.4 enterprise_9.0.1.4
Oracle9i Oracle enterprise_9.0.1.5 enterprise_9.0.1.5
Oracle9i Oracle enterprise_9.2.0 enterprise_9.2.0
Oracle9i Oracle enterprise_9.2.0.1 enterprise_9.2.0.1
Oracle9i Oracle enterprise_9.2.0.2 enterprise_9.2.0.2
Oracle9i Oracle enterprise_9.2.0.3 enterprise_9.2.0.3
Oracle9i Oracle enterprise_9.2.0.4 enterprise_9.2.0.4
Oracle9i Oracle enterprise_9.2.0.5 enterprise_9.2.0.5
Oracle9i Oracle personal_8.1.7 personal_8.1.7
Oracle9i Oracle personal_9.0.1 personal_9.0.1
Oracle9i Oracle personal_9.0.1.4 personal_9.0.1.4
Oracle9i Oracle personal_9.0.1.5 personal_9.0.1.5
Oracle9i Oracle personal_9.2 personal_9.2
Oracle9i Oracle personal_9.2.0.1 personal_9.2.0.1
Oracle9i Oracle personal_9.2.0.2 personal_9.2.0.2
Oracle9i Oracle personal_9.2.0.3 personal_9.2.0.3
Oracle9i Oracle personal_9.2.0.4 personal_9.2.0.4
Oracle9i Oracle personal_9.2.0.5 personal_9.2.0.5
Oracle9i Oracle standard_8.1.7 standard_8.1.7
Oracle9i Oracle standard_9.0 standard_9.0
Oracle9i Oracle standard_9.0.1 standard_9.0.1
Oracle9i Oracle standard_9.0.1.2 standard_9.0.1.2
Oracle9i Oracle standard_9.0.1.3 standard_9.0.1.3
Oracle9i Oracle standard_9.0.1.4 standard_9.0.1.4
Oracle9i Oracle standard_9.0.1.5 standard_9.0.1.5
Oracle9i Oracle standard_9.0.2 standard_9.0.2
Oracle9i Oracle standard_9.2 standard_9.2
Oracle9i Oracle standard_9.2.0.1 standard_9.2.0.1
Oracle9i Oracle standard_9.2.0.2 standard_9.2.0.2
Oracle9i Oracle standard_9.2.0.3 standard_9.2.0.3
Oracle9i Oracle standard_9.2.0.4 standard_9.2.0.4
Oracle9i Oracle standard_9.2.0.5 standard_9.2.0.5

Extended Description

Certain languages allow direct addressing of memory locations and do not automatically ensure that these locations are valid for the memory buffer that is being referenced. This can cause read or write operations to be performed on memory locations that may be associated with other variables, data structures, or internal program data. As a result, an attacker may be able to execute arbitrary code, alter the intended control flow, read sensitive information, or cause the system to crash.

Potential Mitigations

  • Use a language that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid.

  • For example, many languages that perform their own memory management, such as Java and Perl, are not subject to buffer overflows. Other languages, such as Ada and C#, typically provide overflow protection, but the protection can be disabled by the programmer.

  • Be wary that a language’s interface to native code may still be subject to overflows, even if the language itself is theoretically safe.

  • Use a vetted library or framework that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid.

  • Examples include the Safe C String Library (SafeStr) by Messier and Viega [REF-57], and the Strsafe.h library from Microsoft [REF-56]. These libraries provide safer versions of overflow-prone string-handling functions.

  • Run or compile the software using features or extensions that automatically provide a protection mechanism that mitigates or eliminates buffer overflows.

  • For example, certain compilers and extensions provide automatic buffer overflow detection mechanisms that are built into the compiled code. Examples include the Microsoft Visual Studio /GS flag, Fedora/Red Hat FORTIFY_SOURCE GCC flag, StackGuard, and ProPolice.

  • Consider adhering to the following rules when allocating and managing an application’s memory:

  • Run or compile the software using features or extensions that randomly arrange the positions of a program’s executable and libraries in memory. Because this makes the addresses unpredictable, it can prevent an attacker from reliably jumping to exploitable code.

  • Examples include Address Space Layout Randomization (ASLR) [REF-58] [REF-60] and Position-Independent Executables (PIE) [REF-64].

References