ID CVE-2015-3281
Summary The buffer_slow_realign function in HAProxy 1.5.x before 1.5.14 and 1.6-dev does not properly realign a buffer that is used for pending outgoing data, which allows remote attackers to obtain sensitive information (uninitialized memory contents of previous requests) via a crafted request.
References
Vulnerable Configurations
  • Debian Linux 8.0 (Jessie)
    cpe:2.3:o:debian:debian_linux:8.0
  • HAProxy HAProxy 1.5-dev
    cpe:2.3:a:haproxy:haproxy:1.5:dev
  • HAProxy 1.5-dev0
    cpe:2.3:a:haproxy:haproxy:1.5:dev0
  • HAProxy 1.5-dev1
    cpe:2.3:a:haproxy:haproxy:1.5:dev1
  • HAProxy 1.5-dev10
    cpe:2.3:a:haproxy:haproxy:1.5:dev10
  • HAProxy 1.5-dev11
    cpe:2.3:a:haproxy:haproxy:1.5:dev11
  • HAProxy 1.5-dev12
    cpe:2.3:a:haproxy:haproxy:1.5:dev12
  • HAProxy 1.5-dev13
    cpe:2.3:a:haproxy:haproxy:1.5:dev13
  • HAProxy 1.5-dev14
    cpe:2.3:a:haproxy:haproxy:1.5:dev14
  • HAProxy 1.5-dev15
    cpe:2.3:a:haproxy:haproxy:1.5:dev15
  • HAProxy 1.5-dev16
    cpe:2.3:a:haproxy:haproxy:1.5:dev16
  • HAProxy 1.5-dev17
    cpe:2.3:a:haproxy:haproxy:1.5:dev17
  • HAProxy 1.5-dev18
    cpe:2.3:a:haproxy:haproxy:1.5:dev18
  • HAPoxy 1.5-dev19
    cpe:2.3:a:haproxy:haproxy:1.5:dev19
  • HAProxy 1.5-dev2
    cpe:2.3:a:haproxy:haproxy:1.5:dev2
  • HAProxy 1.5-dev3
    cpe:2.3:a:haproxy:haproxy:1.5:dev3
  • HAProxy 1.5-dev4
    cpe:2.3:a:haproxy:haproxy:1.5:dev4
  • HAProxy 1.5-dev5
    cpe:2.3:a:haproxy:haproxy:1.5:dev5
  • HAProxy 1.5-dev6
    cpe:2.3:a:haproxy:haproxy:1.5:dev6
  • HAProxy 1.5-dev7
    cpe:2.3:a:haproxy:haproxy:1.5:dev7
  • HAProxy 1.5-dev8
    cpe:2.3:a:haproxy:haproxy:1.5:dev8
  • HAProxy 1.5-dev9
    cpe:2.3:a:haproxy:haproxy:1.5:dev9
  • HAProxy 1.5.0
    cpe:2.3:a:haproxy:haproxy:1.5.0
  • HAProxy 1.5.1
    cpe:2.3:a:haproxy:haproxy:1.5.1
  • HAProxy 1.5.2
    cpe:2.3:a:haproxy:haproxy:1.5.2
  • HAProxy 1.5.3
    cpe:2.3:a:haproxy:haproxy:1.5.3
  • HAProxy 1.5.4
    cpe:2.3:a:haproxy:haproxy:1.5.4
  • HAProxy 1.5.5
    cpe:2.3:a:haproxy:haproxy:1.5.5
  • HAProxy 1.5.6
    cpe:2.3:a:haproxy:haproxy:1.5.6
  • HAProxy 1.5.7
    cpe:2.3:a:haproxy:haproxy:1.5.7
  • HAProxy 1.5.8
    cpe:2.3:a:haproxy:haproxy:1.5.8
  • HAProxy 1.5.9
    cpe:2.3:a:haproxy:haproxy:1.5.9
  • HAProxy 1.5.10
    cpe:2.3:a:haproxy:haproxy:1.5.10
  • HAProxy 1.5.11
    cpe:2.3:a:haproxy:haproxy:1.5.11
  • HAProxy 1.5.12
    cpe:2.3:a:haproxy:haproxy:1.5.12
  • HAProxy 1.5.13
    cpe:2.3:a:haproxy:haproxy:1.5.13
  • cpe:2.3:a:haproxy:haproxy:1.6:dev
    cpe:2.3:a:haproxy:haproxy:1.6:dev
