Bug 2405311

Summary: PCRE2 10.45 - CVD-2025-58080
Product: [Fedora] Fedora Reporter: Lewis <redhat.reviver336>
Component: pcre2Assignee: Lukas Javorsky <ljavorsk>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 42CC: ljavorsk, mschorm
Target Milestone: ---Keywords: RFE, Upgrades
Target Release: ---Flags: ljavorsk: mirror+
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: pcre2-10.46-1.fc42 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-10-28 01:30:10 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Lewis 2025-10-21 10:53:19 UTC
Fedora 42's `pcre2` package (10.45-1) has a known CVE (https://app.opencve.io/cve/CVE-2025-58050). RedHat are tracking the CVE (https://access.redhat.com/security/cve/cve-2025-58050) but it has not affected RHEL 7 > 10. 

The CVE is reported to only impact 10.45. Fedora 41 is using 10.44, Fedora 43 & Rawhide are using 10.46, both versions are reported to be unaffected. Below is an output from Fedora 42:

```bash
$ rpm -iq pcre2
pcre2-10.45-1.fc42.x86_64
```

```bash
$ rpm -qi pcre2
Name        : pcre2
Version     : 10.45
Release     : 1.fc42
Architecture: x86_64
Install Date: Mon 20 Oct 2025 01:51:34 BST
Group       : Unspecified
Size        : 714450
License     : BSD-3-Clause AND FSFULLR AND X11 AND GPL-2.0-or-later AND FSFAP AND FSFUL AND GPL-3.0-or-later
Signature   : RSA/SHA256, Thu 27 Feb 2025 09:02:10 GMT, Key ID c8ac4916105ef944
Source RPM  : pcre2-10.45-1.fc42.src.rpm
Build Date  : Thu 27 Feb 2025 08:58:20 GMT
Build Host  : buildvm-x86-18.iad2.fedoraproject.org
Packager    : Fedora Project
Vendor      : Fedora Project
URL         : https://www.pcre.org/
Bug URL     : https://bugz.fedoraproject.org/pcre2
Summary     : Perl-compatible regular expression library
Description :
PCRE2 is a re-working of the original PCRE (Perl-compatible regular
expression) library to provide an entirely new API.

PCRE2 is written in C, and it has its own API. There are three sets of
functions, one for the 8-bit library, which processes strings of bytes, one
for the 16-bit library, which processes strings of 16-bit values, and one for
the 32-bit library, which processes strings of 32-bit values. There are no C++
wrappers. This package provides support for strings in 8-bit and UTF-8
encodings. Install pcre2-utf16 or pcre2-utf32 packages for the other ones.

The distribution does contain a set of C wrapper functions for the 8-bit
library that are based on the POSIX regular expression API (see the pcre2posix
man page). These can be found in a library called libpcre2posix. Note that
this just provides a POSIX calling interface to PCRE2; the regular expressions
themselves still follow Perl syntax and semantics. The POSIX API is
restricted, and does not give full access to all of PCRE2's facilities.
```

The current build looks to be unpatched and the original build from the F42 release (built in Feb 25 and has the X-1 tag). 

References
https://nvd.nist.gov/vuln/detail/CVE-2025-58050
https://github.com/PCRE2Project/pcre2/releases/tag/pcre2-10.46
https://access.redhat.com/security/cve/cve-2025-58050

Reproducible: Always

Comment 1 Fedora Update System 2025-10-23 18:11:18 UTC
FEDORA-2025-5905c468d2 (pcre2-10.46-1.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-5905c468d2

Comment 2 Fedora Update System 2025-10-24 01:48:42 UTC
FEDORA-2025-5905c468d2 has been pushed to the Fedora 42 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-5905c468d2`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-5905c468d2

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 3 Fedora Update System 2025-10-28 01:30:10 UTC
FEDORA-2025-5905c468d2 (pcre2-10.46-1.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.