# CVE-2003-0963: Memory corruption in n/a

> Remote HTTP servers can execute arbitrary code on lftp clients via buffer overflows in directory listing commands.

- **Severity:** High 7.5 (`AV:N/AC:L/Au:N/C:P/I:P/A:P`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** A user has to click or open something
- **Fix available:** Yes
- **Published:** 17 Dec 2003
- **Updated:** 8 Aug 2024
- **Also known as:** DEBIAN-CVE-2003-0963, DSA-406, GHSA-pv7m-39mr-v2jm, RHSA-2003:404

## What is CVE-2003-0963?

CVE-2003-0963 is a high-severity memory corruption vulnerability in n/a, published on 17 Dec 2003. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

### Official description

Buffer overflows in (1) try_netscape_proxy and (2) try_squid_eplf for lftp 2.6.9 and earlier allow remote HTTP servers to execute arbitrary code via long directory names that are processed by the ls or rels commands.

## Which versions are affected by CVE-2003-0963?

It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `lftp` | Red Hat:enterprise_linux:3::as | All versions | 0:2.6.3-5 |
| `lftp-debuginfo` | Red Hat:enterprise_linux:3::as | All versions | 0:2.6.3-5 |
| `lftp` | Red Hat:enterprise_linux:3::desktop | All versions | 0:2.6.3-5 |
| `lftp-debuginfo` | Red Hat:enterprise_linux:3::desktop | All versions | 0:2.6.3-5 |
| `lftp` | Red Hat:enterprise_linux:3::es | All versions | 0:2.6.3-5 |
| `lftp-debuginfo` | Red Hat:enterprise_linux:3::es | All versions | 0:2.6.3-5 |
| `lftp` | Red Hat:enterprise_linux:3::ws | All versions | 0:2.6.3-5 |
| `lftp-debuginfo` | Red Hat:enterprise_linux:3::ws | All versions | 0:2.6.3-5 |

Products: Alexander v. Lukyanov Lftp.

## How do I fix CVE-2003-0963?

Upgrade to a fixed version.

## Is CVE-2003-0963 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2003-0963 exists.

Public exploit code:

- lftp 2.6.9 - Remote Stack Overflow (exploitdb)

## Other vulnerabilities in n/a

- [CVE-2010-2251](https://insights.sbomify.com/CVE-2010-2251/): Path traversal in n/a (high 7.5)
- [CVE-2007-2348](https://insights.sbomify.com/CVE-2007-2348/): Command injection in n/a (medium 6.8)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2003-0963 and fix it if it is affected.

What it is: CVE-2003-0963 is a high-severity memory corruption vulnerability in n/a, published on 17 Dec 2003. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Exploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2003-0963 exists.

Affected product: n/a. 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-2003-0963/ (Markdown: https://insights.sbomify.com/CVE-2003-0963/index.md)
```

## Sources

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

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