CVE-2007-5958: X.Org Xserver before 1.4.1 allows local users to determine the existence of arbitrary files via a filename arg
CVE-2007-5958 is a medium-severity flaw (CVSS 5.0) affecting xserver. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
X.Org Xserver before 1.4.1 allows local users to determine the existence of arbitrary files via a filename argument in the -sp option to the X program, which produces different error messages depending on whether the filename exists.
Why this priority
- EPSS top 7%: very likely to be exploited
- Public exploit reference
A fixed release or distro patch exists.
Risk facts
| CVSS score | 5.0 (Medium) |
| EPSS exploit chance | 5.3% (top 7%) |
| CISA exploited list | No |
| Weakness | CWE-200 |
| Published | 2008-01-18 |
| Last modified | 2026-06-16 |
Last updated 2026-06-16 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2007-5958?
xserver: upgrade to newer than 1.4. Exact commands for each OS are on this page.
Is CVE-2007-5958 being exploited?
CVE-2007-5958 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2007-5958 affect?
CVE-2007-5958 affects xserver. Severity is medium (CVSS 5.0). X.Org Xserver before 1.4.1 allows local users to determine the existence of arbitrary files via a filename argument in the -sp option to the X program, which produces different error messages depending on whether the filename exists.
How urgent is CVE-2007-5958?
Priority 46/100. EPSS top 7%: very likely to be exploited; Public exploit reference
Related CVEs
- CVE-2008-0006 HIGH 7.5 MITIGATE MITIGATE Buffer overflow in (1) X.Org Xserver before 1.4.1, and (2) the libfont and libXfont libraries on some platform
- CVE-2007-6429 HIGH 9.3 MITIGATE MITIGATE Multiple integer overflows in X.Org Xserver before 1.4.1 allow context-dependent attackers to execute arbitrar
- CVE-2007-6428 MEDIUM 5.0 MITIGATE UPGRADE The ProcGetReservedColormapEntries function in the TOG-CUP extension in X.Org Xserver before 1.4.1 allows cont
- CVE-2007-5760 HIGH 9.3 UPGRADE MITIGATE Array index error in the XFree86-Misc extension in X.Org Xserver before 1.4.1 allows context-dependent attacke
- CVE-2007-3957 MEDIUM 5.0 DOWNGRADE Buffer overflow in Nipun Jain xserver 0.1 alpha allows remote attackers to cause a denial of service via a POS