CVE-2017-18641
LXC vulnerability analysis and mitigation

Overview

In LXC (Linux Containers) 2.0, multiple template scripts were found to be downloading code over insecure HTTP connections and lacking digital signature verification before executing the code to bootstrap containers. This vulnerability was assigned CVE-2017-18641 and was publicly disclosed in February 2020 (NVD, Debian Security).

Technical details

The vulnerability received a CVSS v3.1 Base Score of 8.1 (HIGH) with vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H. The issue affected multiple template scripts including those for CentOS, Cirros, Fedora, Gentoo, OpenMandriva, Oracle, Plamo, SparcLinux, and VoidLinux. These templates either downloaded content over plain HTTP or disabled package signature verification using flags like --nogpgcheck for RPM-based systems (Launchpad Bug).

Impact

The vulnerability could allow a man-in-the-middle attacker, web proxy administrator, or other malicious actors to install and execute arbitrary code with root privileges within the container during the container creation process (Launchpad Bug).

Mitigation and workarounds

The LXC project addressed this issue by moving template scripts to a separate repository (lxc-templates) and developing a new tool called distrobuilder that implements proper HTTPS and GPG support. The new system uses public YAML definitions and either relies on HTTPS for base tarball downloads or includes custom GPG keyrings. All official LXC images are now built using distrobuilder with proper security measures (Launchpad Bug).

Additional resources


SourceThis report was generated using AI

Related LXC vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2016-8649CRITICAL9.1
  • LXCLXC
  • python3-lxc
NoYesMay 01, 2017
CVE-2019-5736HIGH8.6
  • DockerDocker
  • lxc
NoYesFeb 11, 2019
CVE-2017-18641HIGH8.1
  • LXCLXC
  • lxc
NoYesFeb 10, 2020
CVE-2022-47952LOW3.3
  • LXCLXC
  • pam_cgfs
NoYesJan 01, 2023
CVE-2018-6556LOW3.3
  • LXCLXC
  • liblxc1
NoYesAug 10, 2018

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management