CVE-2014-4996 VladTheEnterprising allows local users to write to arbitrary files via a symlink attack
Local attackers can write to arbitrary files via symlink attacks on temporary MySQL config files in the VladTheEnterprising Ruby gem.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2014-4996?
CVE-2014-4996 is a medium-severity path traversal vulnerability in n/a, published on 10 Jan 2018. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
lib/vlad/dba/mysql.rb in the VladTheEnterprising gem 0.2 for Ruby allows local users to write to arbitrary files via a symlink attack on /tmp/my.cnf.#{target_host}.
Weakness: CWE-59
Which versions are affected by CVE-2014-4996?
2 open source packages ship an affected version, including VladTheEnterprising. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
VladTheEnterprising RubyGems | All versions to 0.2 | None |
VladTheEnterprising RubyGems | All versions to 0.2 | None |
Products include Vladtheenterprising Project Vladtheenterprising.
How do I fix CVE-2014-4996?
No fix has been published for CVE-2014-4996 yet. Limit exposure of the affected software until one is available.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2014-4996 being exploited?
There is no known exploitation of CVE-2014-4996 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as GHSA-x4vj-279x-qwf2.