Tag specific Git commits based on commit message contents
If I had to write a "single-use" quickie command, I would write it like this:

while read version commit; do
    git tag -a v0.0.$version -m "Tag v0.0.$version" $(git rev-parse :/'Commit '$commit)
done


Then, as the script awaits input, type:

1 5
2 10
^D


In contrast to your parallel arrays, the main advantage of this approach is that each line constitutes a commit-version pair.