CVSS
Base: 5.0 (as of 08-07-2015 - 14:58)
Impact:
Exploitability:
CWE CWE-119
CAPEC
  • Buffer Overflow via Environment Variables
    This attack pattern involves causing a buffer overflow through manipulation of environment variables. Once the attacker finds that they can modify an environment variable, they may try to overflow associated buffers. This attack leverages implicit trust often placed in environment variables.
  • Overflow Buffers
    Buffer Overflow attacks target improper or missing bounds checking on buffer operations, typically triggered by input injected by an attacker. As a consequence, an attacker is able to write past the boundaries of allocated buffer regions in memory, causing a program crash or potentially redirection of execution as per the attackers' choice.
  • Client-side Injection-induced Buffer Overflow
    This type of attack exploits a buffer overflow vulnerability in targeted client software through injection of malicious content from a custom-built hostile service.
  • Filter Failure through Buffer Overflow
    In this attack, the idea is to cause an active filter to fail by causing an oversized transaction. An attacker may try to feed overly long input strings to the program in an attempt to overwhelm the filter (by causing a buffer overflow) and hoping that the filter does not fail securely (i.e. the user input is let into the system unfiltered).
  • MIME Conversion
    An attacker exploits a weakness in the MIME conversion routine to cause a buffer overflow and gain control over the mail server machine. The MIME system is designed to allow various different information formats to be interpreted and sent via e-mail. Attack points exist when data are converted to MIME compatible format and back.
  • Overflow Binary Resource File
    An attack of this type exploits a buffer overflow vulnerability in the handling of binary resources. Binary resources may include music files like MP3, image files like JPEG files, and any other binary file. These attacks may pass unnoticed to the client machine through normal usage of files, such as a browser loading a seemingly innocent JPEG file. This can allow the attacker access to the execution stack and execute arbitrary code in the target process. This attack pattern is a variant of standard buffer overflow attacks using an unexpected vector (binary files) to wrap its attack and open up a new attack vector. The attacker is required to either directly serve the binary content to the victim, or place it in a locale like a MP3 sharing application, for the victim to download. The attacker then is notified upon the download or otherwise locates the vulnerability opened up by the buffer overflow.
  • Buffer Overflow via Symbolic Links
    This type of attack leverages the use of symbolic links to cause buffer overflows. An attacker can try to create or manipulate a symbolic link file such that its contents result in out of bounds data. When the target software processes the symbolic link file, it could potentially overflow internal buffers with insufficient bounds checking.
  • Overflow Variables and Tags
    This type of attack leverages the use of tags or variables from a formatted configuration data to cause buffer overflow. The attacker crafts a malicious HTML page or configuration file that includes oversized strings, thus causing an overflow.
  • Buffer Overflow via Parameter Expansion
    In this attack, the target software is given input that the attacker knows will be modified and expanded in size during processing. This attack relies on the target software failing to anticipate that the expanded data may exceed some internal limit, thereby creating a buffer overflow.
  • Buffer Overflow in an API Call
    This attack targets libraries or shared code modules which are vulnerable to buffer overflow attacks. An attacker who has access to an API may try to embed malicious code in the API function call and exploit a buffer overflow vulnerability in the function's implementation. All clients that make use of the code library thus become vulnerable by association. This has a very broad effect on security across a system, usually affecting more than one software process.
  • Buffer Overflow in Local Command-Line Utilities
    This attack targets command-line utilities available in a number of shells. An attacker can leverage a vulnerability found in a command-line utility to escalate privilege to root.
