CVE-2014-4992
Description
lib/cap-strap/helpers.rb in the cap-strap gem 0.1.5 for Ruby places credentials on the useradd command line, which allows local users to obtain sensitive information by listing the process.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
The cap-strap gem 0.1.5 for Ruby places credentials on the useradd command line, exposing them to local users via process listing.
Vulnerability
The cap-strap gem version 0.1.5 for Ruby contains a vulnerability in lib/cap-strap/helpers.rb where the create_user method constructs a useradd command line that includes the password argument (-p). The password is passed directly as a parameter to the command, making it visible in the system process table to any local user who lists running processes. Additionally, the advisory notes that the same hard-coded salt 'sa' is used every time for the password crypt hash [1][2][3][4].
Exploitation
An attacker needs only local access to the system where the gem is executed. By running a process listing command (e.g., ps aux or viewing /proc//cmdline), the attacker can observe the full command line of any useradd process spawned by the gem, thereby capturing the plaintext password passed as the -p argument. No authentication or user interaction beyond local shell access is required [1][3][4].
Impact
Successful exploitation leads to disclosure of the password supplied to the create_user function. Since passwords are often reused or grant access to other resources, this is a direct compromise of confidentiality. The attacker gains no elevated privileges on the system itself, but may use the disclosed credential to authenticate as the affected user or to access external services where the same password is used [1][2][3].
Mitigation
The cap-strap gem version 0.1.5 is the only affected version. No fixed version has been released; the gem appears to be unmaintained. The recommended mitigation is to avoid using this gem, or to modify the source code to pass the password via a secure channel (e.g., stdin or a hashed value) rather than on the command line. There is no entry in the CISA Known Exploited Vulnerabilities (KEV) catalog [1][2][3][4].
AI Insight generated on May 22, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
2- ghsa-coords
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
6- github.com/advisories/GHSA-pcm6-g2qp-9gw8ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2014-4992ghsaADVISORY
- www.openwall.com/lists/oss-security/2014/07/07/9ghsamailing-listx_refsource_MLISTWEB
- www.openwall.com/lists/oss-security/2014/07/17/5ghsamailing-listx_refsource_MLISTWEB
- www.vapid.dhs.org/advisories/cap-strap-0.1.5.htmlghsax_refsource_MISCWEB
- github.com/rubysec/ruby-advisory-db/blob/master/gems/cap-strap/CVE-2014-4992.ymlghsaWEB
News mentions
0No linked articles in our index yet.