Tourfic <= 2.22.7 - Unauthenticated SQL Injection via 'post_id' Parameter
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- SQL injection
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- No fix listed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-89.
Summary
The Tourfic – AI Powered Travel Booking, Hotel Booking & Car Rental WordPress Plugin plugin for WordPress is vulnerable to generic SQL Injection via the 'post_id' parameter in all versions up to, and including, 2.22.7 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for unauthenticated attackers to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database. The AJAX handler is registered for unauthenticated users via wp_ajax_nopriv_tf_room_availability, and the required nonce is emitted on the public single-hotel page template, allowing unauthenticated attackers to freely obtain a valid nonce and reach the vulnerable code path.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Themefic | Tourfic – AI Powered Travel Booking, Hotel Booking & Car Rental WordPress Plugin | up to 2.22.7 | — | No fix listed | CNA |
- Tourfic – AI Powered Travel Booking, Hotel Booking & Car Rental WordPress Plugin VendorThemefic Affected up to 2.22.7 Fixed in — No fix listed CNA
Remediation
No fixed version listed by the sources yet.
Timeline
- 2026-10-02 Threatist record created from CVE-2026-12937
- 2026-10-03 Alias added: GHSA-79gf-4fr3-w2q9
References
Other 5
- https://www.wordfence.com/threat-intel/vulnerabilities/id/12c29a44-f9e4-439a-bc3f-18a3640f7924?source=cve
- https://plugins.trac.wordpress.org/browser/tourfic/tags/2.22.7/inc/Classes/Hotel/Hotel.php#L543
- https://plugins.trac.wordpress.org/browser/tourfic/tags/2.22.7/inc/Classes/Helper.php#L1164
- https://plugins.trac.wordpress.org/browser/tourfic/tags/2.22.7/inc/Classes/Hotel/Hotel.php#L305
- https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=3584747%40tourfic&new=3584747%40tourfic&sfp_email=&sfph_mail=
More Themefic vulnerabilities
- TI-2023-02626 Ultimate Addons for Contact Form 7 < 3.1.29 - Reflected XSS CVSS 3.1MEDIUM 6.1
- TI-2026-57195 Ultra Addons for Contact Form 7 <= 3.5.50 - Unauthenticated Arbitrary File Upload via Signature Form Field CVSS 3.1CRITICAL 9.8
- TI-2023-02625 Ultimate Addons for Contact Form 7 < 3.1.29 - Admin+ Stored XSS CVSS 3.1MEDIUM 4.8
- TI-2026-83954 Arbitrary file deletion in Ultra Addons for Contact Form 7 CVSS 3.1CRITICAL 9.8
- TI-2024-19308 WordPress Tourfic plugin <= 2.11.15 - Arbitrary File Upload vulnerability CVSS 3.1CRITICAL 9.9
- TI-2022-23624 WordPress Ultimate Addons for Contact Form 7 Plugin <= 3.1.23 is vulnerable to SQL Injection CVSS 3.1CRITICAL 9.8
Sources
- CVE-2026-12937 · CVE Program
- CVE-2026-12937 · NVD
- FIRST EPSS
- GHSA-79gf-4fr3-w2q9 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences