# CVE-2021-23850: Buffer Overflow vulnerability in the recovery image telnet server

> A buffer overflow in the recovery image telnet server allows remote code execution, requiring administrative rights or physical access to boot the recovery mode.

- **Severity:** Medium 6.8 (`CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Local or same network only
- **Victim action needed:** Not needed
- **Fix available:** No
- **Published:** 30 Mar 2022
- **Updated:** 17 Sep 2024
- **Also known as:** GHSA-4xm2-6jv3-5vh9

## What is CVE-2021-23850?

CVE-2021-23850 is a medium-severity memory corruption vulnerability in Bosch CPP Firmware, published on 30 Mar 2022. It can only be exploited from the same machine or local network, with no action from the victim.

### Official description

A specially crafted TCP/IP packet may cause a camera recovery image telnet interface to crash. It may also cause a buffer overflow which could enable remote code execution. The recovery image can only be booted with administrative rights or with physical access to the camera and allows the upload of a new firmware in case of a damaged firmware.

Weakness: CWE-120 (Buffer Copy without Checking Size of Input), CWE-121 (Stack-based Buffer Overflow)

## Which versions are affected by CVE-2021-23850?

It affects 68 products.


Products: Bosch Autodome 7000 Firmware, Bosch Autodome Ip 4000 Hd Firmware, Bosch Autodome Ip 4000i Firmware, Bosch Autodome Ip 5000 Hd Firmware, Bosch Autodome Ip 5000 Ir Firmware, Bosch Autodome Ip 5000i Firmware, Bosch Autodome Ip Starlight 5000i Firmware, Bosch Autodome Ip Starlight 7000i Firmware, Bosch Aviotec Ip Starlight 8000 Firmware, Bosch Dinion Hd 1080p Firmware, Bosch Dinion Hd 1080p Hdr Firmware, Bosch Dinion Hd 720p Firmware, Bosch Dinion Imager 9000 Hd Firmware, Bosch Dinion Ip 3000i Firmware, Bosch Dinion Ip 4000 Hd Firmware, Bosch Dinion Ip 5000 Hd Firmware, Bosch Dinion Ip 5000 Mp Firmware, Bosch Dinion Ip Bullet 4000 Firmware, Bosch Dinion Ip Bullet 4000i Firmware, Bosch Dinion Ip Bullet 5000 Firmware and 48 more.

## How do I fix CVE-2021-23850?

No fix has been published for CVE-2021-23850 yet. Limit exposure of the affected software until one is available.

## Is CVE-2021-23850 being exploited?

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

## Other vulnerabilities in Bosch CPP Firmware

- [CVE-2021-23851](https://insights.sbomify.com/CVE-2021-23851/): Buffer Overflow vulnerability in the recovery image web-based interface (medium 6.8)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2021-23850 and fix it if it is affected.

What it is: CVE-2021-23850 is a medium-severity memory corruption vulnerability in Bosch CPP Firmware, published on 30 Mar 2022. It can only be exploited from the same machine or local network, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2021-23850 in the wild and no public exploit code.

Affected product: Bosch CPP Firmware. 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-2021-23850/ (Markdown: https://insights.sbomify.com/CVE-2021-23850/index.md)
```

## Sources

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

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