Skip to content
Heist/ feed
Back to feed
Medium

python-kdcproxy — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2025-59089

If an attacker causes kdcproxy to connect to an attacker-controlled KDC server (e.g. through server-side request forgery), they can exploit the fact that kdcproxy does not enforce bounds on TCP response length to conduct a denial-of-service attack. While receiving the KDC's response, kdcproxy copies the entire buffered stream into a new buffer on each recv() call, even when the transfer is incomplete, causing excessive memory allocation and CPU usage. Additionally, kdcproxy accepts incoming response chunks as long as the received data length is not exactly equal to the length indicated in the response header, even when individual chunks or the total buffer exceed the maximum length of a Kerberos message. This allows an attacker to send unbounded data until the connection timeout is reached (approximately 12 seconds), exhausting server memory or CPU resources. Multiple concurrent requests can cause accept queue overflow, denying service to legitimate clients.

Products
python-kdcproxy
Affected versions
0.3.2-1, 0.3.2-5, 0.4-1, 0.4.2-1, 1.0.0-1, 1.0.0-2, 1.0.0-2build1
Fixed versions
Not specified
CVEs
CVE-2025-59089
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 00:38 UTC · Revision 1

Source evidence

UBUNTU-CVE-2025-59089

core-osv · Original source

Published 12 Nov 2025, 17:15 UTC

If an attacker causes kdcproxy to connect to an attacker-controlled KDC server (e.g. through server-side request forgery), they can exploit the fact that kdcproxy does not enforce bounds on TCP response length to conduct a denial-of-service attack. While receiving the KDC's response, kdcproxy copies the entire buffered stream into a new buffer on each recv() call, even when the transfer is incomplete, causing excessive memory allocation and CPU usage. Additionally, kdcproxy accepts incoming response chunks as long as the received data length is not exactly equal to the length indicated in the response header, even when individual chunks or the total buffer exceed the maximum length of a Kerberos message. This allows an attacker to send unbounded data until the connection timeout is reached (approximately 12 seconds), exhausting server memory or CPU resources. Multiple concurrent requests can cause accept queue overflow, denying service to legitimate clients.

osv:UBUNTU-CVE-2025-59089

python-kdcproxy

Fixed versions: Not specified

python-kdcproxy

Fixed versions: Not specified

python-kdcproxy

Fixed versions: Not specified

python-kdcproxy

Fixed versions: Not specified

python-kdcproxy

Fixed versions: Not specified

python-kdcproxy

Fixed versions: Not specified

python-kdcproxy

Fixed versions: Not specified

python-kdcproxy

Fixed versions: Not specified

Complete source record
{
  "id": "9f7deef20a9475916a6f61f786e39fddcb30fa8f7d6383078e98d21e95ebf4c4",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2025-59089",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2025-59089",
    "summary": "If an attacker causes kdcproxy to connect to an attacker-controlled KDC server (e.g. through server-side request forgery), they can exploit the fact that kdcproxy does not enforce bounds on TCP response length to conduct a denial-of-service attack. While receiving the KDC's response, kdcproxy copies the entire buffered stream into a new buffer on each recv() call, even when the transfer is incomplete, causing excessive memory allocation and CPU usage. Additionally, kdcproxy accepts incoming response chunks as long as the received data length is not exactly equal to the length indicated in the response header, even when individual chunks or the total buffer exceed the maximum length of a Kerberos message. This allows an attacker to send unbounded data until the connection timeout is reached (approximately 12 seconds), exhausting server memory or CPU resources. Multiple concurrent requests can cause accept queue overflow, denying service to legitimate clients.",
    "evidence": "osv:UBUNTU-CVE-2025-59089",
    "products": [
      {
        "name": {
          "value": "python-kdcproxy",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.3.2-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-kdcproxy",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.3.2-5",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-kdcproxy",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.4-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "0.4.2-1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-kdcproxy",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.0.0-1",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-kdcproxy",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.0.0-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "1.0.0-2",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-kdcproxy",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.0.0-2",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-kdcproxy",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.0.0-2build1",
            "evidence": "/affected/6/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-kdcproxy",
          "evidence": "/affected/7/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.0.0-2",
            "evidence": "/affected/7/versions"
          },
          {
            "value": "1.0.0-2build1",
            "evidence": "/affected/7/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "UBUNTU-CVE-2025-59089",
      "aliases": [
        "UBUNTU-CVE-2025-59089"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-kdcproxy",
            "purl": "pkg:deb/ubuntu/python-kdcproxy?arch=source&distro=xenial",
            "ecosystem": "Ubuntu:16.04:LTS"
          },
          "versions": [
            "0.3.2-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-59089.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python-kdcproxy",
                "binary_version": "0.3.2-1"
              },
              {
                "binary_name": "python3-kdcproxy",
                "binary_version": "0.3.2-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-kdcproxy",
            "purl": "pkg:deb/ubuntu/python-kdcproxy?arch=source&distro=bionic",
            "ecosystem": "Ubuntu:18.04:LTS"
          },
          "versions": [
            "0.3.2-5"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-59089.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python-kdcproxy",
                "binary_version": "0.3.2-5"
              },
              {
                "binary_name": "python3-kdcproxy",
                "binary_version": "0.3.2-5"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-kdcproxy",
            "purl": "pkg:deb/ubuntu/python-kdcproxy?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "0.4-1",
            "0.4.2-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-59089.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-kdcproxy",
                "binary_version": "0.4.2-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-kdcproxy",
            "purl": "pkg:deb/ubuntu/python-kdcproxy?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "1.0.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-59089.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-kdcproxy",
                "binary_version": "1.0.0-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-kdcproxy",
            "purl": "pkg:deb/ubuntu/python-kdcproxy?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "1.0.0-1",
            "1.0.0-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-59089.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-kdcproxy",
                "binary_version": "1.0.0-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-kdcproxy",
            "purl": "pkg:deb/ubuntu/python-kdcproxy?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "1.0.0-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-59089.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-kdcproxy",
                "binary_version": "1.0.0-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-kdcproxy",
            "purl": "pkg:deb/ubuntu/python-kdcproxy?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "1.0.0-2build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-59089.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-kdcproxy",
                "binary_version": "1.0.0-2build1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-kdcproxy",
            "purl": "pkg:deb/ubuntu/python-kdcproxy?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "1.0.0-2",
            "1.0.0-2build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-59089.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-kdcproxy",
                "binary_version": "1.0.0-2build1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:55:54.769548422Z",
      "provider": "osv",
      "upstream": [
        "CVE-2025-59089"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2025-59089",
        "https://www.cve.org/CVERecord?id=CVE-2025-59089",
        "https://github.com/latchset/kdcproxy/pull/68",
        "https://access.redhat.com/errata/RHSA-2025:21138",
        "https://access.redhat.com/errata/RHSA-2025:21139",
        "https://access.redhat.com/errata/RHSA-2025:21140",
        "https://access.redhat.com/errata/RHSA-2025:21141",
        "https://access.redhat.com/errata/RHSA-2025:21142",
        "https://access.redhat.com/security/cve/CVE-2025-59089"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2025-59089",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 354271,
  "published_at": "2025-11-12T17:15:00+00:00"
}