---
title: 'USN-5610-1: rust-regex vulnerability | Ubuntu security notices'
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/notices/USN-5610-1
---

1. [Ubuntu Security Notices](https://ubuntu.com/security/notices)
2. USN-5610-1

---

# USN-5610-1: rust-regex vulnerability

Publication date

14 September 2022

Overview

rust-regex could be made to crash if it received specially crafted
input.

Releases

[22.04 LTS](https://ubuntu.com/security/notices?release=jammy)
[20.04 LTS](https://ubuntu.com/security/notices?release=focal)

---

Open side navigation

## Packages

* [rust-regex](https://ubuntu.com/security/cves?package=rust-regex) - Regular expressions for Rust

## Details

Addison Crump discovered that rust-regex did not properly limit
the complexity of the regular expressions (regex) it parses.
An attacker could possibly use this issue to cause a denial of
service.

## Update instructions

In general, a standard system update will make all the necessary changes.

[Learn more about how to get the fixes.](https://ubuntu.com/security/cves/about#security)

The problem can be corrected by updating your system to the following package versions:

| Ubuntu Release | Package Version |
| --- | --- |
| 22.04 LTS jammy | [librust-regex-dev](https://launchpad.net/ubuntu/+source/rust-regex) –  [1.5.4-1ubuntu0.1](https://launchpad.net/ubuntu/+source/rust-regex/1.5.4-1ubuntu0.1) | | |
| 20.04 LTS focal | [librust-regex-dev](https://launchpad.net/ubuntu/+source/rust-regex) –  [1.2.1-3ubuntu0.1](https://launchpad.net/ubuntu/+source/rust-regex/1.2.1-3ubuntu0.1) | | |

---

### Reduce your security exposure

Ubuntu Pro provides ten-year security coverage to 25,000+ packages in Main and Universe repositories, and it is free for up to five machines.

[Get Ubuntu Pro](https://ubuntu.com/pro)

## References

* [CVE-2022-24713](https://ubuntu.com/security/CVE-2022-24713)

## Related notices

* [USN-5370-1](https://ubuntu.com/security/notices/USN-5370-1)
