CVE-2023-38493: Paths contain matrix variables bypass decorators
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.38915%
CWE
Published
7/25/2023
Updated
11/5/2023
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
com.linecorp.armeria:armeria | maven | <= 1.24.2 | 1.24.3 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from how matrix variables were handled in request paths. The key functions are DefaultRequestTarget.forServer
(which processes incoming paths) and RequestTarget.path
(which returns the path for matching). Before the patch, these functions did not strip matrix variables from the path used for decorator matching. The commit adds matrix variable removal logic in DefaultRequestTarget
and introduces RequestTarget.maybePathWithMatrixVariables
to handle Spring's requirements, while ensuring decorators see the normalized path. The vulnerable versions lacked this sanitization, allowing path-based decorators to be bypassed via matrix variable injection.