CVE-2019-16676 Improper Input Validation in simple_form

Critical 9.8 Published Updated

Attackers can execute arbitrary code by supplying a malicious string that is invoked as a method call in the Simple Form library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2019-16676?

CVE-2019-16676 is a critical code injection vulnerability in n/a, published on 30 Sep 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Plataformatec Simple Form has Incorrect Access Control in file_method? in lib/simple_form/form_builder.rb, because a user-supplied string is invoked as a method call.

Weakness: CWE-20

Which versions are affected by CVE-2019-16676?

2 open source packages ship an affected version, including simple_form. It affects 1 product.

PackageAffectedFixed in
simple_form RubyGemsAll versions5.0.0
simple_form RubyGemsAll versions5.0.0

Products include Plataformatec Simple Form.

How do I fix CVE-2019-16676?

Upgrade simple_form to 5.0.0 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2019-16676 being exploited?

There is no known exploitation of CVE-2019-16676 in the wild and no public exploit code.

Sources

Also known as GHSA-r74q-gxcg-73hx, UBUNTU-CVE-2019-16676.

Is CVE-2019-16676 in your software?

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

Check your SBOMs for free