https://london.thaiembassy.org/en/pa...e39c3bd00072ef
14. Can I go to Thailand if the validity of my passport is less than 6 months? As a general rule, passports should have at least six months of validity when travelling internationally. Most countries will not permit a travel to enter their country, and will reject visa application, unless the passport will be expired at least six months after the final day of travel. So, if your passport has less than six months remaining until the expiration date, you should renew it right away.
However, if you are entitled to Thailand's tourist visa exemption scheme, may not notice the expiry of your passport until last minute, and decide to go to Thailand anyway, this is at your own risk. It is entirely the discretion of the airlines and the immigration officer whether or not to allow you on board the aircraft and enter Thailand, respectively.
Please make sure of the validity of your passport whenever you plan to travel.