We can use the command "admin" to achieve this goal,eg.,if we want modify the log message of revision1.2 of the file called "test.txt",and this file resides in directory "source",we can do it like this:
cd source
cvs -d :pserver:username@cvs.tigris.org:/cvs admin -m 1.2:"modified log message" test.txt