NetBSD Problem Report #58973

From www@netbsd.org  Tue Jan  7 19:23:27 2025
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits)
	 client-signature RSA-PSS (2048 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 66C171A9238
	for <gnats-bugs@gnats.NetBSD.org>; Tue,  7 Jan 2025 19:23:27 +0000 (UTC)
Message-Id: <20250107192326.5F4691A923B@mollari.NetBSD.org>
Date: Tue,  7 Jan 2025 19:23:26 +0000 (UTC)
From: campbell+netbsd@mumble.net
Reply-To: campbell+netbsd@mumble.net
To: gnats-bugs@NetBSD.org
Subject: security/botan3 ignores system trust anchors for TLS
X-Send-Pr-Version: www-1.0

>Number:         58973
>Category:       pkg
>Synopsis:       security/botan3 ignores system trust anchors for TLS
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    nros
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 07 19:25:00 +0000 2025
>Last-Modified:  Tue Jan 07 19:41:33 +0000 2025
>Originator:     Taylor R Campbell
>Release:        current
>Organization:
The NetBotanD Foundtrustanchors
>Environment:
>Description:
Instead of respecting system TLS trust anchors, security/botan depends on security/mozilla-rootcerts and hard-codes the static, non-configurable cacert.pem from that for TLS trust anchors.

For more details, see PR pkg/58143: security/gnutls uses wrong trust anchors <https://gnats.netbsd.org/58143>.
>How-To-Repeat:
code inspection
>Fix:
1. Use new mk/ssl.mk.
2. Pass SSLCERTBUNDLE as --system-cert-bundle to configure.
3. Make sure this makes sense -- that is, make sure it is used for TLS trust anchors and not, say, S/MIME trust anchors.

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->nros
Responsible-Changed-By: hauke@NetBSD.org
Responsible-Changed-When: Tue, 07 Jan 2025 19:41:33 +0000
Responsible-Changed-Why:
Over to maintainer.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2025 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.