diff options
| author | Soumya <soumya.sambu@windriver.com> | 2023-06-12 03:47:36 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-06-15 09:53:38 +0100 |
| commit | ce01aa37bfb1efc0fbed084af071531b2d3aa80c (patch) | |
| tree | 621ba30bbda8717e35b73ecc7233733847712588 /meta/recipes-devtools/perl/files | |
| parent | c26f00fdfa296db92f8a4e3e9e3cd28604d1e93f (diff) | |
| download | poky-ce01aa37bfb1efc0fbed084af071531b2d3aa80c.tar.gz | |
perl: fix CVE-2023-31484
CPAN.pm before 2.35 does not verify TLS certificates when downloading
distributions over HTTPS.
(From OE-Core rev: c87f6b088105676cd2e6216b1a9c62e7e754347c)
Signed-off-by: Soumya <soumya.sambu@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/perl/files')
| -rw-r--r-- | meta/recipes-devtools/perl/files/CVE-2023-31484.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/meta/recipes-devtools/perl/files/CVE-2023-31484.patch b/meta/recipes-devtools/perl/files/CVE-2023-31484.patch new file mode 100644 index 0000000000..9a9117c53a --- /dev/null +++ b/meta/recipes-devtools/perl/files/CVE-2023-31484.patch | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | From a625ec2cc3a0b6116c1f8b831d3480deb621c245 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Stig Palmquist <git@stig.io> | ||
| 3 | Date: Tue, 28 Feb 2023 11:54:06 +0100 | ||
| 4 | Subject: [PATCH] Add verify_SSL=>1 to HTTP::Tiny to verify https server | ||
| 5 | identity | ||
| 6 | |||
| 7 | CVE: CVE-2023-31484 | ||
| 8 | |||
| 9 | Upstream-Status: Backport [https://github.com/andk/cpanpm/commit/9c98370287f4e709924aee7c58ef21c85289a7f0] | ||
| 10 | |||
| 11 | Signed-off-by: Soumya <soumya.sambu@windriver.com> | ||
| 12 | --- | ||
| 13 | cpan/CPAN/lib/CPAN/HTTP/Client.pm | 1 + | ||
| 14 | 1 file changed, 1 insertion(+) | ||
| 15 | |||
| 16 | diff --git a/cpan/CPAN/lib/CPAN/HTTP/Client.pm b/cpan/CPAN/lib/CPAN/HTTP/Client.pm | ||
| 17 | index 4fc792c..a616fee 100644 | ||
| 18 | --- a/cpan/CPAN/lib/CPAN/HTTP/Client.pm | ||
| 19 | +++ b/cpan/CPAN/lib/CPAN/HTTP/Client.pm | ||
| 20 | @@ -32,6 +32,7 @@ sub mirror { | ||
| 21 | |||
| 22 | my $want_proxy = $self->_want_proxy($uri); | ||
| 23 | my $http = HTTP::Tiny->new( | ||
| 24 | + verify_SSL => 1, | ||
| 25 | $want_proxy ? (proxy => $self->{proxy}) : () | ||
| 26 | ); | ||
| 27 | |||
| 28 | -- | ||
| 29 | 2.40.0 | ||
