CVE-2022-2712
High · 7.5CVSS
7.5
EPSS
0.9%
Published
Jan 27, 2023
CISA due date
—
Cloudanix analysis
Attackers can trick the server into handing over private settings and program code without any login.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Data Exposure
- Component
- Application
- Class
- Path Traversal
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The flaw permits remote unauthenticated requests containing paths that begin with './' to bypass directory restrictions, allowing direct read access to arbitrary files including server configuration and deployed application source code.
Why it matters to the business
Attackers can obtain configuration secrets and application source code, increasing the risk of targeted follow-on attacks, data exposure, or intellectual property theft with minimal attacker effort.
How an attack unfolds
An unauthenticated attacker issues HTTP requests to the server using relative paths prefixed with './' to traverse outside intended directories and retrieve sensitive files such as domain.xml or application WAR contents.
How to fix it
Upgrade Eclipse GlassFish to a release that enforces proper filtering of paths beginning with './'; until a fixed version is available, restrict web access to sensitive directories via web server rules or application firewall policies.
How to confirm the fix worked
Attempt to retrieve known configuration files using requests prefixed with './' from an external host and confirm that the server returns an error or empty response instead of file contents.
Typical attack path
- Craft HTTP GET request containing a path starting with './'
- Target endpoints that serve static or configuration resources
- Exfiltrate configuration files and application source code
- Use obtained information to identify additional weaknesses
How to detect it
Inspect web server access logs for HTTP requests whose URI begins with or contains './' followed by traversal sequences; correlate with file read events on configuration or application directories.
- HTTP request line containing './'
- Access attempts to paths ending in domain.xml or similar configuration files via relative traversal
What your security team should do
- Block or log all inbound requests containing './' path segments at the perimeter
- Review and restrict file permissions on configuration and source directories
- Monitor vendor advisories for an official fixed release and apply it promptly
- Scan deployed applications for embedded sensitive data that could be exposed
The record
In Eclipse GlassFish versions 5.1.0 to 6.2.5, there is a vulnerability in relative path traversal because it does not filter request path starting with './'. Successful exploitation could allow an remote unauthenticated attacker to access critical data, such as configuration files and deployed application source code.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Maven | org.glassfish.main.web:web | 5.1.0 | 7.0.0 |
| Ubuntu:16.04:LTS | glassfish | 0 | No fix |
| Ubuntu:18.04:LTS | glassfish | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | glassfish | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | glassfish | 0 | No fix |
| maven | org.glassfish.main.web/web | 5.1.0 | 7.0.0 |
Related vulnerabilities
- CVE-2026-81163 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')… CWE-22
- CVE-2026-112049 Vita3K before build 4187 contains a path traversal (zip slip) vulnerability in… CWE-22
- CVE-2026-112005 WhoDB 0.104.0 before 0.135.0 contains a path traversal vulnerability that allows remote… CWE-22
- CVE-2026-61702 OpenPrinting CUPS is an open source printing system for Linux and other Unix-like… CWE-22
- CVE-2026-104871 The Angular SSR is a server-rise rendering tool for Angular applications. CWE-22
- CVE-2026-102991 Mako is a template library written in Python. CWE-22
- CVE-2026-101894 The decompress package for Node.js extracts archives. CWE-22
- CVE-2026-100689 GitPython before 3.1.62 does not validate the `path` field read from an untrusted… CWE-22