Security mailing lists by PureSourceCode

CVE-2022-31100

MEDIUM 6.5CVSS 3.1

Reachable Assertion in rulex

rulex is a new, portable, regular expression language. When parsing untrusted rulex expressions, rulex may crash, possibly enabling a Denial of Service attack. This happens when the expression contains a multi-byte UTF-8 code point in a string literal or after a backslash, because rulex tries to slice into the code point and panics as a result. This is a security concern for you, if your service parses untrusted rulex expressions (expressions provided by an untrusted user), and your service becomes unavailable when the thread running rulex panics. The crashes are fixed in version 0.4.3. Affected users are advised to update to this version. The only known workaround for this issue is to assume that regular expression parsing will panic and to add logic to catch panics.

Published
27 Jun 2022
Last modified
12 Oct 2026
Assigned by
security-advisories@github.com
NVD status
Modified
Weakness
CWE-617
Also known as
GHSA-8v9w-p43c-r885RUSTSEC-2022-0031
Sources
NVDJSONOSV GHSA-8v9w-p43c-r885JSONOSV RUSTSEC-2022-0031JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 MEDIUM 6.5 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 6.5 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
OSV GitHub CVSS 3.1 MEDIUM 6.5 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 4.0 AV:N/AC:L/Au:S/C:N/I:N/A:P

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD pomsky-lang pomsky
cpe:2.3:a:pomsky-lang:pomsky:*:*:*:*:*:rust:*:*
< 0.4.3 0.4.3
OSV crates.io rulex < 0.4.3 0.4.3
OSV crates.io rulex >= 0.0.0-0, < 0.4.3 0.4.3

References

History

  • 25 Nov 2026 20:34 UTC · NVD: first stored (published 27 Jun 2022)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 21 May 2022)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 21 Jun 2022)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.