{"api_version":"1","generated_at":"2026-07-23T06:15:26+00:00","cve":"CVE-2012-2942","urls":{"html":"https://cve.report/CVE-2012-2942","api":"https://cve.report/api/cve/CVE-2012-2942.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2012-2942","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2012-2942"},"summary":{"title":"CVE-2012-2942","description":"Buffer overflow in the trash buffer in the header capture functionality in HAProxy before 1.4.21, when global.tune.bufsize is set to a value greater than the default and header rewriting is enabled, allows remote attackers to cause a denial of service and possibly execute arbitrary code via unspecified vectors.","state":"PUBLISHED","assigner":"mitre","published_at":"2012-05-27 20:55:05","updated_at":"2026-04-29 01:13:23"},"problem_types":["CWE-119","n/a"],"metrics":[{"version":"2.0","source":"nvd@nist.gov","type":"Primary","score":"5.1","severity":"","vector":"AV:N/AC:H/Au:N/C:P/I:P/A:P","data":{"version":"2.0","vectorString":"AV:N/AC:H/Au:N/C:P/I:P/A:P","baseScore":5.1,"accessVector":"NETWORK","accessComplexity":"HIGH","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL"}}],"references":[{"url":"http://www.securityfocus.com/bid/53647","name":"http://www.securityfocus.com/bid/53647","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"Malformed Request","mime":"text/html","httpstatus":"200","archivestatus":"0"},{"url":"http://www.openwall.com/lists/oss-security/2012/05/28/1","name":"http://www.openwall.com/lists/oss-security/2012/05/28/1","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"oss-security - Duplicate CVE identifiers (CVE-2012-2391 and CVE-2012-2942) assigned\n to HAProxy issue","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://haproxy.1wt.eu/git?p=haproxy-1.4.git%3Ba=commit%3Bh=30297cb17147a8d339eb160226bcc08c91d9530b","name":"http://haproxy.1wt.eu/git?p=haproxy-1.4.git%3Ba=commit%3Bh=30297cb17147a8d339eb160226bcc08c91d9530b","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"Index of /git","mime":"text/html","httpstatus":"404","archivestatus":"200"},{"url":"http://www.ubuntu.com/usn/USN-1800-1","name":"http://www.ubuntu.com/usn/USN-1800-1","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"USN-1800-1: HAProxy vulnerabilities | Ubuntu","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://secunia.com/advisories/49261","name":"http://secunia.com/advisories/49261","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Vendor Advisory"],"title":"About Secunia Research | Flexera","mime":"text/plain","httpstatus":"200","archivestatus":"200"},{"url":"http://www.debian.org/security/2013/dsa-2711","name":"http://www.debian.org/security/2013/dsa-2711","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"Debian -- Security Information -- DSA-2711-1 haproxy","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.openwall.com/lists/oss-security/2012/05/23/15","name":"http://www.openwall.com/lists/oss-security/2012/05/23/15","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"oss-security - Re: CVE request: haproxy trash buffer overflow flaw","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://haproxy.1wt.eu/#news","name":"http://haproxy.1wt.eu/#news","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.openwall.com/lists/oss-security/2012/05/23/12","name":"http://www.openwall.com/lists/oss-security/2012/05/23/12","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"oss-security - CVE request: haproxy trash buffer overflow flaw","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://haproxy.1wt.eu/download/1.4/src/CHANGELOG","name":"http://haproxy.1wt.eu/download/1.4/src/CHANGELOG","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"","mime":"text/plain","httpstatus":"200","archivestatus":"200"},{"url":"http://security.gentoo.org/glsa/glsa-201301-02.xml","name":"http://security.gentoo.org/glsa/glsa-201301-02.xml","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"Gentoo Linux Documentation\n--\n  HAProxy: Arbitrary code execution","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/75777","name":"https://exchange.xforce.ibmcloud.com/vulnerabilities/75777","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"IBM X-Force Exchange","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://haproxy.1wt.eu/git?p=haproxy-1.4.git;a=commit;h=30297cb17147a8d339eb160226bcc08c91d9530b","name":"CONFIRM:http://haproxy.1wt.eu/git?p=haproxy-1.4.git;a=commit;h=30297cb17147a8d339eb160226bcc08c91d9530b","refsource":"MITRE","tags":[],"title":"Index of /git","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2012-2942","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2012-2942","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"n/a","product":"n/a","version":"affected n/a","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2012","cve_id":"2942","vulnerable":"1","versionEndIncluding":"1.4.20","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"haproxy","cpe5":"haproxy","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"adp":[{"providerMetadata":{"dateUpdated":"2024-08-06T19:50:05.135Z","orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE"},"references":[{"name":"[oss-security] 20120528 Duplicate CVE identifiers (CVE-2012-2391 and CVE-2012-2942) assigned to HAProxy issue","tags":["mailing-list","x_refsource_MLIST","x_transferred"],"url":"http://www.openwall.com/lists/oss-security/2012/05/28/1"},{"name":"GLSA-201301-02","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred"],"url":"http://security.gentoo.org/glsa/glsa-201301-02.xml"},{"name":"[oss-security] 20120523 Re: CVE request: haproxy trash buffer overflow flaw","tags":["mailing-list","x_refsource_MLIST","x_transferred"],"url":"http://www.openwall.com/lists/oss-security/2012/05/23/15"},{"name":"haproxy-trash-bo(75777)","tags":["vdb-entry","x_refsource_XF","x_transferred"],"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/75777"},{"name":"53647","tags":["vdb-entry","x_refsource_BID","x_transferred"],"url":"http://www.securityfocus.com/bid/53647"},{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"http://haproxy.1wt.eu/#news"},{"name":"DSA-2711","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred"],"url":"http://www.debian.org/security/2013/dsa-2711"},{"name":"49261","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"],"url":"http://secunia.com/advisories/49261"},{"name":"USN-1800-1","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred"],"url":"http://www.ubuntu.com/usn/USN-1800-1"},{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"http://haproxy.1wt.eu/git?p=haproxy-1.4.git%3Ba=commit%3Bh=30297cb17147a8d339eb160226bcc08c91d9530b"},{"name":"[oss-security] 20120523 CVE request: haproxy trash buffer overflow flaw","tags":["mailing-list","x_refsource_MLIST","x_transferred"],"url":"http://www.openwall.com/lists/oss-security/2012/05/23/12"},{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"http://haproxy.1wt.eu/download/1.4/src/CHANGELOG"}],"title":"CVE Program Container"}],"cna":{"affected":[{"product":"n/a","vendor":"n/a","versions":[{"status":"affected","version":"n/a"}]}],"datePublic":"2012-05-16T00:00:00.000Z","descriptions":[{"lang":"en","value":"Buffer overflow in the trash buffer in the header capture functionality in HAProxy before 1.4.21, when global.tune.bufsize is set to a value greater than the default and header rewriting is enabled, allows remote attackers to cause a denial of service and possibly execute arbitrary code via unspecified vectors."}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"dateUpdated":"2017-08-28T12:57:01.000Z","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","shortName":"mitre"},"references":[{"name":"[oss-security] 20120528 Duplicate CVE identifiers (CVE-2012-2391 and CVE-2012-2942) assigned to HAProxy issue","tags":["mailing-list","x_refsource_MLIST"],"url":"http://www.openwall.com/lists/oss-security/2012/05/28/1"},{"name":"GLSA-201301-02","tags":["vendor-advisory","x_refsource_GENTOO"],"url":"http://security.gentoo.org/glsa/glsa-201301-02.xml"},{"name":"[oss-security] 20120523 Re: CVE request: haproxy trash buffer overflow flaw","tags":["mailing-list","x_refsource_MLIST"],"url":"http://www.openwall.com/lists/oss-security/2012/05/23/15"},{"name":"haproxy-trash-bo(75777)","tags":["vdb-entry","x_refsource_XF"],"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/75777"},{"name":"53647","tags":["vdb-entry","x_refsource_BID"],"url":"http://www.securityfocus.com/bid/53647"},{"tags":["x_refsource_CONFIRM"],"url":"http://haproxy.1wt.eu/#news"},{"name":"DSA-2711","tags":["vendor-advisory","x_refsource_DEBIAN"],"url":"http://www.debian.org/security/2013/dsa-2711"},{"name":"49261","tags":["third-party-advisory","x_refsource_SECUNIA"],"url":"http://secunia.com/advisories/49261"},{"name":"USN-1800-1","tags":["vendor-advisory","x_refsource_UBUNTU"],"url":"http://www.ubuntu.com/usn/USN-1800-1"},{"tags":["x_refsource_CONFIRM"],"url":"http://haproxy.1wt.eu/git?p=haproxy-1.4.git%3Ba=commit%3Bh=30297cb17147a8d339eb160226bcc08c91d9530b"},{"name":"[oss-security] 20120523 CVE request: haproxy trash buffer overflow flaw","tags":["mailing-list","x_refsource_MLIST"],"url":"http://www.openwall.com/lists/oss-security/2012/05/23/12"},{"tags":["x_refsource_CONFIRM"],"url":"http://haproxy.1wt.eu/download/1.4/src/CHANGELOG"}],"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2012-2942","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"Buffer overflow in the trash buffer in the header capture functionality in HAProxy before 1.4.21, when global.tune.bufsize is set to a value greater than the default and header rewriting is enabled, allows remote attackers to cause a denial of service and possibly execute arbitrary code via unspecified vectors."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"[oss-security] 20120528 Duplicate CVE identifiers (CVE-2012-2391 and CVE-2012-2942) assigned to HAProxy issue","refsource":"MLIST","url":"http://www.openwall.com/lists/oss-security/2012/05/28/1"},{"name":"GLSA-201301-02","refsource":"GENTOO","url":"http://security.gentoo.org/glsa/glsa-201301-02.xml"},{"name":"[oss-security] 20120523 Re: CVE request: haproxy trash buffer overflow flaw","refsource":"MLIST","url":"http://www.openwall.com/lists/oss-security/2012/05/23/15"},{"name":"haproxy-trash-bo(75777)","refsource":"XF","url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/75777"},{"name":"53647","refsource":"BID","url":"http://www.securityfocus.com/bid/53647"},{"name":"http://haproxy.1wt.eu/#news","refsource":"CONFIRM","url":"http://haproxy.1wt.eu/#news"},{"name":"DSA-2711","refsource":"DEBIAN","url":"http://www.debian.org/security/2013/dsa-2711"},{"name":"49261","refsource":"SECUNIA","url":"http://secunia.com/advisories/49261"},{"name":"USN-1800-1","refsource":"UBUNTU","url":"http://www.ubuntu.com/usn/USN-1800-1"},{"name":"http://haproxy.1wt.eu/git?p=haproxy-1.4.git;a=commit;h=30297cb17147a8d339eb160226bcc08c91d9530b","refsource":"CONFIRM","url":"http://haproxy.1wt.eu/git?p=haproxy-1.4.git;a=commit;h=30297cb17147a8d339eb160226bcc08c91d9530b"},{"name":"[oss-security] 20120523 CVE request: haproxy trash buffer overflow flaw","refsource":"MLIST","url":"http://www.openwall.com/lists/oss-security/2012/05/23/12"},{"name":"http://haproxy.1wt.eu/download/1.4/src/CHANGELOG","refsource":"CONFIRM","url":"http://haproxy.1wt.eu/download/1.4/src/CHANGELOG"}]}}}},"cveMetadata":{"assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","assignerShortName":"mitre","cveId":"CVE-2012-2942","datePublished":"2012-05-27T20:00:00.000Z","dateReserved":"2012-05-27T00:00:00.000Z","dateUpdated":"2024-08-06T19:50:05.135Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.1"},"nvd":{"publishedDate":"2012-05-27 20:55:05","lastModifiedDate":"2026-04-29 01:13:23","problem_types":["CWE-119","n/a"],"metrics":{"cvssMetricV2":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"2.0","vectorString":"AV:N/AC:H/Au:N/C:P/I:P/A:P","baseScore":5.1,"accessVector":"NETWORK","accessComplexity":"HIGH","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL"},"baseSeverity":"MEDIUM","exploitabilityScore":4.9,"impactScore":6.4,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}]},"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:haproxy:haproxy:*:*:*:*:*:*:*:*","versionEndIncluding":"1.4.20","matchCriteriaId":"B757FF21-72FC-4B35-A2E1-6FA06FA311F0"}]}]}]},"legacy_mitre":{"record":{"CveYear":"2012","CveId":"2942","Ordinal":"1","Title":"CVE-2012-2942","CVE":"CVE-2012-2942","Year":"2012"},"notes":[{"CveYear":"2012","CveId":"2942","Ordinal":"1","NoteData":"Buffer overflow in the trash buffer in the header capture functionality in HAProxy before 1.4.21, when global.tune.bufsize is set to a value greater than the default and header rewriting is enabled, allows remote attackers to cause a denial of service and possibly execute arbitrary code via unspecified vectors.","Type":"Description","Title":"CVE-2012-2942"},{"CveYear":"2012","CveId":"2942","Ordinal":"2","NoteData":"2012-05-27","Type":"Other","Title":"Published"},{"CveYear":"2012","CveId":"2942","Ordinal":"3","NoteData":"2017-08-28","Type":"Other","Title":"Modified"}]}}}