CVE-2022-4891 Sisimai string.rb to_plain redos

Low 3.5 Published Updated

An attacker can cause a denial of service in the Sisimai Ruby library by triggering inefficient regular expression complexity in the to_plain function.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2022-4891?

CVE-2022-4891 is a low-severity denial of service vulnerability in Sisimai, published on 17 Jan 2023. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

A vulnerability has been found in Sisimai up to 4.25.14p11 and classified as problematic. This vulnerability affects the function to_plain of the file lib/sisimai/string.rb. The manipulation leads to inefficient regular expression complexity. The exploit has been disclosed to the public and may be used. Upgrading to version 4.25.14p12 is able to address this issue. The name of the patch is 51fe2e6521c9c02b421b383943dc9e4bbbe65d4e. It is recommended to upgrade the affected component. The identifier of this vulnerability is VDB-218452.

Weakness: CWE-1333

Which versions are affected by CVE-2022-4891?

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

PackageAffectedFixed in
sisimai RubyGemsAll versions4.25.14p12
sisimai RubyGemsAll versions4.25.14p12

Products include Libsisimai Sisimai.

How do I fix CVE-2022-4891?

Upgrade sisimai to 4.25.14p12 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2022-4891 being exploited?

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

Sources

Also known as GHSA-vm74-j4wq-82xj.

Is CVE-2022-4891 in your software?

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

Check your SBOMs for free