# CVE-2024-5312: Cross-Site Scripting vulnerability in PHP Server Monitor

- Severity: Medium 6.3 (CVSS:3.1, scored by INCIBE) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/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.27%, higher than 20% of CVEs (2026-12-01)
- Published: 2024-05-24T10:38:35.848Z
- Modified: 2026-06-17T08:15:40.890Z
- Also known as: GHSA-rq7f-j68f-mqh3
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: INCIBE

## Description

PHP Server Monitor, version 3.2.0, is vulnerable to an XSS via the /phpservermon-3.2.0/vendor/phpmailer/phpmailer/test_script/index.php page in all visible parameters. An attacker could create a specially crafted URL, send it to a victim and retrieve their session details.

(As written by CVE List.)

## Affected

- PHP Server Monitor PHP Server Monitor: 3,2,0
- phpservermon/phpservermon (Packagist): before 3.3.0

## Every score

- INCIBE: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L`
- GitHub: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L`

## References

- <https://www.incibe.es/en/incibe-cert/notices/aviso/cross-site-scripting-vulnerability-php-server-monitor> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-5312> (advisory)
- <https://github.com/PHPMailer/PHPMailer/commit/ff8718f72225a2e34d918c06a3b2c8cca5af3164> (web)
- <https://github.com/phpservermon/phpservermon> (package)

## Sources

- CVE List: [CVE-2024-5312](https://www.cve.org/CVERecord?id=CVE-2024-5312), CVE Terms of Use, modified 2024-08-01
- GitHub Advisory Database: [GHSA-rq7f-j68f-mqh3](https://github.com/advisories/GHSA-rq7f-j68f-mqh3), CC-BY-4.0, modified 2024-05-24
- NVD: [CVE-2024-5312](https://nvd.nist.gov/vuln/detail/CVE-2024-5312), Public domain, modified 2026-06-17

---

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