{"id":"CVE-2004-1440","aliases":["DEBIAN-CVE-2004-1440","EUVD-2004-1437","GHSA-8hpx-pjhm-89hr"],"status":"published","title":"Multiple heap-based buffer overflows in the modpow function in PuTTY before 0.55 allow (1) remote...","description":"Multiple heap-based buffer overflows in the modpow function in PuTTY before 0.55 allow (1) remote attackers to execute arbitrary code via an SSH2 packet with a base argument that is larger than the mod argument, which causes the modpow function to write memory before the beginning of its buffer, and (2) remote malicious servers to cause a denial of service (client crash) and possibly execute arbitrary code via a large bignum during authentication.","severity":{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.04114,"percentile":0.90849,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"published":"2004-12-31T05:00:00Z","modified":"2026-10-21T15:47:34Z","fixes":[{"ecosystem":"Debian:12","package":"putty","fixed_in":["0.56-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"putty","fixed_in":["0.56-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"putty","fixed_in":["0.56-1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"putty","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.56-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"putty","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.56-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"putty","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.56-1"}]}]}],"products":[{"vendor":"putty","product":"putty"}],"references":[{"url":"http://www.gentoo.org/security/en/glsa/glsa-200408-04.xml","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred","Patch","fix"]},{"url":"http://www.chiark.greenend.org.uk/~sgtatham/putty/changes.html","tags":["x_refsource_CONFIRM","x_transferred","web"]},{"url":"http://www.securityfocus.com/bid/10850","tags":["vdb-entry","x_refsource_BID","x_transferred","Patch","fix"]},{"url":"http://secunia.com/advisories/12212/","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Patch","fix"]},{"url":"http://www.chiark.greenend.org.uk/~sgtatham/putty/wishlist/vuln-modpow.html","tags":["x_refsource_CONFIRM","x_transferred","web"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/16885","tags":["vdb-entry","x_refsource_XF","x_transferred","web"]},{"url":"http://marc.info/?l=bugtraq\u0026m=109167869528138\u0026w=2","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2004-1440"},{"url":"http://secunia.com/advisories/12212"},{"url":"https://github.com/advisories/GHSA-8hpx-pjhm-89hr"},{"url":"https://security-tracker.debian.org/tracker/CVE-2004-1440","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2004-1440","description":"Multiple heap-based buffer overflows in the modpow function in PuTTY before 0.55 allow (1) remote attackers to execute arbitrary code via an SSH2 packet with a base argument that is larger than the mod argument, which causes the modpow function to write memory before the beginning of its buffer, and (2) remote malicious servers to cause a denial of service (client crash) and possibly execute arbitrary code via a large bignum during authentication.","status":"published","published":"2005-02-13T05:00:00Z","modified":"2024-08-08T00:53:23.781Z","updated_at":"2026-11-02T14:34:53.70484Z"}],"euvd":[{"id":"EUVD-2004-1437","description":"Multiple heap-based buffer overflows in the modpow function in PuTTY before 0.55 allow (1) remote attackers to execute arbitrary code via an SSH2 packet with a base argument that is larger than the mod argument, which causes the modpow function to write memory before the beginning of its buffer, and (2) remote malicious servers to cause a denial of service (client crash) and possibly execute arbitrary code via a large bignum during authentication.","status":"published","published":"2005-02-13T05:00:00Z","modified":"2024-08-08T00:53:23Z","updated_at":"2026-11-03T01:15:14.640916Z"}],"ghsa":[{"id":"GHSA-8hpx-pjhm-89hr","title":"Multiple heap-based buffer overflows in the modpow function in PuTTY before 0.55 allow (1) remote...","description":"Multiple heap-based buffer overflows in the modpow function in PuTTY before 0.55 allow (1) remote attackers to execute arbitrary code via an SSH2 packet with a base argument that is larger than the mod argument, which causes the modpow function to write memory before the beginning of its buffer, and (2) remote malicious servers to cause a denial of service (client crash) and possibly execute arbitrary code via a large bignum during authentication.","status":"published","published":"2022-04-29T02:59:35Z","modified":"2025-04-03T04:04:23Z","updated_at":"2026-11-02T15:00:40.1727Z"}],"nvd":[{"id":"CVE-2004-1440","description":"Multiple heap-based buffer overflows in the modpow function in PuTTY before 0.55 allow (1) remote attackers to execute arbitrary code via an SSH2 packet with a base argument that is larger than the mod argument, which causes the modpow function to write memory before the beginning of its buffer, and (2) remote malicious servers to cause a denial of service (client crash) and possibly execute arbitrary code via a large bignum during authentication.","status":"published","published":"2004-12-31T05:00:00Z","modified":"2026-06-16T22:07:42.493Z","cvss":[{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"updated_at":"2026-11-02T14:00:51.985436Z"}],"osv":[{"id":"CVE-2004-1440","description":"Multiple heap-based buffer overflows in the modpow function in PuTTY before 0.55 allow (1) remote attackers to execute arbitrary code via an SSH2 packet with a base argument that is larger than the mod argument, which causes the modpow function to write memory before the beginning of its buffer, and (2) remote malicious servers to cause a denial of service (client crash) and possibly execute arbitrary code via a large bignum during authentication.","status":"published","published":"2004-12-31T05:00:00Z","modified":"2026-04-10T03:36:39.135002Z","updated_at":"2026-11-02T15:43:56.315348Z"},{"id":"DEBIAN-CVE-2004-1440","description":"Multiple heap-based buffer overflows in the modpow function in PuTTY before 0.55 allow (1) remote attackers to execute arbitrary code via an SSH2 packet with a base argument that is larger than the mod argument, which causes the modpow function to write memory before the beginning of its buffer, and (2) remote malicious servers to cause a denial of service (client crash) and possibly execute arbitrary code via a large bignum during authentication.","status":"published","published":"2004-12-31T05:00:00Z","modified":"2026-10-21T15:47:34.944224995Z","updated_at":"2026-11-02T15:45:22.55978Z"}]}}
