CVE-2007-5939
CVE-2007-5939 is a critical-severity vulnerability in Heimdal with a CVSS 2.0 base score of 10.0. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-119.
Key facts
- Severity: Critical (CVSS 2.0 base score 10.0)
- EPSS exploit prediction: 4% (89th percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-119
- Affected product: Heimdal
- Published:
- Last modified:
Description
The gss_userok function in appl/ftp/ftpd/gss_userok.c in Heimdal 0.7.2 does not allocate memory for the ticketfile pointer before calling free, which allows remote attackers to have an unknown impact via an invalid username. NOTE: the vulnerability was originally reported for ftpd.c, but this is incorrect.
Frequently asked questions
- What is CVE-2007-5939?
- The gss_userok function in appl/ftp/ftpd/gss_userok.c in Heimdal 0.7.2 does not allocate memory for the ticketfile pointer before calling free, which allows remote attackers to have an unknown impact via an invalid username. NOTE: the vulnerability was originally reported for ftpd.c, but this is incorrect.
- How severe is CVE-2007-5939?
- CVE-2007-5939 has a CVSS 2.0 base score of 10.0, rated critical severity.
- Is CVE-2007-5939 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 4% (89th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2007-5939?
- CVE-2007-5939 affects Heimdal. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2007-5939?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its critical severity, prioritise patching exposed systems.
- When was CVE-2007-5939 published?
- CVE-2007-5939 was published on 2007-12-06 and last updated on 2026-06-16.
References
- http://bugs.gentoo.org/show_bug.cgi?id=199207
- http://marc.info/?l=full-disclosure&m=119704362903699&w=2
- http://osvdb.org/44750
- http://securitytracker.com/id?1019057
- http://www.mandriva.com/security/advisories?name=MDKSA-2007:239
- http://www.securityfocus.com/bid/26758
Affected products (1)
- cpe:2.3:a:heimdal:heimdal:0.7.2:*:*:*:*:*:*:*
More vulnerabilities in Heimdal
- CVE-2006-3083 — High (CVSS 7.2): The (1) krshd and (2) v4rcp applications in (a) MIT Kerberos 5 (krb5) up to 1.5, and 1.4.x before 1.4.4, when running…
- CVE-2006-3084 — High (CVSS 7.2): The (1) ftpd and (2) ksu programs in (a) MIT Kerberos 5 (krb5) up to 1.5, and 1.4.x before 1.4.4, and (b) Heimdal 0.7.2…
Other CWE-119 (Improper Restriction of Operations within the Bounds of a Memory Buffer) vulnerabilities
- CVE-2026-2778 — Critical (CVSS 10.0): Sandbox escape due to incorrect boundary conditions in the DOM: Core & HTML component. This vulnerability was fixed in…
- CVE-2026-2776 — Critical (CVSS 10.0): Sandbox escape due to incorrect boundary conditions in the Telemetry component in External Software. This vulnerability…
- CVE-2025-1866 — Critical (CVSS 10.0): Improper Restriction of Operations within the Bounds of a Memory Buffer vulnerability in warmcat libwebsockets allows…
- CVE-2022-27625 — Critical (CVSS 10.0): A vulnerability regarding improper restriction of operations within the bounds of a memory buffer is found in the…
- CVE-2022-27624 — Critical (CVSS 10.0): A vulnerability regarding improper restriction of operations within the bounds of a memory buffer is found in the…
- CVE-2020-11896 — Critical (CVSS 10.0): The Treck TCP/IP stack before 6.0.1.66 allows Remote Code Execution, related to IPv4 tunneling.