CVE-2014-4996 VladTheEnterprising allows local users to write to arbitrary files via a symlink attack

Medium 5.5 Published Updated

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.

PackageAffectedFixed in
VladTheEnterprising RubyGemsAll versions to 0.2None
VladTheEnterprising RubyGemsAll versions to 0.2None

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.

Sources

Also known as GHSA-x4vj-279x-qwf2.

Is CVE-2014-4996 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free