Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[Bug]: Bundled ext-mongodb 2.3.3 prevents upgrading mongodb/mongodb to 2.4.1

Aperta
#1,749 1 commento 5 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
52/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
mongodb, php

Direzione di ricerca

Inizia riproducendo il comportamento dell’estensione inclusa con php -n --ri mongodb e php -i per la build Herd PHP 8.4, quindi traccia la configurazione della build di PHP che abilita MongoDB. Conferma come viene pacchettizzata l’estensione e se PECL o PIE possono sostituirla in sicurezza. Il lavoro è completato quando Herd fornisce ext-mongodb 2.4 o versioni successive e mongodb/mongodb 2.4.1 può essere installato senza errori di audit di Composer.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

macOS
Platform

macOS

Operating system version

macOS Tahoe 26.6.2

System architecture

ARM64 (M1, M2, etc)

Herd Version

1.30.0

PHP Version

PHP 8.4.23, PHP 8.5,PHP 8.6

Bug description

Laravel Herd PHP 8.4.23 on macOS currently bundles ext-mongodb 2.3.3.

The MongoDB PHP library mongodb/mongodb 2.3.0 is affected by security advisory PKSA-61k5-cqr9-b8b4 / CVE-2026-81525. The patched mongodb/mongodb 2.4.1 requires ext-mongodb ^2.4, but Herd currently provides ext-mongodb 2.3.3.

Because of this, I cannot upgrade mongodb/mongodb to the patched version. Composer reports that mongodb/mongodb 2.4.1 requires ext-mongodb ^2.4, while the installed extension version is 2.3.3. This also causes composer audit to fail in CI.

I initially investigated whether the MongoDB extension could be upgraded separately using PECL or PIE. I also tried PIE with mongodb/mongodb-extension:^2.4, but PIE could not find a suitable phpize binary for the Herd PHP installation.

I then checked how MongoDB is actually loaded by Herd. Running "php -n --ri mongodb", which prevents PHP from loading php.ini, still reports MongoDB extension version 2.3.3. Running "php -i" also shows that Herd PHP was compiled with "--enable-mongodb".

I checked the Herd PHP 8.4 php.ini as well. There is no extension=mongodb.so entry. The only explicitly loaded extensions in my php.ini are Herd's own extension and Xdebug.

Therefore it appears ext-mongodb 2.3.3 is compiled directly into the Herd PHP binary rather than being a separately loaded PECL/PIE extension. Because of this, installing a newer mongodb.so through PECL/PIE also does not appear to be an appropriate way to replace the bundled version.

Could the bundled MongoDB extension please be updated to ext-mongodb 2.4 or newer in the Herd PHP builds?

Alternatively, if there is an officially supported way to upgrade a bundled extension such as ext-mongodb using PECL or PIE without conflicting with the version compiled into Herd PHP, could you please provide the recommended procedure?

Steps to reproduce
Image Image
Relevant log output

Lingua principale
Nessun dato sulla lingua
Stelle
123
Fork
1
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di beyondcode/herd-community

Tutte le issue di beyondcode/herd-community

Issue simili

Altre issue su Backend & API Design

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.