*** This bug is a security vulnerability *** Public security bug reported:
Any HTTP client of a program that uses the libmicrohttpd 1.0 Digest authentication API can write bytes of its choice past a 32-byte stack buffer in the server, without knowing the password. This is a remote stack overflow in the server process, before authentication. In src/microhttpd/digestauth.c, digest_auth_check_all_inner() hex- decodes the client's response= value into hash1_bin[MAX_DIGEST] (32 bytes) with MHD_hex_to_bin() and checks the length only after the decode (line 2953 in 1.0.0 and 1.0.1). Upstream fixed this in commit 5a73c1ae819240fbc1a32b4abd13688f60f4bacc (2026-07-27), released in 1.0.7, which checks the length before the decode: https://git.gnunet.org/libmicrohttpd.git/commit/?id=5a73c1ae819240fbc1a32b4abd13688f60f4bacc. No CVE has been assigned. Affected Ubuntu packages (Launchpad, 2026-11-27): - noble 1.0.0-2.1ubuntu2 - questing 1.0.1-2 - resolute 1.0.1-2 stonking and the development series have 1.0.10-1, which is fixed. jammy has 0.9.75 with the older Digest code and does not have this bug. On upstream 1.0.1 built with ASan, the request gives a stack-buffer- overflow WRITE in MHD_hex_to_bin (mhd_str.c:1736) called from digest_auth_check_all_inner (digestauth.c:2953). Upstream 1.0.10 rejects the same request with no report. The attached patch is the length check from 5a73c1a. It applies cleanly to the noble and resolute source packages with their own patches applied. Upstream 1.0.7 and 1.0.8 also carry other fixes from the same reporter of that commit, so the 1.0.7 to 1.0.8 changes are worth a look as well. Credit: ozgun kultekin, wakefield (wakefield.co) ** Affects: libmicrohttpd (Ubuntu) Importance: Undecided Status: New ** Patch added: "length check from upstream 5a73c1a, for 1.0.0 and 1.0.1" https://bugs.launchpad.net/bugs/2178288/+attachment/6021648/+files/backport-response-length-1.0.1.patch ** Information type changed from Public to Public Security -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2178288 Title: Digest auth response overflows a 32-byte stack buffer without the password, upstream fix 5a73c1a (1.0.7) not backported To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libmicrohttpd/+bug/2178288/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
