# CVE-2024-12895: TreasureHuntGame TreasureHunt checkflag.php console_log sql injection

- Severity: Medium 5.3 (CVSS:4.0, scored by VulDB) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.84%, higher than 55% of CVEs (2026-11-30)
- Published: 2024-12-22T14:00:13.671Z
- Modified: 2026-06-17T07:00:43.123Z
- Weaknesses: CWE-74, CWE-89
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulDB

## Description

A vulnerability has been found in TreasureHuntGame TreasureHunt up to 963e0e0 and classified as critical. Affected by this vulnerability is the function console_log of the file TreasureHunt/checkflag.php. The manipulation of the argument problema leads to sql injection. The attack can be launched remotely. The identifier of the patch is 8bcc649abc35b7734951be084bb522a532faac4e. It is recommended to apply a patch to fix this issue.

(As written by CVE List.)

## Affected

- TreasureHuntGame TreasureHunt: 963e0e0; before 2024-05-04

## Every score

- VulDB: CVSS:4.0 5.3 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N`
- VulDB: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- VulDB: CVSS:3.0 6.3 Medium `CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- VulDB: CVSS:2.0 6.5 Medium `AV:N/AC:L/Au:S/C:P/I:P/A:P`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://vuldb.com/?id.289165> (technical-description, third-party-advisory, vdb-entry)
- <https://vuldb.com/?ctiid.289165> (permissions-required, signature, vdb-entry)
- <https://github.com/TreasureHuntGame/TreasureHunt/commit/8bcc649abc35b7734951be084bb522a532faac4e> (patch)

## Sources

- CVE List: [CVE-2024-12895](https://www.cve.org/CVERecord?id=CVE-2024-12895), CVE Terms of Use, modified 2024-12-24
- NVD: [CVE-2024-12895](https://nvd.nist.gov/vuln/detail/CVE-2024-12895), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-12895 · Whole record: https://cve.day/CVE-2024-12895.json · Rebuilt by cve.day 2026-11-25T22:58:50.317Z
