package/libmicrohttpd: ignore CVE-2025-59777 and CVE-2025-62689
PATCH v2 1/1 package/libmicrohttpd: ignore CVE-2025-59777 and CVE-2025-62689
From: Yegor Yefremov <[email protected]>
Both CVEs affect the experimental WebSocket helper library (src/microhttpd_ws, installed as libmicrohttpd_ws.so), as stated in the originating JPCERT/CC advisory JVN76719218:
"The vulnerability exists in libmicrohttpd_ws.so, which is generated
when building with the --enable-experimental option."
That directory is guarded by AM_CONDITIONAL([HAVE_EXPERIMENTAL]) in src/Makefile.am, and --enable-experimental defaults to "no". Buildroot never passes it, so no Buildroot version has ever built the vulnerable code. Upstream removed the module outright in commit ff13abc1c1d7d2b30d69d5c0bd4a237e1801c50b ("remove broken experimental code", 13651 deletions), first released in 1.0.3.
An ignore is needed rather than a version bump, because the NVD entries for both CVEs share a single CPE match criteria that encodes the affected range as
cpe:2.3:a:gnu:libmicrohttpd:*:*:*:*:*:*:*:*, versionEndExcluding 2025-09-16
i.e. the author date of the fix commit instead of a version number. Since support/scripts/cve.py compares versions using LooseVersion, every 1.0.x version evaluates as smaller than "2025-09-16" and is reported as affected, no matter how far the package gets bumped.
---
Changes v1 -> v2:
- describe why Buildroot was never affected by these CVEs
package/libmicrohttpd/libmicrohttpd.mk | 8 ++++++++ 1 file changed, 8 insertions(+)
package/libmicrohttpd/libmicrohttpd.mk +8 -0
@@ -10,6 +10,14 @@ LIBMICROHTTPD_LICENSE_FILES = COPYING LIBMICROHTTPD_CPE_ID_VENDOR = gnu LIBMICROHTTPD_INSTALL_STAGING = YES LIBMICROHTTPD_DEPENDENCIES = host-pkgconf + +# Both affect the experimental WebSocket library (src/microhttpd_ws, +# libmicrohttpd_ws.so), which is only built with --enable-experimental. +# That option defaults to "no" and we never pass it, so no Buildroot +# version has ever been affected. Upstream removed the code outright in +# commit ff13abc1c1d7d2b30d69d5c0bd4a237e1801c50b, released in 1.0.3. +LIBMICROHTTPD_IGNORE_CVES += CVE-2025-59777 CVE-2025-62689 + LIBMICROHTTPD_CONF_OPTS = --disable-curl --disable-examples LIBMICROHTTPD_CFLAGS = $(TARGET_CFLAGS) -std=c99
Signature · 6 lines
2.34.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hello Yegor,
Quoted 20 lines · yegorslists--- via buildroot
From: Yegor Yefremov <[email protected]>
Both CVEs affect the experimental WebSocket helper library (src/microhttpd_ws, installed as libmicrohttpd_ws.so), as stated in the originating JPCERT/CC advisory JVN76719218:
"The vulnerability exists in libmicrohttpd_ws.so, which is generated
when building with the --enable-experimental option."That directory is guarded by
AM_CONDITIONAL([HAVE_EXPERIMENTAL])in src/Makefile.am, and --enable-experimental defaults to "no". Buildroot never passes it, so no Buildroot version has ever built the vulnerable code. Upstream removed the module outright in commitff13abc1c1d7d2b30d69d5c0bd4a237e1801c50b("remove broken experimental code", 13651 deletions), first released in 1.0.3.An ignore is needed rather than a version bump, because the NVD entries for both CVEs share a single CPE match criteria that encodes the affected range as
Quoted 6 lines
cpe:2.3:a:gnu:libmicrohttpd:*:*:*:*:*:*:*:*, versionEndExcluding 2025-09-16
i.e. the author date of the fix commit instead of a version number. Since
support/scripts/cve.pycompares versions using LooseVersion, every 1.0.x version evaluates as smaller than "2025-09-16" and is reported as affected, no matter how far the package gets bumped.
Thanks a lot, but this is not the right fix I'm afraid. The right fix is to send an e-mail to NVD at [email protected] to ask them to update the CVE entry. They are responsive. You just need to explain very clearly which commit fixed the vulnerability, in which release it was integrated, and they will fix the CVE description.
Once this is done, we can potentially accept as a temporary measure to add those IGNORE_CVES entry.
The way I see this is like patches: if you don't "upstream" the fix of the CVE metadata, then we will have to keep those IGNORE_CVES entries forever, which is not desirable.
Thanks!
Thomas
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hi Thomas,
Quoted 37 lines · Thomas Petazzoni
Hello Yegor,
Quoted 20 lines · yegorslists--- via buildroot
From: Yegor Yefremov <[email protected]>
Both CVEs affect the experimental WebSocket helper library (src/microhttpd_ws, installed as libmicrohttpd_ws.so), as stated in the originating JPCERT/CC advisory JVN76719218:
"The vulnerability exists in libmicrohttpd_ws.so, which is generated
when building with the --enable-experimental option."That directory is guarded by
AM_CONDITIONAL([HAVE_EXPERIMENTAL])in src/Makefile.am, and --enable-experimental defaults to "no". Buildroot never passes it, so no Buildroot version has ever built the vulnerable code. Upstream removed the module outright in commitff13abc1c1d7d2b30d69d5c0bd4a237e1801c50b("remove broken experimental code", 13651 deletions), first released in 1.0.3.An ignore is needed rather than a version bump, because the NVD entries for both CVEs share a single CPE match criteria that encodes the affected range as
Quoted 6 lines
cpe:2.3:a:gnu:libmicrohttpd:*:*:*:*:*:*:*:*, versionEndExcluding 2025-09-16
i.e. the author date of the fix commit instead of a version number. Since
support/scripts/cve.pycompares versions using LooseVersion, every 1.0.x version evaluates as smaller than "2025-09-16" and is reported as affected, no matter how far the package gets bumped.Thanks a lot, but this is not the right fix I'm afraid. The right fix is to send an e-mail to NVD at [email protected] to ask them to update the CVE entry. They are responsive. You just need to explain very clearly which commit fixed the vulnerability, in which release it was integrated, and they will fix the CVE description.
Quoted 6 lines
Once this is done, we can potentially accept as a temporary measure to add those
IGNORE_CVESentry.The way I see this is like patches: if you don't "upstream" the fix of the CVE metadata, then we will have to keep those
IGNORE_CVESentries forever, which is not desirable.
I filed a request a week ago. Till now no answer :-(
Regards,
Yegor
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 42 lines · Yegor Yefremov
Hi Thomas,
Quoted 37 lines · Thomas Petazzoni
Hello Yegor,
Quoted 20 lines · yegorslists--- via buildroot
From: Yegor Yefremov <[email protected]>
Both CVEs affect the experimental WebSocket helper library (src/microhttpd_ws, installed as libmicrohttpd_ws.so), as stated in the originating JPCERT/CC advisory JVN76719218:
"The vulnerability exists in libmicrohttpd_ws.so, which is generated
when building with the --enable-experimental option."That directory is guarded by
AM_CONDITIONAL([HAVE_EXPERIMENTAL])in src/Makefile.am, and --enable-experimental defaults to "no". Buildroot never passes it, so no Buildroot version has ever built the vulnerable code. Upstream removed the module outright in commitff13abc1c1d7d2b30d69d5c0bd4a237e1801c50b("remove broken experimental code", 13651 deletions), first released in 1.0.3.An ignore is needed rather than a version bump, because the NVD entries for both CVEs share a single CPE match criteria that encodes the affected range as
Quoted 6 lines
cpe:2.3:a:gnu:libmicrohttpd:*:*:*:*:*:*:*:*, versionEndExcluding 2025-09-16
i.e. the author date of the fix commit instead of a version number. Since
support/scripts/cve.pycompares versions using LooseVersion, every 1.0.x version evaluates as smaller than "2025-09-16" and is reported as affected, no matter how far the package gets bumped.Thanks a lot, but this is not the right fix I'm afraid. The right fix is to send an e-mail to NVD at [email protected] to ask them to update the CVE entry. They are responsive. You just need to explain very clearly which commit fixed the vulnerability, in which release it was integrated, and they will fix the CVE description.
Quoted 8 lines
Quoted 6 lines
Once this is done, we can potentially accept as a temporary measure to add those
IGNORE_CVESentry.The way I see this is like patches: if you don't "upstream" the fix of the CVE metadata, then we will have to keep those
IGNORE_CVESentries forever, which is not desirable.I filed a request a week ago. Till now no answer :-(
I got the answer. Both CVEs are no longer valid for the current version. The patch can be dismissed.
Yegor
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 4 lines · Yegor Yefremov
Quoted 1 line
I filed a request a week ago. Till now no answer :-(
I got the answer. Both CVEs are no longer valid for the current version. The patch can be dismissed.
Thanks a lot!
In the future: it is fine for me if you send <pkg>_IGNORE_CVES entries as long as an e-mail to fix the NVD database is also sent. It's a bit like having the patch locally and upstreaming the fix. Once the fix is upstreamed (NVD database is fixed), the <pkg>_IGNORE_CVES entry can be dropped. And if we forget to drop it, the CVE checker tool in Buildroot is supposed to tell us: "you have a <pkg>_IGNORE_CVES entry for CVE-YYYY-ABCABC but this CVE isn't affecting the version of the package in Buildroot", which is a hint that the entry is stale.
Best regards,
Thomas
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot