Bug 2399533 - CVE-2025-47906 mkcert: Unexpected paths returned from LookPath in os/exec [fedora-42]
Summary: CVE-2025-47906 mkcert: Unexpected paths returned from LookPath in os/exec [fe...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: mkcert
Version: 42
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Dick Marinus
QA Contact:
URL:
Whiteboard: {"flaws": ["82b592f6-3fef-4109-80a1-8...
Depends On:
Blocks: CVE-2025-47906
TreeView+ depends on / blocked
 
Reported: 2025-09-26 00:36 UTC by Jon Moroney
Modified: 2025-09-26 11:06 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-09-26 11:06:38 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jon Moroney 2025-09-26 00:36:07 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

The following link provides references to all essential vulnerability management information. If something is wrong or missing, please contact a member of PSIRT.
https://spaces.redhat.com/display/PRODSEC/Vulnerability+Management+-+Essential+Documents+for+Engineering+Teams

Comment 1 Dick Marinus 2025-09-26 11:06:38 UTC
Seems like mkcert isn't vulnerable, I checked the usage of "LookPath" and it isn't possible to inject . or .. into the LookPath call.

Besides that, mkcert is meant to be used locally by the system administrator. I can't think of a way how this could even be exploitable by a non administrator.

$ git grep -i lookpath
main.go:        _, err := exec.LookPath(name)
truststore_nss.go:                      certutilPath, _ = exec.LookPath("certutil")
truststore_nss.go:                      certutilPath, _ = exec.LookPath("certutil")

$ git grep -i binaryExists
main.go:func binaryExists(name string) bool {
main.go:        if !binaryExists("sudo") {
truststore_linux.go:    case binaryExists("apt"):
truststore_linux.go:    case binaryExists("yum"):
truststore_linux.go:    case binaryExists("zypper"):
truststore_nss.go:              case binaryExists("certutil"):
truststore_nss.go:              case binaryExists("/usr/local/opt/nss/bin/certutil"):
truststore_nss.go:              if hasCertutil = binaryExists("certutil"); hasCertutil {


Note You need to log in before you can comment on or make changes to this bug.