---
title: "CVE-2005-2491\n    | Ubuntu"
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/CVE-2005-2491?format=md
keywords: index, follow
---

# CVE-2005-2491

Publication date 23 August 2005

Last updated 17 July 2025

---

Ubuntu priority

**Medium**

[Why this priority?](https://ubuntu.com/security/cves/about#priority )

Toggle side navigation

## Description

Integer overflow in pcre\_compile.c in Perl Compatible Regular Expressions
(PCRE) before 6.2, as used in multiple products such as Python, Ethereal,
and PHP, allows attackers to execute arbitrary code via quantifier values
in regular expressions, which leads to a heap-based buffer overflow.

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| apache2 | 7.04 feisty | Not affected |
| 6.10 edgy | Not affected |
| 6.06 LTS dapper | Not affected |
| gnumeric | 7.04 feisty | Not affected |
| 6.10 edgy | Not affected |
| 6.06 LTS dapper | Not affected |
| pcre3 | 7.04 feisty | Fixed 6.4-1.1ubuntu4 |
| 6.10 edgy | Fixed 6.4-1.1ubuntu4 |
| 6.06 LTS dapper | Fixed 6.4-1.1ubuntu4 |
| python2.2 | 7.04 feisty | Not in release |
| 6.10 edgy | Not in release |
| 6.06 LTS dapper | Fixed 2.2.3dfsg-4 |
| python2.3 | 7.04 feisty | Not in release |
| 6.10 edgy | Not in release |
| 6.06 LTS dapper | Fixed 2.3.5-9ubuntu1.2 |
| python2.4 | 7.04 feisty | Not affected |
| 6.10 edgy | Not affected |
| 6.06 LTS dapper | Not affected |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)

## References

* [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2005-2491)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2005-2491)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2005-2491)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2005-2491)

### Related Ubuntu Security Notices (USN)

+ [USN-173-2](https://usn.ubuntu.com/USN-173-2)
+ PCRE vulnerability
+ 25 August 2005

+ [USN-173-4](https://usn.ubuntu.com/USN-173-4)
+ PCRE vulnerabilities
+ 31 August 2005

+ [USN-173-1](https://usn.ubuntu.com/USN-173-1)
+ PCRE vulnerability
+ 24 August 2005

### Other references

* <https://www.cve.org/CVERecord?id=CVE-2005-2491>
