Virtual Event: Threat Detection and Incident Response Summit - Watch Sessions
Connect with us

Hi, what are you looking for?


Cloud Security

No Root Password for 20% of Popular Docker Containers

An analysis of 1,000 popular Docker containers revealed that nearly 20% of them have nulled root passwords, Kenna Security says. 

An analysis of 1,000 popular Docker containers revealed that nearly 20% of them have nulled root passwords, Kenna Security says. 

The investigation rooted from a recent Talos report showing that the official Alpine Linux Docker images had been shipping with this security oversight since December 2015. Alpine has already addressed the vulnerability. 

With a CVSS score of 9.8 and rated Critical, the issue was that, in the affected images, the /etc/shadow file had a blank field instead of the encrypted password, meaning that the system considered the root user as having no password.

“Due to the nature of this issue, systems deployed using affected versions of the Alpine Linux container that utilize Linux PAM, or some other mechanism that uses the system shadow file as an authentication database, may accept a NULL password for the root user,” Talos said.

Based on these findings, Jerry Gamblin, Principal Security Engineer, Kenna Security, decided to investigate whether other containers had null passwords too. 

For that, he wrote a script to check the top 1,000 docker containers from the Docker store, and discovered that roughly 20% of had null root passwords. 

Initially, the script found over 200 of these containers with nulled root passwords, but the results contained duplicate containers. A second run showed that 157 (19.75%) of 794 containers had null passwords for root. 

Advertisement. Scroll to continue reading.

After some tweaks, the script revealed that, of 1,000 containers, 194 (19.4%) were in the same situation. 

The most popular container on the list is kylemanna/openvpn, with over 10,000,000 pulls. govuk/governmentpaas, hashicorp, microsoft, monsanto, and mesosphere are also on the list.

As Gamblin points out, these containers are not necessarily vulnerable, as other conditions must also be met for exploitation. In Alpine Linux’ case, the containers were only vulnerable if the shadow and linux-pam packages were installed.

“Just because a container has no root password does not mean that it is automatically vulnerable. These findings could lead to configuration-based vulnerabilities in certain situations, as was the case with this the Alpine Linux vulnerability,” the researchers notes.

To ensure that systems remain protected, one should avoid deploying containers that allow users to authenticate as root, as this is also outside the scope of ‘best practices’, Gamblin points out. 

“All of which is to say that many people believe that containers offer more security because they extend the trend of virtualization. I’d say that this might be true, but […] there’s also a chance that containers could lead to unforeseen security concerns,” the researcher concludes. 

Related: Hard-Coded Credentials Found in Alpine Linux Docker Images

Related: Exploit Code Published for Recent Container Escape Vulnerability

Written By

Ionut Arghire is an international correspondent for SecurityWeek.

Click to comment

Daily Briefing Newsletter

Subscribe to the SecurityWeek Email Briefing to stay informed on the latest threats, trends, and technology, along with insightful columns from industry experts.

SecurityWeek’s Threat Detection and Incident Response Summit brings together security practitioners from around the world to share war stories on breaches, APT attacks and threat intelligence.


Securityweek’s CISO Forum will address issues and challenges that are top of mind for today’s security leaders and what the future looks like as chief defenders of the enterprise.


Expert Insights

Related Content

Application Security

Cycode, a startup that provides solutions for protecting software source code, emerged from stealth mode on Tuesday with $4.6 million in seed funding.

Cloud Security

Microsoft and Proofpoint are warning organizations that use cloud services about a recent consent phishing attack that abused Microsoft’s ‘verified publisher’ status.

Application Security

A CSRF vulnerability in the source control management (SCM) service Kudu could be exploited to achieve remote code execution in multiple Azure services.

Cloud Security

VMware vRealize Log Insight vulnerability allows an unauthenticated attacker to take full control of a target system.

Application Security

Fortinet on Monday issued an emergency patch to cover a severe vulnerability in its FortiOS SSL-VPN product, warning that hackers have already exploited the...

Application Security

Many developers and security people admit to having experienced a breach effected through compromised API credentials.

Cloud Security

Cloud Disaster Recovery - Ingredients for a Recipe that Saves Money and Offers a Safe, More Secure Situation with Greater Accessibility

Application Security

Virtualization technology giant VMware on Tuesday shipped urgent updates to fix a trio of security problems in multiple software products, including a virtual machine...