# CVE-2024-2331: SourceCodester Tourist Reservation System System.cpp ad_writedata buffer overflow

- Severity: Medium 6.3 (CVSS:3.1, scored by VulDB) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- 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.63%, higher than 51% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-03-09T10:00:07.753Z
- Modified: 2026-06-17T07:24:19.853Z
- Weaknesses: CWE-120
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulDB

## Description

A vulnerability was found in SourceCodester Tourist Reservation System 1.0. It has been declared as critical. This vulnerability affects the function ad_writedata of the file System.cpp. The manipulation of the argument ad_code leads to buffer overflow. The attack can be initiated remotely. The exploit has been disclosed to the public and may be used. VDB-256282 is the identifier assigned to this vulnerability.

(As written by CVE List.)

## Affected

- SourceCodester Tourist Reservation System: 1.0
- razormist tourist_reservation_system: 1.0

## Every score

- 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://github.com/wkeyi0x1/vul-report/blob/main/Tourist%20Reservation%20System%20using%20C%2B%2B%20with%20Free%20Source%20Code/buffer-overflow-1.md> (exploit, broken-link)
- <https://vuldb.com/?id.256282> (permissions-required, technical-description, vdb-entry)
- <https://vuldb.com/?ctiid.256282> (permissions-required, signature)

## Sources

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

---

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