CVE-2017-12618 - Out-of-bounds Read

Severity

19%

Complexity

34%

Confidentiality

48%

Apache Portable Runtime Utility (APR-util) 1.6.0 and prior fail to validate the integrity of SDBM database files used by apr_sdbm*() functions, resulting in a possible out of bound read access. A local user with write access to the database can make a program or process using these functions crash, and cause a denial of service.

Apache Portable Runtime Utility (APR-util) 1.6.0 and prior fail to validate the integrity of SDBM database files used by apr_sdbm*() functions, resulting in a possible out of bound read access. A local user with write access to the database can make a program or process using these functions crash, and cause a denial of service.

CVSS 3.0 Base Score 4.7. CVSS Attack Vector: local. CVSS Attack Complexity: high. CVSS Vector: (CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H).

CVSS 2.0 Base Score 1.9. CVSS Attack Vector: local. CVSS Attack Complexity: medium. CVSS Vector: (AV:L/AC:M/Au:N/C:N/I:N/A:P).

Demo Examples

Out-of-bounds Read

CWE-125

In the following code, the method retrieves a value from an array at a specific array index location that is given as an input parameter to the method


               
}
return value;// check that the array index is less than the maximum// length of the array
value = array[index];// get the value at the specified index of the array
// if array index is invalid then output error message// and return value indicating error
value = -1;

However, this method only verifies that the given array index is less than the maximum length of the array but does not check for the minimum value (CWE-839). This will allow a negative value to be accepted as the input array index, which will result in a out of bounds read (CWE-125) and may allow access to sensitive memory. The input array index should be checked to verify that is within the maximum and minimum range required for the array (CWE-129). In this example the if statement should be modified to include a minimum range check, as shown below.


               
...// check that the array index is within the correct// range of values for the array

Overview

Type

Apache Software Foundation Portable Runtime Utility

First reported 7 years ago

2017-10-24 01:29:00

Last updated 6 years ago

2018-10-31 10:29:00

Affected Software

Apache Software Foundation Portable Runtime Utility 0.9.1

0.9.1

Apache Software Foundation Portable Runtime Utility 0.9.2

0.9.2

Apache Software Foundation Portable Runtime Utility 0.9.3

0.9.3

Apache Software Foundation Portable Runtime Utility 0.9.4

0.9.4

Apache Software Foundation Portable Runtime Utility 0.9.5

0.9.5

Apache Software Foundation Portable Runtime Utility 0.9.6

0.9.6

Apache Software Foundation Portable Runtime Utility 0.9.7

0.9.7

Apache Software Foundation Portable Runtime Utility 0.9.9

0.9.9

Apache Software Foundation Portable Runtime Utility 0.9.10

0.9.10

Apache Software Foundation Portable Runtime Utility 0.9.11

0.9.11

Apache Software Foundation Portable Runtime Utility 0.9.12

0.9.12

Apache Software Foundation Portable Runtime Utility 0.9.13

0.9.13

Apache Software Foundation Portable Runtime Utility 0.9.14

0.9.14

Apache Software Foundation Portable Runtime Utility 0.9.15

0.9.15

Apache Software Foundation Portable Runtime Utility 0.9.16

0.9.16

Apache Software Foundation Portable Runtime Utility 0.9.17

0.9.17

Apache Software Foundation Portable Runtime Utility 0.9.18

0.9.18

Apache Software Foundation Portable Runtime Utility 0.9.19

0.9.19

Apache Software Foundation Portable Runtime Utility 0.9.20

0.9.20

Apache Software Foundation Portable Runtime Utility 1.0.0

1.0.0

Apache Software Foundation Portable Runtime Utility 1.0.1

1.0.1

Apache Software Foundation Portable Runtime Utility 1.0.2

1.0.2

Apache Software Foundation Portable Runtime Utility 1.1.0

1.1.0

Apache Software Foundation Portable Runtime Utility 1.1.1

1.1.1

Apache Software Foundation Portable Runtime Utility 1.1.2

1.1.2

Apache Software Foundation Portable Runtime Utility 1.2.1

1.2.1

Apache Software Foundation Portable Runtime Utility 1.2.2

1.2.2

Apache Software Foundation Portable Runtime Utility 1.2.6

1.2.6

Apache Software Foundation Portable Runtime Utility 1.2.7

1.2.7

Apache Software Foundation Portable Runtime Utility 1.2.8

1.2.8

Apache Software Foundation Portable Runtime Utility 1.2.9

1.2.9

Apache Software Foundation Portable Runtime Utility 1.2.10

1.2.10

Apache Software Foundation Portable Runtime Utility 1.2.12

1.2.12

Apache Software Foundation Portable Runtime Utility 1.2.13

1.2.13

Apache Software Foundation Portable Runtime Utility 1.3.0

1.3.0

Apache Software Foundation Portable Runtime Utility 1.3.1

1.3.1

Apache Software Foundation Portable Runtime Utility 1.3.2

1.3.2

Apache Software Foundation Portable Runtime Utility 1.3.3

1.3.3

Apache Software Foundation Portable Runtime Utility 1.3.4

1.3.4

Apache Software Foundation Portable Runtime Utility 1.3.5

1.3.5

Apache Software Foundation Portable Runtime Utility 1.3.6

1.3.6

Apache Software Foundation Portable Runtime Utility 1.3.7

1.3.7

Apache Software Foundation Portable Runtime Utility 1.3.8

1.3.8

Apache Software Foundation Portable Runtime Utility 1.3.9

1.3.9

Apache Software Foundation Portable Runtime Utility 1.3.10

1.3.10

Apache Software Foundation Portable Runtime Utility 1.3.11

1.3.11

Apache Software Foundation Portable Runtime Utility 1.3.12

1.3.12

Apache Software Foundation Portable Runtime Utility 1.3.13

1.3.13

Apache Software Foundation Portable Runtime Utility 1.4.0

1.4.0

Apache Software Foundation Portable Runtime Utility 1.4.1

1.4.1

Apache Software Foundation Portable Runtime Utility 1.4.2

1.4.2

Apache Software Foundation Portable Runtime Utility 1.4.3

1.4.3

Apache Software Foundation Portable Runtime Utility 1.5.0

1.5.0

Apache Software Foundation Portable Runtime Utility 1.5.1

1.5.1

Apache Software Foundation Portable Runtime Utility 1.5.2

1.5.2

Apache Software Foundation Portable Runtime Utility 1.5.3

1.5.3

Apache Software Foundation Portable Runtime Utility 1.5.4

1.5.4

Apache Software Foundation Portable Runtime Utility 1.5.5

1.5.5

Apache Software Foundation Portable Runtime Utility 1.6.0

1.6.0

Stay updated

ExploitPedia is constantly evolving. Sign up to receive a notification when we release additional functionality.

Get in touch

If you'd like to report a bug or have any suggestions for improvements then please do get in touch with us using this form. We will get back to you as soon as we can.