bogofilter -- heap corruption through excessively long words
2005-10-23T00:00:00
ID B747B2A9-7BE0-11DA-8EC4-0002B3B60E4C Type freebsd Reporter FreeBSD Modified 2005-10-23T00:00:00
Description
Matthias Andree reports:
Bogofilter's/bogolexer's input handling in version 0.96.2 was not
keeping track of its output buffers properly and could overrun a
heap buffer if the input contained words whose length exceeded
16,384 bytes, the size of flex's input buffer. A "word" here refers
to a contiguous run of input octets that was not '_' and did not
match at least one of ispunct(), iscntrl() or isspace().
{"id": "B747B2A9-7BE0-11DA-8EC4-0002B3B60E4C", "bulletinFamily": "unix", "title": "bogofilter -- heap corruption through excessively long words", "description": "\nMatthias Andree reports:\n\nBogofilter's/bogolexer's input handling in version 0.96.2 was not\n\t keeping track of its output buffers properly and could overrun a\n\t heap buffer if the input contained words whose length exceeded\n\t 16,384 bytes, the size of flex's input buffer. A \"word\" here refers\n\t to a contiguous run of input octets that was not '_' and did not\n\t match at least one of ispunct(), iscntrl() or isspace().\n\n", "published": "2005-10-23T00:00:00", "modified": "2005-10-23T00:00:00", "cvss": {"score": 7.5, "vector": "AV:N/AC:L/Au:N/C:P/I:P/A:P"}, "href": "https://vuxml.freebsd.org/freebsd/b747b2a9-7be0-11da-8ec4-0002b3b60e4c.html", "reporter": "FreeBSD", "references": ["http://bogofilter.sourceforge.net/security/bogofilter-SA-2005-02"], "cvelist": ["CVE-2005-4592"], "type": "freebsd", "lastseen": "2019-05-29T18:34:49", "edition": 4, "viewCount": 2, "enchantments": {"dependencies": {"references": [{"type": "cve", "idList": ["CVE-2005-4592"]}, {"type": "openvas", "idList": ["OPENVAS:56104"]}, {"type": "nessus", "idList": ["FREEBSD_PKG_B747B2A97BE011DA8EC40002B3B60E4C.NASL"]}, {"type": "osvdb", "idList": ["OSVDB:22279"]}], "modified": "2019-05-29T18:34:49", "rev": 2}, "score": {"value": 6.3, "vector": "NONE", "modified": "2019-05-29T18:34:49", "rev": 2}, "vulnersScore": 6.3}, "affectedPackage": [{"OS": "FreeBSD", "OSVersion": "any", "arch": "noarch", "operator": "lt", "packageFilename": "UNKNOWN", "packageName": "bogofilter", "packageVersion": "0.96.3"}, {"OS": "FreeBSD", "OSVersion": "any", "arch": "noarch", "operator": "eq", "packageFilename": "UNKNOWN", "packageName": "bogofilter", "packageVersion": "0.96.2"}], "scheme": null}
{"cve": [{"lastseen": "2020-10-03T11:34:58", "description": "Heap-based buffer overflow in bogofilter and bogolexer 0.96.2 allows remote attackers to cause a denial of service (crash) and possibly execute arbitrary code via words that are longer than the input buffer used by flex.", "edition": 3, "cvss3": {}, "published": "2005-12-31T05:00:00", "title": "CVE-2005-4592", "type": "cve", "cwe": ["NVD-CWE-Other"], "bulletinFamily": "NVD", "cvss2": {"severity": "HIGH", "exploitabilityScore": 10.0, "obtainAllPrivilege": false, "userInteractionRequired": false, "obtainOtherPrivilege": false, "cvssV2": {"accessComplexity": "LOW", "confidentialityImpact": "PARTIAL", "availabilityImpact": "PARTIAL", "integrityImpact": "PARTIAL", "baseScore": 7.5, "vectorString": "AV:N/AC:L/Au:N/C:P/I:P/A:P", "version": "2.0", "accessVector": "NETWORK", "authentication": "NONE"}, "impactScore": 6.4, "obtainUserPrivilege": true}, "cvelist": ["CVE-2005-4592"], "modified": "2017-07-20T01:29:00", "cpe": ["cpe:/o:bogofilter:email_filter:0.93.5", "cpe:/o:bogofilter:email_filter:0.94.12", "cpe:/o:bogofilter:email_filter:0.96.2", "cpe:/o:bogofilter:email_filter:0.95.2", "cpe:/o:bogofilter:email_filter:0.94.14"], "id": "CVE-2005-4592", "href": "https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2005-4592", "cvss": {"score": 7.5, "vector": "AV:N/AC:L/Au:N/C:P/I:P/A:P"}, "cpe23": ["cpe:2.3:o:bogofilter:email_filter:0.96.2:*:*:*:*:*:*:*", "cpe:2.3:o:bogofilter:email_filter:0.95.2:*:*:*:*:*:*:*", "cpe:2.3:o:bogofilter:email_filter:0.94.12:*:*:*:*:*:*:*", "cpe:2.3:o:bogofilter:email_filter:0.94.14:*:*:*:*:*:*:*", "cpe:2.3:o:bogofilter:email_filter:0.93.5:*:*:*:*:*:*:*"]}], "osvdb": [{"lastseen": "2017-04-28T13:20:19", "bulletinFamily": "software", "cvelist": ["CVE-2005-4592"], "edition": 1, "description": "## Solution Description\nUpgrade to version 1.0.1 or higher, as it has been reported to fix this vulnerability. An upgrade is required as there are no known workarounds.\n## References:\nVendor URL: http://sourceforge.net/projects/bogofilter/\n[Vendor Specific Advisory URL](http://lists.suse.com/archive/suse-security-announce/2006-Feb/0001.html)\n[Vendor Specific Advisory URL](http://bogofilter.sourceforge.net/security/bogofilter-SA-2005-02)\n[Secunia Advisory ID:18717](https://secuniaresearch.flexerasoftware.com/advisories/18717/)\n[Secunia Advisory ID:18352](https://secuniaresearch.flexerasoftware.com/advisories/18352/)\n[Related OSVDB ID: 22278](https://vulners.com/osvdb/OSVDB:22278)\nKeyword: bogofilter-SA-2005-02\n[CVE-2005-4592](https://vulners.com/cve/CVE-2005-4592)\n", "modified": "2006-01-02T07:48:22", "published": "2006-01-02T07:48:22", "href": "https://vulners.com/osvdb/OSVDB:22279", "id": "OSVDB:22279", "type": "osvdb", "title": "Bogofilter bogofilter/bogolexer Word Processing Overflow DoS", "cvss": {"score": 7.5, "vector": "AV:NETWORK/AC:LOW/Au:NONE/C:PARTIAL/I:PARTIAL/A:PARTIAL/"}}], "openvas": [{"lastseen": "2017-07-02T21:10:17", "bulletinFamily": "scanner", "cvelist": ["CVE-2005-4592"], "description": "The remote host is missing an update to the system\nas announced in the referenced advisory.", "modified": "2016-09-15T00:00:00", "published": "2008-09-04T00:00:00", "id": "OPENVAS:56104", "href": "http://plugins.openvas.org/nasl.php?oid=56104", "type": "openvas", "title": "FreeBSD Ports: bogofilter", "sourceData": "#\n#VID b747b2a9-7be0-11da-8ec4-0002b3b60e4c\n# OpenVAS Vulnerability Test\n# $\n# Description: Auto generated from vuxml or freebsd advisories\n#\n# Authors:\n# Thomas Reinke <reinke@securityspace.com>\n#\n# Copyright:\n# Copyright (c) 2008 E-Soft Inc. http://www.securityspace.com\n# Text descriptions are largely excerpted from the referenced\n# advisories, and are Copyright (c) the respective author(s)\n#\n# This program is free software; you can redistribute it and/or modify\n# it under the terms of the GNU General Public License version 2,\n# as published by the Free Software Foundation\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU General Public License for more details.\n#\n# You should have received a copy of the GNU General Public License\n# along with this program; if not, write to the Free Software\n# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.\n#\n\ninclude(\"revisions-lib.inc\");\ntag_insight = \"The following package is affected: bogofilter\n\nCVE-2005-4592\nHeap-based buffer overflow in bogofilter and bogolexer 0.96.2 allows\nremote attackers to cause a denial of service (crash) and possibly\nexecute arbitrary code via words that are longer than the input buffer\nused by flex.\";\ntag_solution = \"Update your system with the appropriate patches or\nsoftware upgrades.\n\nhttp://bogofilter.sourceforge.net/security/bogofilter-SA-2005-02\nhttp://www.vuxml.org/freebsd/b747b2a9-7be0-11da-8ec4-0002b3b60e4c.html\";\ntag_summary = \"The remote host is missing an update to the system\nas announced in the referenced advisory.\";\n\n\nif(description)\n{\n script_id(56104);\n script_version(\"$Revision: 4075 $\");\n script_tag(name:\"last_modification\", value:\"$Date: 2016-09-15 15:13:05 +0200 (Thu, 15 Sep 2016) $\");\n script_tag(name:\"creation_date\", value:\"2008-09-04 20:41:11 +0200 (Thu, 04 Sep 2008)\");\n script_bugtraq_id(16171);\n script_cve_id(\"CVE-2005-4592\");\n script_tag(name:\"cvss_base\", value:\"7.5\");\n script_tag(name:\"cvss_base_vector\", value:\"AV:N/AC:L/Au:N/C:P/I:P/A:P\");\n script_name(\"FreeBSD Ports: bogofilter\");\n\n\n\n script_category(ACT_GATHER_INFO);\n\n script_copyright(\"Copyright (c) 2006 E-Soft Inc. http://www.securityspace.com\");\n script_family(\"FreeBSD Local Security Checks\");\n script_dependencies(\"gather-package-list.nasl\");\n script_mandatory_keys(\"ssh/login/freebsdrel\", \"login/SSH/success\");\n script_tag(name : \"insight\" , value : tag_insight);\n script_tag(name : \"solution\" , value : tag_solution);\n script_tag(name : \"summary\" , value : tag_summary);\n script_tag(name:\"qod_type\", value:\"package\");\n script_tag(name:\"solution_type\", value:\"VendorFix\");\n exit(0);\n}\n\n#\n# The script code starts here\n#\n\ninclude(\"pkg-lib-bsd.inc\");\n\ntxt = \"\";\nvuln = 0;\nbver = portver(pkg:\"bogofilter\");\nif(!isnull(bver) && revcomp(a:bver, b:\"0.96.2\")>=0 && revcomp(a:bver, b:\"0.96.3\")<0) {\n txt += 'Package bogofilter version ' + bver + ' is installed which is known to be vulnerable.\\n';\n vuln = 1;\n}\n\nif(vuln) {\n security_message(data:string(txt));\n} else if (__pkg_match) {\n exit(99); # Not vulnerable.\n}\n", "cvss": {"score": 7.5, "vector": "AV:NETWORK/AC:LOW/Au:NONE/C:PARTIAL/I:PARTIAL/A:PARTIAL/"}}], "nessus": [{"lastseen": "2021-01-07T10:49:19", "description": "Matthias Andree reports :\n\nBogofilter's/bogolexer's input handling in version 0.96.2 was not\nkeeping track of its output buffers properly and could overrun a heap\nbuffer if the input contained words whose length exceeded 16,384\nbytes, the size of flex's input buffer. A 'word' here refers to a\ncontiguous run of input octets that was not '_' and did not match at\nleast one of ispunct(), iscntrl() or isspace().", "edition": 25, "published": "2006-05-13T00:00:00", "title": "FreeBSD : bogofilter -- heap corruption through excessively long words (b747b2a9-7be0-11da-8ec4-0002b3b60e4c)", "type": "nessus", "bulletinFamily": "scanner", "cvelist": ["CVE-2005-4592"], "modified": "2006-05-13T00:00:00", "cpe": ["cpe:/o:freebsd:freebsd", "p-cpe:/a:freebsd:freebsd:bogofilter"], "id": "FREEBSD_PKG_B747B2A97BE011DA8EC40002B3B60E4C.NASL", "href": "https://www.tenable.com/plugins/nessus/21500", "sourceData": "#%NASL_MIN_LEVEL 70300\n#\n# (C) Tenable Network Security, Inc.\n#\n# The descriptive text and package checks in this plugin were \n# extracted from the FreeBSD VuXML database :\n#\n# Copyright 2003-2018 Jacques Vidrine and contributors\n#\n# Redistribution and use in source (VuXML) and 'compiled' forms (SGML,\n# HTML, PDF, PostScript, RTF and so forth) with or without modification,\n# are permitted provided that the following conditions are met:\n# 1. Redistributions of source code (VuXML) must retain the above\n# copyright notice, this list of conditions and the following\n# disclaimer as the first lines of this file unmodified.\n# 2. Redistributions in compiled form (transformed to other DTDs,\n# published online in any format, converted to PDF, PostScript,\n# RTF and other formats) must reproduce the above copyright\n# notice, this list of conditions and the following disclaimer\n# in the documentation and/or other materials provided with the\n# distribution.\n# \n# THIS DOCUMENTATION IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS \"AS IS\"\n# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,\n# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS\n# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,\n# OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT\n# OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR\n# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,\n# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE\n# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS DOCUMENTATION,\n# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n#\n\ninclude('deprecated_nasl_level.inc');\ninclude('compat.inc');\n\nif (description)\n{\n script_id(21500);\n script_version(\"1.11\");\n script_set_attribute(attribute:\"plugin_modification_date\", value:\"2021/01/06\");\n\n script_cve_id(\"CVE-2005-4592\");\n\n script_name(english:\"FreeBSD : bogofilter -- heap corruption through excessively long words (b747b2a9-7be0-11da-8ec4-0002b3b60e4c)\");\n script_summary(english:\"Checks for updated package in pkg_info output\");\n\n script_set_attribute(\n attribute:\"synopsis\", \n value:\"The remote FreeBSD host is missing a security-related update.\"\n );\n script_set_attribute(\n attribute:\"description\", \n value:\n\"Matthias Andree reports :\n\nBogofilter's/bogolexer's input handling in version 0.96.2 was not\nkeeping track of its output buffers properly and could overrun a heap\nbuffer if the input contained words whose length exceeded 16,384\nbytes, the size of flex's input buffer. A 'word' here refers to a\ncontiguous run of input octets that was not '_' and did not match at\nleast one of ispunct(), iscntrl() or isspace().\"\n );\n script_set_attribute(\n attribute:\"see_also\",\n value:\"http://bogofilter.sourceforge.net/security/bogofilter-SA-2005-02\"\n );\n # https://vuxml.freebsd.org/freebsd/b747b2a9-7be0-11da-8ec4-0002b3b60e4c.html\n script_set_attribute(\n attribute:\"see_also\",\n value:\"http://www.nessus.org/u?890d68ab\"\n );\n script_set_attribute(attribute:\"solution\", value:\"Update the affected package.\");\n script_set_cvss_base_vector(\"CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P\");\n\n script_set_attribute(attribute:\"plugin_type\", value:\"local\");\n script_set_attribute(attribute:\"cpe\", value:\"p-cpe:/a:freebsd:freebsd:bogofilter\");\n script_set_attribute(attribute:\"cpe\", value:\"cpe:/o:freebsd:freebsd\");\n\n script_set_attribute(attribute:\"vuln_publication_date\", value:\"2005/10/23\");\n script_set_attribute(attribute:\"patch_publication_date\", value:\"2006/01/07\");\n script_set_attribute(attribute:\"plugin_publication_date\", value:\"2006/05/13\");\n script_end_attributes();\n\n script_category(ACT_GATHER_INFO);\n script_copyright(english:\"This script is Copyright (C) 2006-2021 and is owned by Tenable, Inc. or an Affiliate thereof.\");\n script_family(english:\"FreeBSD Local Security Checks\");\n\n script_dependencies(\"ssh_get_info.nasl\");\n script_require_keys(\"Host/local_checks_enabled\", \"Host/FreeBSD/release\", \"Host/FreeBSD/pkg_info\");\n\n exit(0);\n}\n\n\ninclude(\"audit.inc\");\ninclude(\"freebsd_package.inc\");\n\n\nif (!get_kb_item(\"Host/local_checks_enabled\")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);\nif (!get_kb_item(\"Host/FreeBSD/release\")) audit(AUDIT_OS_NOT, \"FreeBSD\");\nif (!get_kb_item(\"Host/FreeBSD/pkg_info\")) audit(AUDIT_PACKAGE_LIST_MISSING);\n\n\nflag = 0;\n\nif (pkg_test(save_report:TRUE, pkg:\"bogofilter>=0.96.2<0.96.3\")) flag++;\n\nif (flag)\n{\n if (report_verbosity > 0) security_hole(port:0, extra:pkg_report_get());\n else security_hole(0);\n exit(0);\n}\nelse audit(AUDIT_HOST_NOT, \"affected\");\n", "cvss": {"score": 7.5, "vector": "AV:N/AC:L/Au:N/C:P/I:P/A:P"}}]}