{"id":"CVE-2025-54581","aliases":["CVE-2025-54581","GHSA-7h24-c332-p48c"],"related":[],"kind":"vulnerability","state":"published","title":"vproxy is vulnerable to a divide by zero DoS attack","summary":"vproxy is an HTTP/HTTPS/SOCKS5 proxy server. In versions 2.3.3 and below, untrusted data is extracted from the user-controlled HTTP Proxy-Authorization header and passed to Extension::try_from and flows into parse_ttl_extension where it is parsed as a TTL value. If an attacker supplies a TTL of zero (e.g. by using a username such as 'configuredUser-ttl-0'), the modulo operation 'timestamp % ttl' will cause a division by zero panic, causing the server to crash causing a denial-of-service. This is fixed in version 2.4.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"vproxy is an HTTP/HTTPS/SOCKS5 proxy server. In versions 2.3.3 and below, untrusted data is extracted from the user-controlled HTTP Proxy-Authorization header and passed to Extension::try_from and flows into parse_ttl_extension where it is parsed as a TTL value. If an attacker supplies a TTL of zero (e.g. by using a username such as 'configuredUser-ttl-0'), the modulo operation 'timestamp % ttl' will cause a division by zero panic, causing the server to crash causing a denial-of-service. This is fixed in version 2.4.0.","source":"cvelist"},{"lang":"en","text":"### Summary\nUntrusted, user-controlled data from the HTTP Proxy-Authorization header can induce a denial of service state.\n\n### Details\nUntrusted data is extracted from the user-controlled HTTP Proxy-Authorization header and passed to Extension::try_from and flows into parse_ttl_extension where it is parsed as a TTL value. If an attacker supplies a TTL of zero (e.g. by using a username such as 'configuredUser-ttl-0'), the modulo operation 'timestamp % ttl' will cause a division by zero panic, causing the server to crash causing a denial-of-service.\n\nThe code assumed to be responsible for this can be found here: https://github.com/0x676e67/vproxy/blob/ab304c3854bf8480be577039ada0228907ba0923/src/extension.rs#L173-L183\n\n### PoC\n1. Download and run the latest version of vproxy\n2. Send a cUrl request like the following, adjusting address and port as necessary: ```curl -x \"http://test-ttl-0:test@127.0.0.1:8101\" https://google.com```\n3. Wait for a cUrl error indicating \"Proxy CONNECT aborted\"\n4. View logs from the vproxy server\n5. Observe that the vproxy server crashed due to a divide-by-zero panic\n\n### Impact\nThe resulting crash renders the proxy server unusable until it is reset.\n\nFinally, one last note: I'm reporting this on behalf of another researcher at Black Duck. Credit for discovery should be attributed to David Bohannon ([dbohannon](https://github.com/dbohannon))","format":"markdown","source":"ghsa"},{"lang":"es","text":"vproxy es un servidor proxy HTTP/HTTPS/SOCKS5. En las versiones 2.3.3 y anteriores, los datos no confiables se extraen del encabezado HTTP Proxy-Authorization, controlado por el usuario, se pasan a Extension::try_from y fluyen a parse_ttl_extension, donde se analizan como un valor TTL. Si un atacante proporciona un valor TTL de cero (por ejemplo, usando un nombre de usuario como 'configuredUser-ttl-0'), la operación de módulo 'timestamp % ttl' provocará un pánico por división por cero, lo que provocará el bloqueo del servidor y una denegación de servicio. Esto se solucionó en la versión 2.4.0.","source":"nvd"}],"published":"2025-07-30T16:33:41.000Z","modified":"2026-06-17T09:40:20.523Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-369"],"affected":[{"ranges":[{"version":"< 2.4.0","status":"affected"}],"vendor":"0x676e67","product":"vproxy","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.4.0"}],"ecosystem":"crates.io","package":"vproxy","purl":"pkg:cargo/vproxy","source":"ghsa"}],"references":[{"url":"https://github.com/0x676e67/vproxy/security/advisories/GHSA-7h24-c332-p48c","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/0x676e67/vproxy/commit/aa1bf64c5e7f1c471395f9f29175ffc1b16a1079","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/0x676e67/vproxy/releases/tag/v2.4.0","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-54581","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/0x676e67/vproxy","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2025-07-30T20:13:38.841Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-54581","url":"https://www.cve.org/CVERecord?id=CVE-2025-54581","licence":"CVE Terms of Use","modified":"2025-07-30T20:23:36.826Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-7h24-c332-p48c","url":"https://github.com/advisories/GHSA-7h24-c332-p48c","licence":"CC-BY-4.0","modified":"2025-07-31T11:18:29.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-54581","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-54581","licence":"Public domain","modified":"2026-06-17T09:40:20.523Z"}],"updatedAt":"2026-11-25T22:59:01.910Z","epss":{"score":0.00642,"percentile":0.52093,"date":"2026-12-01T12:00:22.000Z"}}