I the Pi-Hole UI I have a message that "Pi-Hole: Update available", so I run pihole -up from console. This gives the following:
$ pihole -up
[✓] Update local cache of available packages
[i] Existing PHP installation detected : PHP version 7.4.33
[✓] Checking for git
[✓] Checking for iproute2
[✓] Checking for dialog
[✓] Checking for ca-certificates
[i] Checking for updates...
[i] Pi-hole Core: up to date
[i] Web Interface: up to date
[i] FTL: up to date
[✓] Everything is up to date!
but, if I then run
$ pihole -v
Pi-hole version is v5.17.3 (Latest: v5.18.2)
web version is v5.21 (Latest: v5.21)
FTL version is v5.25.2 (Latest: v5.25.2)
and even after a reboot, the Pi-Hole UI says the update is available
jc@pi3:~ $ pihole updatechecker
jc@pi3:~ $ pihole -v
Pi-hole version is v5.17.3 (Latest: v5.18.2)
web version is v5.21 (Latest: v5.21)
FTL version is v5.25.2 (Latest: v5.25.2)