ADVISORIES

GitHub Advisory Database

GHSA-j6qj-j888-vvgq

Directory exposure in jetty

Details

Impact

If the ${jetty.base} directory or the ${jetty.base}/webapps directory is a symlink (soft link in Linux), the contents of the ${jetty.base}/webapps directory may be deployed as a static web application, exposing the content of the directory for download.

For example, the problem manifests in the following ${jetty.base}:

demo-base/
├── etc
├── lib
├── resources
├── start.d
├── deploy
│   └── async-rest.war
└── webapps -> deploy

Workarounds

Do not use a symlink

Affected packages

EcosystemPackageAffected versions
Mavenorg.eclipse.jetty:jetty-deploy
From 9.4.32 before 9.4.39 (fixed in 9.4.39)
Mavenorg.eclipse.jetty:jetty-deploy
From 10.0.0 before 10.0.2 (fixed in 10.0.2)
Mavenorg.eclipse.jetty:jetty-deploy
From 11.0.0 before 11.0.2 (fixed in 11.0.2)

References