Access
VectorComplexityAuthentication
NETWORK LOW NONE
Impact
ConfidentialityIntegrityAvailability
PARTIAL NONE NONE
nessus via4
  • NASL family Ubuntu Local Security Checks
    NASL id UBUNTU_USN-2668-1.NASL
    description It was discovered that HAProxy incorrectly handled certain buffers. A remote attacker could possibly use this issue to obtain sensitive information belonging to previous requests. Note that Tenable Network Security has extracted the preceding description block directly from the Ubuntu security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-02-21
    modified 2018-12-01
    plugin id 84619
    published 2015-07-08
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=84619
    title Ubuntu 14.10 / 15.04 : haproxy vulnerability (USN-2668-1)
  • NASL family Red Hat Local Security Checks
    NASL id REDHAT-RHSA-2015-2666.NASL
    description Red Hat OpenShift Enterprise release 2.2.8, which fixes one security issue, several bugs, and introduces feature enhancements, is now available. Red Hat Product Security has rated this update as having Important security impact. Common Vulnerability Scoring System (CVSS) base scores, which give detailed severity ratings, are available for each vulnerability from the CVE links in the References section. OpenShift Enterprise by Red Hat is the company's cloud computing Platform-as-a-Service (PaaS) solution designed for on-premise or private cloud deployments. The following security issue is addressed with this release : An implementation error related to the memory management of request and responses was found within HAProxy's buffer_slow_realign() function. An unauthenticated remote attacker could use this flaw to leak certain memory buffer contents from a past request or session. (CVE-2015-3281) Space precludes documenting all of the bug fixes in this advisory. See the OpenShift Enterprise Technical Notes, which will be updated shortly for release 2.2.8, for details about these changes : https://access.redhat.com/documentation/en-US/OpenShift_Enterprise/2/ html-single/Technical_Notes/index.html All OpenShift Enterprise 2 users are advised to upgrade to these updated packages.
    last seen 2019-02-21
    modified 2018-12-04
    plugin id 119366
    published 2018-12-04
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=119366
    title RHEL 6 : Red Hat OpenShift Enterprise 2.2.8 (RHSA-2015:2666)
  • NASL family FreeBSD Local Security Checks
    NASL id FREEBSD_PKG_CBFA8BD724B611E586FF14DAE9D210B8.NASL
    description HAProxy reports : A vulnerability was found when HTTP pipelining is used. In some cases, a client might be able to cause a buffer alignment issue and retrieve uninitialized memory contents that exhibit data from a past request or session. I want to address sincere congratulations to Charlie Smurthwaite of aTech Media for the really detailed traces he provided which made it possible to find the cause of this bug. Every user of 1.5-dev, 1.5.x or 1.6-dev must upgrade to 1.5.14 or latest 1.6-dev snapshot to fix this issue, or use the backport of the fix provided by their operating system vendors. CVE-2015-3281 was assigned to this bug.
    last seen 2019-02-21
    modified 2018-11-23
    plugin id 84601
    published 2015-07-08
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=84601
    title FreeBSD : haproxy -- information leak vulnerability (cbfa8bd7-24b6-11e5-86ff-14dae9d210b8)
  • NASL family Fedora Local Security Checks
    NASL id FEDORA_2015-11255.NASL
    description Security fix for CVE-2015-3281 Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-02-21
    modified 2015-10-19
    plugin id 85055
    published 2015-07-29
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=85055
    title Fedora 21 : haproxy-1.5.14-1.fc21 (2015-11255)
  • NASL family Fedora Local Security Checks
    NASL id FEDORA_2015-11267.NASL
    description Security fix for CVE-2015-3281 Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-02-21
    modified 2015-10-19
    plugin id 85056
    published 2015-07-29
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=85056
    title Fedora 22 : haproxy-1.5.14-1.fc22 (2015-11267)
  • NASL family Debian Local Security Checks
    NASL id DEBIAN_DSA-3301.NASL
    description Charlie Smurthwaite of aTech Media discovered a flaw in HAProxy, a fast and reliable load balancing reverse proxy, when HTTP pipelining is used. A client can take advantage of this flaw to cause data corruption and retrieve uninitialized memory contents that exhibit data from a past request or session.
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 84511
    published 2015-07-06
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=84511
    title Debian DSA-3301-1 : haproxy - security update
  • NASL family CentOS Local Security Checks
    NASL id CENTOS_RHSA-2015-1741.NASL
    description An updated haproxy package that fixes one security issue is now available for Red Hat Enterprise Linux 6 and 7. Red Hat Product Security has rated this update as having Important security impact. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available from the CVE link in the References section. HAProxy provides high availability, load balancing, and proxying for TCP and HTTP-based applications. An implementation error related to the memory management of requests and responses was found within HAProxy's buffer_slow_realign() function. An unauthenticated remote attacker could possibly use this flaw to leak certain memory buffer contents from a past request or session. (CVE-2015-3281) All haproxy users are advised to upgrade to this updated package, which contains a backported patch to correct this issue.
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 86509
    published 2015-10-22
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=86509
    title CentOS 6 / 7 : haproxy (CESA-2015:1741)
  • NASL family Red Hat Local Security Checks
    NASL id REDHAT-RHSA-2015-1741.NASL
    description An updated haproxy package that fixes one security issue is now available for Red Hat Enterprise Linux 6 and 7. HAProxy provides high availability, load balancing, and proxying for TCP and HTTP-based applications. An implementation error related to the memory management of request and responses was found within HAProxy's buffer_slow_realign() function. An unauthenticated, remote attacker could possibly use this flaw to leak certain memory buffer contents from a past request or session. (CVE-2015-3281) Note that, according to CVE-2015-3281, this issue only exists in HAProxy version 1.5.x prior to 1.5.14. All HAProxy users are advised to upgrade to this updated package, which contains a backported patch to correct this issue.
    last seen 2019-02-21
    modified 2018-07-26
    plugin id 85977
    published 2015-09-17
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=85977
    title RHEL 6 / 7 : haproxy 1.5 (RHSA-2015:1741)
  • NASL family Scientific Linux Local Security Checks
    NASL id SL_20150908_HAPROXY_ON_SL6_X.NASL
    description An implementation error related to the memory management of request and responses was found within HAProxy's buffer_slow_realign() function. An unauthenticated remote attacker could possibly use this flaw to leak certain memory buffer contents from a past request or session. (CVE-2015-3281)
    last seen 2019-02-21
    modified 2018-12-28
    plugin id 85866
    published 2015-09-09
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=85866
    title Scientific Linux Security Update : haproxy on SL6.x, SL7.x i386/x86_64
  • NASL family SuSE Local Security Checks
    NASL id OPENSUSE-2015-682.NASL
    description haproxy was updated to fix two security issues. These security issues were fixed : - CVE-2015-3281: The buffer_slow_realign function in HAProxy did not properly realign a buffer that is used for pending outgoing data, which allowed remote attackers to obtain sensitive information (uninitialized memory contents of previous requests) via a crafted request (bsc#937042). - Changed DH parameters to prevent Logjam attack. These non-security issues were fixed : - BUG/MAJOR: buffers: make the buffer_slow_realign() function respect output data - BUG/MINOR: ssl: fix smp_fetch_ssl_fc_session_id - MEDIUM: ssl: replace standards DH groups with custom ones - BUG/MEDIUM: ssl: fix tune.ssl.default-dh-param value being overwritten - MINOR: ssl: add a destructor to free allocated SSL ressources - BUG/MINOR: ssl: Display correct filename in error message - MINOR: ssl: load certificates in alphabetical order - BUG/MEDIUM: checks: fix conflicts between agent checks and ssl healthchecks - BUG/MEDIUM: ssl: force a full GC in case of memory shortage - BUG/MEDIUM: ssl: fix bad ssl context init can cause segfault in case of OOM. - BUG/MINOR: ssl: correctly initialize ssl ctx for invalid certificates - MINOR: ssl: add statement to force some ssl options in global. - MINOR: ssl: add fetchs 'ssl_c_der' and 'ssl_f_der' to return DER formatted certs
    last seen 2019-02-21
    modified 2015-10-28
    plugin id 86623
    published 2015-10-28
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=86623
    title openSUSE Security Update : haproxy (openSUSE-2015-682)
  • NASL family Oracle Linux Local Security Checks
    NASL id ORACLELINUX_ELSA-2015-1741.NASL
    description From Red Hat Security Advisory 2015:1741 : An updated haproxy package that fixes one security issue is now available for Red Hat Enterprise Linux 6 and 7. HAProxy provides high availability, load balancing, and proxying for TCP and HTTP-based applications. An implementation error related to the memory management of request and responses was found within HAProxy's buffer_slow_realign() function. An unauthenticated, remote attacker could possibly use this flaw to leak certain memory buffer contents from a past request or session. (CVE-2015-3281) Note that, according to CVE-2015-3281, this issue only exists in HAProxy version 1.5.x prior to 1.5.14. All HAProxy users are advised to upgrade to this updated package, which contains a backported patch to correct this issue.
    last seen 2019-02-21
    modified 2018-12-20
    plugin id 85864
    published 2015-09-09
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=85864
    title Oracle Linux 7 : haproxy (ELSA-2015-1741)
redhat via4
advisories
  • bugzilla
    id 1239072
    title CVE-2015-3281 haproxy: information leak in buffer_slow_realign()
    oval
    OR
    • AND
      • comment haproxy is earlier than 0:1.5.4-2.el6_7.1
        oval oval:com.redhat.rhsa:tst:20151741005
      • comment haproxy is signed with Red Hat redhatrelease2 key
        oval oval:com.redhat.rhsa:tst:20130868006
      • OR
        • comment Red Hat Enterprise Linux 6 Client is installed
          oval oval:com.redhat.rhsa:tst:20100842001
        • comment Red Hat Enterprise Linux 6 Server is installed
          oval oval:com.redhat.rhsa:tst:20100842002
        • comment Red Hat Enterprise Linux 6 Workstation is installed
          oval oval:com.redhat.rhsa:tst:20100842003
        • comment Red Hat Enterprise Linux 6 ComputeNode is installed
          oval oval:com.redhat.rhsa:tst:20100842004
    • AND
      • comment haproxy is earlier than 0:1.5.4-4.el7_1.1
        oval oval:com.redhat.rhsa:tst:20151741011
      • comment haproxy is signed with Red Hat redhatrelease2 key
        oval oval:com.redhat.rhsa:tst:20130868006
      • OR
        • comment Red Hat Enterprise Linux 7 Client is installed
          oval oval:com.redhat.rhsa:tst:20140675001
        • comment Red Hat Enterprise Linux 7 Server is installed
          oval oval:com.redhat.rhsa:tst:20140675002
        • comment Red Hat Enterprise Linux 7 Workstation is installed
          oval oval:com.redhat.rhsa:tst:20140675003
        • comment Red Hat Enterprise Linux 7 ComputeNode is installed
          oval oval:com.redhat.rhsa:tst:20140675004
    rhsa
    id RHSA-2015:1741
    released 2015-09-08
    severity Important
    title RHSA-2015:1741: haproxy security update (Important)
  • rhsa
    id RHSA-2015:2666
rpms
  • haproxy-0:1.5.4-2.el6_7.1
  • haproxy-0:1.5.4-4.el7_1.1
refmap via4
bid 75554
confirm
debian DSA-3301
suse
  • SUSE-SU-2015:1663
  • openSUSE-SU-2015:1831
ubuntu USN-2668-1
Last major update 27-12-2016 - 21:59
Published 06-07-2015 - 11:59
Back to Top