Skip to content

Commit ad62a81

Browse files
[AUTO-CHERRYPICK] Upgrade fcgi to 2.4.5 for CVE-2025-23016 [Critical] - branch main (#13590)
Co-authored-by: Kanishk Bansal <103916909+Kanishk-Bansal@users.noreply.github.com>
1 parent 5c969e7 commit ad62a81

5 files changed

Lines changed: 38 additions & 116 deletions

File tree

SPECS/fcgi/CVE-2012-6687.patch

Lines changed: 0 additions & 80 deletions
This file was deleted.

SPECS/fcgi/fcgi-EOF.patch

Lines changed: 0 additions & 11 deletions
This file was deleted.

SPECS/fcgi/fcgi.signatures.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"Signatures": {
3-
"fcgi-2.4.0.tar.gz": "66fc45c6b36a21bf2fbbb68e90f780cc21a9da1fffbae75e76d2b4402d3f05b9"
3+
"fcgi-2.4.5.tar.gz": "92b0111a98d8636e06c128444a3d4d7a720bdd54e6ee4dd0c7b67775b1b0abff"
44
}
55
}

SPECS/fcgi/fcgi.spec

Lines changed: 35 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
Summary: FastCGI development kit
22
Name: fcgi
3-
Version: 2.4.0
4-
Release: 7%{?dist}
3+
Version: 2.4.5
4+
Release: 1%{?dist}
55
License: OML
66
# NOTE: below is an archive of FastCGI. The original project web page (http://www.fastcgi.com) is no longer online.
77
URL: https://fastcgi-archives.github.io
8-
Source0: https://src.fedoraproject.org/lookaside/extras/%{name}/%{name}-%{version}.tar.gz/d15060a813b91383a9f3c66faf84867e/%{name}-%{version}.tar.gz
9-
Patch0: fcgi-EOF.patch
10-
Patch1: CVE-2012-6687.patch
8+
Source0: https://github.com/FastCGI-Archives/fcgi2/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
119
Group: Development/Libraries/C and C++
1210
Vendor: Microsoft Corporation
1311
Distribution: Mariner
@@ -25,11 +23,10 @@ FastCGI is a language independent, scalable, open extension to CGI that
2523
provides high performance without the limitations of server specific APIs.
2624

2725
%prep
28-
%setup -q
29-
%patch0 -p1
30-
%patch1 -p1
26+
%autosetup -n %{name}2-%{version} -p1
3127

3228
%build
29+
./autogen.sh
3330
%configure \
3431
--disable-static
3532
make
@@ -48,28 +45,44 @@ make check
4845

4946
%files
5047
%defattr(-,root,root)
51-
%license LICENSE.TERMS
48+
%license LICENSE
5249
%{_bindir}/*
5350
%{_libdir}/libfcgi*.so*
51+
%doc %{_mandir}/man1/cgi-fcgi.1*
52+
%doc %{_mandir}/man3/FCGI_Accept.3*
53+
%doc %{_mandir}/man3/FCGI_Finish.3*
54+
%doc %{_mandir}/man3/FCGI_SetExitStatus.3*
55+
%doc %{_mandir}/man3/FCGI_StartFilterData.3*
5456

5557
%files devel
5658
%defattr(-,root,root)
5759
%{_includedir}/*
60+
%{_libdir}/pkgconfig/fcgi*.pc
5861

5962
%changelog
63+
* Tue Apr 22 2025 Kanishk Bansal <kanbansal@microsoft.com> - 2.4.5-1
64+
- Upgrade to 2.4.5 to fix CVE-2025-23016
65+
- Remove patch of CVE-2012-6687, fcgi-EOF
66+
- Added missing man pages and pkgconfig files to package
67+
6068
* Sat May 09 2020 Nick Samson <nisamson@microsoft.com> - 2.4.0-7
6169
- Added %%license line automatically
6270

63-
* Mon Apr 27 2020 Pawel Winogrodzki <pawelwi@microsoft.com> 2.4.0-6
64-
- Fixed 'Source0' and 'URL' tags.
65-
- License verified.
66-
* Thu Feb 27 2020 Henry Beberman <hebeberm@microsoft.com> 2.4.0-5
67-
- Glob to include libfcgi++ as well as libfcgi in RPM
68-
* Tue Sep 03 2019 Mateusz Malisz <mamalisz@microsoft.com> 2.4.0-4
69-
- Initial CBL-Mariner import from Photon (license: Apache2).
70-
* Fri Oct 13 2017 Alexey Makhalov <amakhalov@vmware.com> 2.4.0-3
71-
- Use standard configure macros
72-
* Wed May 24 2017 Dheeraj Shetty <dheerajs@vmware.com> 2.4.0-2
73-
- Patch for CVE-2012-6687
74-
* Fri Dec 16 2016 Dheeraj Shetty <dheerajs@vmware.com> 2.4.0-1
75-
- Initial build. First version
71+
* Mon Apr 27 2020 Pawel Winogrodzki <pawelwi@microsoft.com> 2.4.0-6
72+
- Fixed 'Source0' and 'URL' tags.
73+
- License verified.
74+
75+
* Thu Feb 27 2020 Henry Beberman <hebeberm@microsoft.com> 2.4.0-5
76+
- Glob to include libfcgi++ as well as libfcgi in RPM
77+
78+
* Tue Sep 03 2019 Mateusz Malisz <mamalisz@microsoft.com> 2.4.0-4
79+
- Initial CBL-Mariner import from Photon (license: Apache2).
80+
81+
* Fri Oct 13 2017 Alexey Makhalov <amakhalov@vmware.com> 2.4.0-3
82+
- Use standard configure macros
83+
84+
* Wed May 24 2017 Dheeraj Shetty <dheerajs@vmware.com> 2.4.0-2
85+
- Patch for CVE-2012-6687
86+
87+
* Fri Dec 16 2016 Dheeraj Shetty <dheerajs@vmware.com> 2.4.0-1
88+
- Initial build. First version

cgmanifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3498,8 +3498,8 @@
34983498
"type": "other",
34993499
"other": {
35003500
"name": "fcgi",
3501-
"version": "2.4.0",
3502-
"downloadUrl": "https://src.fedoraproject.org/lookaside/extras/fcgi/fcgi-2.4.0.tar.gz/d15060a813b91383a9f3c66faf84867e/fcgi-2.4.0.tar.gz"
3501+
"version": "2.4.5",
3502+
"downloadUrl": "https://github.com/FastCGI-Archives/fcgi2/archive/refs/tags/2.4.5.tar.gz"
35033503
}
35043504
}
35053505
},

0 commit comments

Comments
 (0)