GHSA-8vfg-2r28-hvhj: Crass: Non-ASCII characters cause superlinear CPU consumption

Published Oct 29, 2026
·
Updated

Impact

When parsing an input containing non-ASCII characters, inefficiencies in how Crass tracks the positions of multi-byte characters result in superlinear parsing time. An attacker-controlled input consisting of many non-ASCII characters could cause excessive CPU consumption and potentially denial of service.

Patches

This is fixed in Crass 1.0.7.

Workarounds

Avoid passing non-ASCII input to Crass. Or cultivate patience.

Affected Software

1 affected componentFixes available
rubygems/crass<1.0.7
1.0.7

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade rubygems/crass to a version that resolves this vulnerability.

    Fixed in 1.0.7
  2. Upgrade

    Upgrade Crass to a version that resolves this vulnerability.

    Fixed in 1.0.7
  3. Compensating control

    Avoid passing non-ASCII input to Crass.

Event History

Oct 29, 2026
Advisory Published
via GitHub·04:35 PM
Data Sourced
via GitHub·04:35 PM
DescriptionWeaknessAffected Software
Data Sourced
via OSV·04:35 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

Who is exposed to this issue?

Applications that pass attacker-controlled input containing non-ASCII characters to Crass are exposed to excessive CPU consumption. The impact may include denial of service through superlinear parsing time.

2

What does an attacker need to exploit it?

An attacker needs to provide input containing many non-ASCII characters for Crass to parse. No privileges or user interaction are indicated by the provided severity vector.

3

Which versions contain the fix?

The issue is fixed in Crass 1.0.7.

4

What can be done if upgrading is not immediately possible?

Avoid passing non-ASCII input to Crass. This reduces exposure to the inefficient multi-byte character position tracking behavior.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203