Skip to content

Commit acd86a1

Browse files
authored
Link GHSA advisories in ChangeLog (#1082)
1 parent 03ce04d commit acd86a1

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

ChangeLog-8.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
<b><?php release_date('26-Sep-2024'); ?></b>
1414
<ul><li>CGI:
1515
<ul>
16-
<li>Fixed bug GHSA-p99j-rfp4-xqvq (Bypass of CVE-2024-4577, Parameter Injection Vulnerability). (CVE-2024-8926)</li>
17-
<li>Fixed bug GHSA-94p6-54jq-9mwp (cgi.force_redirect configuration is bypassable due to the environment variable collision). (CVE-2024-8927)</li>
16+
<li>Fixed bug <?php githubsecurityl('php/php-src', 'p99j-rfp4-xqvq'); ?> (Bypass of CVE-2024-4577, Parameter Injection Vulnerability). (CVE-2024-8926)</li>
17+
<li>Fixed bug <?php githubsecurityl('php/php-src', '94p6-54jq-9mwp'); ?> (cgi.force_redirect configuration is bypassable due to the environment variable collision). (CVE-2024-8927)</li>
1818
</ul></li>
1919
<li>Core:
2020
<ul>
@@ -41,7 +41,7 @@
4141
</ul></li>
4242
<li>FPM:
4343
<ul>
44-
<li>Fixed bug GHSA-865w-9rf3-2wh5 (Logs from childrens may be altered). (CVE-2024-9026)</li>
44+
<li>Fixed bug <?php githubsecurityl('php/php-src', '865w-9rf3-2wh5'); ?> (Logs from childrens may be altered). (CVE-2024-9026)</li>
4545
</ul></li>
4646
<li>MySQLnd:
4747
<ul>
@@ -54,7 +54,7 @@
5454
</ul></li>
5555
<li>SAPI:
5656
<ul>
57-
<li>Fixed bug GHSA-9pqp-7h25-4f32 (Erroneous parsing of multipart form data). (CVE-2024-8925)</li>
57+
<li>Fixed bug <?php githubsecurityl('php/php-src', '9pqp-7h25-4f32'); ?> (Erroneous parsing of multipart form data). (CVE-2024-8925)</li>
5858
</ul></li>
5959
<li>Standard:
6060
<ul>

bin/news2html

+2
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ $bug_map = [
6666
'/Implemented FR #([0-9]+)/' => '<?php implemented(\1); ?'.'>',
6767
'/GitHub PR #([0-9]+)/' => '<?php githubissuel(\'php/php-src\', \1); ?'.'>',
6868
'/GH-([0-9]+)/' => '<?php githubissuel(\'php/php-src\', \1); ?'.'>',
69+
'/GHSA-([0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4})/'
70+
=> '<?php githubsecurityl(\'php/php-src\', \'\1\'); ?'.'>',
6971
];
7072

7173
foreach($entries as $module => $items) {

include/changelogs.inc

+4
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ function githubissuel($repo, $number): void {
2828
echo "<a href=\"https://github.com/$repo/issues/$number\">GH-$number</a>";
2929
}
3030

31+
function githubsecurityl($repo, $id): void {
32+
echo "<a href=\"https://github.com/$repo/security/advisories/GHSA-$id\">GHSA-$id</a>";
33+
}
34+
3135
function release_date($in): void {
3236
$time = strtotime($in);
3337
$human_readable = date('d M Y', $time);

0 commit comments

Comments
 (0)