Several vulnerabilities have been found in the Apache HTTP server.
CVE-2018-17189 Gal Goldshtein of F5 Networks discovered a denial of service vulnerability in mod_http2. By sending malformed requests, the http/2 stream for that request unnecessarily occupied a server thread cleaning up incoming data, resulting in denial of service.
CVE-2018-17199 Diego Angulo from ImExHS discovered that mod_session_cookie does not respect expiry time.
CVE-2019-0196 Craig Young discovered that the http/2 request handling in mod_http2 could be made to access freed memory in string comparison when determining the method of a request and thus process the request incorrectly.
CVE-2019-0211 Charles Fol discovered a privilege escalation from the less-privileged child process to the parent process running as root.
CVE-2019-0217 A race condition in mod_auth_digest when running in a threaded server could allow a user with valid credentials to authenticate using another username, bypassing configured access control restrictions. The issue was discovered by Simon Kappel.
CVE-2019-0220 Bernhard Lorenz of Alpha Strike Labs GmbH reported that URL normalizations were inconsistently handled. When the path component of a request URL contains multiple consecutive slashes (‘/’), directives such as LocationMatch and RewriteRule must account for duplicates in regular expressions while other aspects of the servers processing will implicitly collapse them.
#
# (C) Tenable Network Security, Inc.
#
# The descriptive text and package checks in this plugin were
# extracted from Debian Security Advisory DSA-4422. The text
# itself is copyright (C) Software in the Public Interest, Inc.
#
include("compat.inc");
if (description)
{
script_id(123691);
script_version("1.9");
script_set_attribute(attribute:"plugin_modification_date", value:"2022/12/06");
script_cve_id("CVE-2018-17189", "CVE-2018-17199", "CVE-2019-0196", "CVE-2019-0211", "CVE-2019-0217", "CVE-2019-0220");
script_xref(name:"DSA", value:"4422");
script_xref(name:"CISA-KNOWN-EXPLOITED", value:"2022/05/03");
script_xref(name:"CEA-ID", value:"CEA-2019-0203");
script_name(english:"Debian DSA-4422-1 : apache2 - security update");
script_summary(english:"Checks dpkg output for the updated package");
script_set_attribute(
attribute:"synopsis",
value:"The remote Debian host is missing a security-related update."
);
script_set_attribute(
attribute:"description",
value:
"Several vulnerabilities have been found in the Apache HTTP server.
- CVE-2018-17189
Gal Goldshtein of F5 Networks discovered a denial of
service vulnerability in mod_http2. By sending malformed
requests, the http/2 stream for that request
unnecessarily occupied a server thread cleaning up
incoming data, resulting in denial of service.
- CVE-2018-17199
Diego Angulo from ImExHS discovered that
mod_session_cookie does not respect expiry time.
- CVE-2019-0196
Craig Young discovered that the http/2 request handling
in mod_http2 could be made to access freed memory in
string comparison when determining the method of a
request and thus process the request incorrectly.
- CVE-2019-0211
Charles Fol discovered a privilege escalation from the
less-privileged child process to the parent process
running as root.
- CVE-2019-0217
A race condition in mod_auth_digest when running in a
threaded server could allow a user with valid
credentials to authenticate using another username,
bypassing configured access control restrictions. The
issue was discovered by Simon Kappel.
- CVE-2019-0220
Bernhard Lorenz of Alpha Strike Labs GmbH reported that
URL normalizations were inconsistently handled. When the
path component of a request URL contains multiple
consecutive slashes ('/'), directives such as
LocationMatch and RewriteRule must account for
duplicates in regular expressions while other aspects of
the servers processing will implicitly collapse them."
);
script_set_attribute(
attribute:"see_also",
value:"https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=920302"
);
script_set_attribute(
attribute:"see_also",
value:"https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=920303"
);
script_set_attribute(
attribute:"see_also",
value:"https://security-tracker.debian.org/tracker/CVE-2018-17189"
);
script_set_attribute(
attribute:"see_also",
value:"https://security-tracker.debian.org/tracker/CVE-2018-17199"
);
script_set_attribute(
attribute:"see_also",
value:"https://security-tracker.debian.org/tracker/CVE-2019-0196"
);
script_set_attribute(
attribute:"see_also",
value:"https://security-tracker.debian.org/tracker/CVE-2019-0211"
);
script_set_attribute(
attribute:"see_also",
value:"https://security-tracker.debian.org/tracker/CVE-2019-0217"
);
script_set_attribute(
attribute:"see_also",
value:"https://security-tracker.debian.org/tracker/CVE-2019-0220"
);
script_set_attribute(
attribute:"see_also",
value:"https://security-tracker.debian.org/tracker/source-package/apache2"
);
script_set_attribute(
attribute:"see_also",
value:"https://packages.debian.org/source/stretch/apache2"
);
script_set_attribute(
attribute:"see_also",
value:"https://www.debian.org/security/2019/dsa-4422"
);
script_set_attribute(
attribute:"solution",
value:
"Upgrade the apache2 packages.
For the stable distribution (stretch), these problems have been fixed
in version 2.4.25-3+deb9u7.
This update also contains bug fixes that were scheduled for inclusion
in the next stable point release. This includes a fix for a regression
caused by a security fix in version 2.4.25-3+deb9u6."
);
script_set_cvss_base_vector("CVSS2#AV:L/AC:L/Au:N/C:C/I:C/A:C");
script_set_cvss_temporal_vector("CVSS2#E:H/RL:OF/RC:C");
script_set_cvss3_base_vector("CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H");
script_set_cvss3_temporal_vector("CVSS:3.0/E:H/RL:O/RC:C");
script_set_attribute(attribute:"cvss_score_source", value:"CVE-2019-0211");
script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
script_set_attribute(attribute:"exploit_available", value:"true");
script_set_attribute(attribute:"plugin_type", value:"local");
script_set_attribute(attribute:"cpe", value:"p-cpe:/a:debian:debian_linux:apache2");
script_set_attribute(attribute:"cpe", value:"cpe:/o:debian:debian_linux:9.0");
script_set_attribute(attribute:"vuln_publication_date", value:"2019/01/30");
script_set_attribute(attribute:"patch_publication_date", value:"2019/04/03");
script_set_attribute(attribute:"plugin_publication_date", value:"2019/04/04");
script_set_attribute(attribute:"generated_plugin", value:"current");
script_end_attributes();
script_category(ACT_GATHER_INFO);
script_copyright(english:"This script is Copyright (C) 2019-2022 and is owned by Tenable, Inc. or an Affiliate thereof.");
script_family(english:"Debian Local Security Checks");
script_dependencies("ssh_get_info.nasl");
script_require_keys("Host/local_checks_enabled", "Host/Debian/release", "Host/Debian/dpkg-l");
exit(0);
}
include("audit.inc");
include("debian_package.inc");
if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
if (!get_kb_item("Host/Debian/release")) audit(AUDIT_OS_NOT, "Debian");
if (!get_kb_item("Host/Debian/dpkg-l")) audit(AUDIT_PACKAGE_LIST_MISSING);
flag = 0;
if (deb_check(release:"9.0", prefix:"apache2", reference:"2.4.25-3+deb9u7")) flag++;
if (deb_check(release:"9.0", prefix:"apache2-bin", reference:"2.4.25-3+deb9u7")) flag++;
if (deb_check(release:"9.0", prefix:"apache2-data", reference:"2.4.25-3+deb9u7")) flag++;
if (deb_check(release:"9.0", prefix:"apache2-dbg", reference:"2.4.25-3+deb9u7")) flag++;
if (deb_check(release:"9.0", prefix:"apache2-dev", reference:"2.4.25-3+deb9u7")) flag++;
if (deb_check(release:"9.0", prefix:"apache2-doc", reference:"2.4.25-3+deb9u7")) flag++;
if (deb_check(release:"9.0", prefix:"apache2-ssl-dev", reference:"2.4.25-3+deb9u7")) flag++;
if (deb_check(release:"9.0", prefix:"apache2-suexec-custom", reference:"2.4.25-3+deb9u7")) flag++;
if (deb_check(release:"9.0", prefix:"apache2-suexec-pristine", reference:"2.4.25-3+deb9u7")) flag++;
if (deb_check(release:"9.0", prefix:"apache2-utils", reference:"2.4.25-3+deb9u7")) flag++;
if (flag)
{
if (report_verbosity > 0) security_hole(port:0, extra:deb_report_get());
else security_hole(0);
exit(0);
}
else audit(AUDIT_HOST_NOT, "affected");
Vendor | Product | Version | CPE |
---|---|---|---|
debian | debian_linux | apache2 | p-cpe:/a:debian:debian_linux:apache2 |
debian | debian_linux | 9.0 | cpe:/o:debian:debian_linux:9.0 |
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-17189
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-17199
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-0196
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-0211
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-0217
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-0220
bugs.debian.org/cgi-bin/bugreport.cgi?bug=920302
bugs.debian.org/cgi-bin/bugreport.cgi?bug=920303
packages.debian.org/source/stretch/apache2
security-tracker.debian.org/tracker/CVE-2018-17189
security-tracker.debian.org/tracker/CVE-2018-17199
security-tracker.debian.org/tracker/CVE-2019-0196
security-tracker.debian.org/tracker/CVE-2019-0211
security-tracker.debian.org/tracker/CVE-2019-0217
security-tracker.debian.org/tracker/CVE-2019-0220
security-tracker.debian.org/tracker/source-package/apache2
www.debian.org/security/2019/dsa-4422