Debian DLA-3034-1 : haproxy - LTS security update

high Nessus Plugin ID 161700

Synopsis

The remote Debian host is missing one or more security-related updates.

Description

The remote Debian 9 host has packages installed that are affected by multiple vulnerabilities as referenced in the dla-3034 advisory.

- An out-of-bounds read in dns_validate_dns_response in dns.c was discovered in HAProxy through 1.8.14. Due to a missing check when validating DNS responses, remote attackers might be able read the 16 bytes corresponding to an AAAA record from the non-initialized part of the buffer, possibly accessing anything that was left on the stack, or even past the end of the 8193-byte buffer, depending on the value of accepted_payload_size. (CVE-2018-20102)

- An issue was discovered in dns.c in HAProxy through 1.8.14. In the case of a compressed pointer, a crafted packet can trigger infinite recursion by making the pointer point to itself, or create a long chain of valid pointers resulting in stack exhaustion. (CVE-2018-20103)

- A flaw was found in HAProxy before 2.0.6. In legacy mode, messages featuring a transfer-encoding header missing the chunked value were not being correctly rejected. The impact was limited but if combined with the http-reuse always setting, it could be used to help construct an HTTP request smuggling attack against a vulnerable component employing a lenient parser that would ignore the content-length header as soon as it saw a transfer-encoding one (even if not entirely valid according to the specification).
(CVE-2019-18277)

Note that Nessus has not tested for these issues but has instead relied only on the application's self-reported version number.

Solution

Upgrade the haproxy packages.

For Debian 9 stretch, these problems have been fixed in version 1.7.5-2+deb9u1.

See Also

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=916308

https://security-tracker.debian.org/tracker/source-package/haproxy

https://www.debian.org/lts/security/2022/dla-3034

https://security-tracker.debian.org/tracker/CVE-2018-20102

https://security-tracker.debian.org/tracker/CVE-2018-20103

https://security-tracker.debian.org/tracker/CVE-2019-18277

https://packages.debian.org/source/stretch/haproxy

Plugin Details

Severity: High

ID: 161700

File Name: debian_DLA-3034.nasl

Version: 1.2

Type: local

Agent: unix

Published: 5/31/2022

Updated: 5/31/2022

Supported Sensors: Frictionless Assessment Agent, Nessus Agent

Risk Information

VPR

Risk Factor: Low

Score: 3.6

CVSS v2

Risk Factor: Medium

Base Score: 5

Temporal Score: 3.7

Vector: AV:N/AC:L/Au:N/C:P/I:N/A:N

Temporal Vector: E:U/RL:OF/RC:C

CVSS Score Source: CVE-2018-20102

CVSS v3

Risk Factor: High

Base Score: 7.5

Temporal Score: 6.5

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Temporal Vector: E:U/RL:O/RC:C

CVSS Score Source: CVE-2019-18277

Vulnerability Information

CPE: p-cpe:/a:debian:debian_linux:haproxy, p-cpe:/a:debian:debian_linux:haproxy-doc, p-cpe:/a:debian:debian_linux:vim-haproxy, cpe:/o:debian:debian_linux:9.0

Required KB Items: Host/local_checks_enabled, Host/Debian/release, Host/Debian/dpkg-l

Exploit Ease: No known exploits are available

Patch Publication Date: 5/30/2022

Vulnerability Publication Date: 12/12/2018

Reference Information

CVE: CVE-2018-20102, CVE-2018-20103, CVE-2019-18277