Privilege Escalation Vulnerability in OpenSSH - CVE-2016-10012

openssh Updated 02 Oct 2025

Summary

05/01/2017
N/A
Yes i
High
7.8

ALPINE-CVE-2016-10012: The shared memory manager (associated with pre-authentication compression) in sshd in OpenSSH before 7.4 does not ensure that a bounds check is enforced by all compilers, which might allows local users to gain privileges... Affects openssh versions < 7.4_p1-r0. Fixed in 7.4_p1-r0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

OpenSSH is a widely used open-source implementation of the SSH (Secure Shell) protocol, which provides secure remote login and other secure network services over an insecure network. It is known for its strong security features, including encryption and authentication. However, certain versions of OpenSSH prior to 7.4 are vulnerable to a privilege escalation issue due to improper bounds checking in the shared memory manager, particularly related to pre-authentication compression.

Vulnerability Detail

The vulnerability, identified as CVE-2016-10012, originates from the shared memory manager in sshd (the OpenSSH server daemon). It fails to enforce a bounds check across all compilers, which could allow local users to exploit this weakness and gain elevated privileges by leveraging access to a sandboxed privilege-separation process. This could lead to unauthorized access and control over the system, posing significant security risks.

How To Fix

Minimum fixed version

7.4_p1-r0

This is the first release that contains the fix.

sudo apk add --upgrade openssh

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, consider disabling pre-authentication compression in your SSH configuration. This can be done by adding the following line to your sshd_config file: Compression no. After making changes, restart the SSH service with service sshd restart.

Conclusion

CVE-2016-10012 represents a significant security risk for systems running vulnerable versions of OpenSSH. It is crucial to update to the patched version to mitigate the risk of privilege escalation. Additionally, users should consider implementing workarounds until they can apply the necessary updates.

See every vulnerability recorded for openssh →

Share this vulnerability

FAQ

CVE-2016-10012 is a vulnerability in OpenSSH that allows local users to escalate privileges due to improper bounds checking in the shared memory manager.

OpenSSH versions prior to 7.4 are affected by this vulnerability.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

The CVSS score for CVE-2016-10012 is 7.8, indicating a high severity level.

If an immediate update is not possible, consider disabling pre-authentication compression as a temporary workaround.

Related vulnerabilities

Recent vulnerabilities recorded for openssh.

How To Fix

Minimum fixed version

7.4_p1-r0

This is the first release that contains the fix.

sudo apk add --upgrade openssh

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback