# CVE-2015-6908: Denial of service in n/a

> Remote attackers can crash the OpenLDAP server by sending crafted BER data, causing a denial of service.

- **Severity:** Medium 5.0 (`AV:N/AC:L/Au:N/C:N/I:N/A:P`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 11 Sep 2015
- **Updated:** 6 Aug 2024
- **Also known as:** DEBIAN-CVE-2015-6908, DLA-309-1, DSA-3356-1, GHSA-436x-9fhf-jq78, MGASA-2015-0374, RHSA-2015:1840, SUSE-SU-2016:0090-1, UBUNTU-CVE-2015-6908, openSUSE-SU-2024:10012-1

## What is CVE-2015-6908?

CVE-2015-6908 is a medium-severity denial of service vulnerability in Apple Mac Os X, published on 11 Sep 2015. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

The ber_get_next function in libraries/liblber/io.c in OpenLDAP 2.4.42 and earlier allows remote attackers to cause a denial of service (reachable assertion and application crash) via crafted BER data, as demonstrated by an attack against slapd.

Weakness: CWE-20 (Improper Input Validation)

## Which versions are affected by CVE-2015-6908?

It affects 2 products.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `compat-openldap` | Red Hat:enterprise_linux:5::client | All versions | 0:2.3.43_2.2.29-29.el5_11 |
| `openldap` | Red Hat:enterprise_linux:5::client | All versions | 0:2.3.43-29.el5_11 |
| `openldap-clients` | Red Hat:enterprise_linux:5::client | All versions | 0:2.3.43-29.el5_11 |
| `openldap-debuginfo` | Red Hat:enterprise_linux:5::client | All versions | 0:2.3.43-29.el5_11 |
| `openldap` | Red Hat:enterprise_linux:5::client_workstation | All versions | 0:2.3.43-29.el5_11 |
| `openldap-debuginfo` | Red Hat:enterprise_linux:5::client_workstation | All versions | 0:2.3.43-29.el5_11 |
| `openldap-devel` | Red Hat:enterprise_linux:5::client_workstation | All versions | 0:2.3.43-29.el5_11 |
| `openldap-servers` | Red Hat:enterprise_linux:5::client_workstation | All versions | 0:2.3.43-29.el5_11 |
| `openldap-servers-overlays` | Red Hat:enterprise_linux:5::client_workstation | All versions | 0:2.3.43-29.el5_11 |
| `openldap-servers-sql` | Red Hat:enterprise_linux:5::client_workstation | All versions | 0:2.3.43-29.el5_11 |
| `compat-openldap` | Red Hat:enterprise_linux:5::server | All versions | 0:2.3.43_2.2.29-29.el5_11 |
| `openldap` | Red Hat:enterprise_linux:5::server | All versions | 0:2.3.43-29.el5_11 |
| `openldap-clients` | Red Hat:enterprise_linux:5::server | All versions | 0:2.3.43-29.el5_11 |
| `openldap-debuginfo` | Red Hat:enterprise_linux:5::server | All versions | 0:2.3.43-29.el5_11 |
| `openldap-devel` | Red Hat:enterprise_linux:5::server | All versions | 0:2.3.43-29.el5_11 |
| `openldap-servers` | Red Hat:enterprise_linux:5::server | All versions | 0:2.3.43-29.el5_11 |
| `openldap-servers-overlays` | Red Hat:enterprise_linux:5::server | All versions | 0:2.3.43-29.el5_11 |
| `openldap-servers-sql` | Red Hat:enterprise_linux:5::server | All versions | 0:2.3.43-29.el5_11 |
| `openldap` | Red Hat:enterprise_linux:6::client | All versions | 0:2.4.40-6.el6_7 |
| `openldap-clients` | Red Hat:enterprise_linux:6::client | All versions | 0:2.4.40-6.el6_7 |
| `openldap-debuginfo` | Red Hat:enterprise_linux:6::client | All versions | 0:2.4.40-6.el6_7 |
| `openldap-devel` | Red Hat:enterprise_linux:6::client | All versions | 0:2.4.40-6.el6_7 |
| `openldap-servers` | Red Hat:enterprise_linux:6::client | All versions | 0:2.4.40-6.el6_7 |
| `openldap-servers-sql` | Red Hat:enterprise_linux:6::client | All versions | 0:2.4.40-6.el6_7 |
| `openldap` | Red Hat:enterprise_linux:6::computenode | All versions | 0:2.4.40-6.el6_7 |
| `openldap-clients` | Red Hat:enterprise_linux:6::computenode | All versions | 0:2.4.40-6.el6_7 |
| `openldap-debuginfo` | Red Hat:enterprise_linux:6::computenode | All versions | 0:2.4.40-6.el6_7 |
| `openldap-devel` | Red Hat:enterprise_linux:6::computenode | All versions | 0:2.4.40-6.el6_7 |
| `openldap-servers` | Red Hat:enterprise_linux:6::computenode | All versions | 0:2.4.40-6.el6_7 |
| `openldap-servers-sql` | Red Hat:enterprise_linux:6::computenode | All versions | 0:2.4.40-6.el6_7 |
| `openldap` | Red Hat:enterprise_linux:6::server | All versions | 0:2.4.40-6.el6_7 |
| `openldap-clients` | Red Hat:enterprise_linux:6::server | All versions | 0:2.4.40-6.el6_7 |
| `openldap-debuginfo` | Red Hat:enterprise_linux:6::server | All versions | 0:2.4.40-6.el6_7 |
| `openldap-devel` | Red Hat:enterprise_linux:6::server | All versions | 0:2.4.40-6.el6_7 |
| `openldap-servers` | Red Hat:enterprise_linux:6::server | All versions | 0:2.4.40-6.el6_7 |
| `openldap-servers-sql` | Red Hat:enterprise_linux:6::server | All versions | 0:2.4.40-6.el6_7 |
| `openldap` | Red Hat:enterprise_linux:6::workstation | All versions | 0:2.4.40-6.el6_7 |
| `openldap-clients` | Red Hat:enterprise_linux:6::workstation | All versions | 0:2.4.40-6.el6_7 |
| `openldap-debuginfo` | Red Hat:enterprise_linux:6::workstation | All versions | 0:2.4.40-6.el6_7 |
| `openldap-devel` | Red Hat:enterprise_linux:6::workstation | All versions | 0:2.4.40-6.el6_7 |

Products: Apple Mac Os X, Openldap Openldap.

## How do I fix CVE-2015-6908?

Apply the vendor's patch.

## Is CVE-2015-6908 being exploited?

There is no known exploitation of CVE-2015-6908 in the wild and no public exploit code.

Public exploit code:

- OpenLDAP 2.4.42 - ber_get_next Denial of Service (exploitdb)

## Other vulnerabilities in Apple Mac Os X

- [CVE-2014-7169](https://insights.sbomify.com/CVE-2014-7169/): GNU Bourne-Again Shell (Bash) Arbitrary Code Execution (critical 9.8, exploited in the wild)
- [CVE-2014-6271](https://insights.sbomify.com/CVE-2014-6271/): GNU Bourne-Again Shell (Bash) Arbitrary Code Execution (critical 9.8, exploited in the wild)
- [CVE-2012-1823](https://insights.sbomify.com/CVE-2012-1823/): PHP-CGI Query String Parameter (critical 9.8, exploited in the wild)
- [CVE-2021-30713](https://insights.sbomify.com/CVE-2021-30713/): Apple macOS Unspecified (high 7.8, exploited in the wild)
- [CVE-2019-8526](https://insights.sbomify.com/CVE-2019-8526/): Apple macOS Use-After-Free (high 7.8, exploited in the wild)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2015-6908 and fix it if it is affected.

What it is: CVE-2015-6908 is a medium-severity denial of service vulnerability in Apple Mac Os X, published on 11 Sep 2015. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2015-6908 in the wild and no public exploit code.

Affected product: Apple Mac Os X. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2015-6908/ (Markdown: https://insights.sbomify.com/CVE-2015-6908/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2015-6908
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2015-6908
- OSV: https://osv.dev/vulnerability/CVE-2015-6908

---
From sbomify Insights: https://insights.sbomify.com/CVE-2015-6908/
Summaries are generated and may contain mistakes; the official description above is the record.
