Catalyst::Plugin::Static::Simple versions through 0.38 for Perl mark responses as publicly cacheable
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| unaffected |
|
No data.
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Perl-catalyst | Catalyst Plugin Static Simple |
|
Vendor Workaround
Apply the patch, and configure the default Cache-Control as needed. For deployments that cannot apply the patch, a method modifier of _serve_static in the Catalyst class can be used to override the Cache-Control or Expires headers as needed, for example: around _serve_static => sub { my ( $next, $c, $path, $cache_control ) = @_; $c->$next($path); my $config = $c->config->{'Plugin::Static::Simple'}; $cache_control ||= $config->{cache_control} || "public"; if ( defined $config->{expires} ) { if ( $config->{expires} <= 0 ) { $cache_control = 'no-store'; $c->res->headers->expires(0); } else { $c->res->headers->expires( time() + $config->{expires} ); } } $c->res->headers->header( 'Cache-Control' => $cache_control ); return 1; };
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.407% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
cvssV3_1
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Perl-catalyst
Perl-catalyst catalyst Plugin Static Simple |
|
| Vendors & Products |
Perl-catalyst
Perl-catalyst catalyst Plugin Static Simple |
| Type | Values Removed | Values Added |
|---|---|---|
| References |
|
| Type | Values Removed | Values Added |
|---|---|---|
| Description | Catalyst::Plugin::Static::Simple versions through 0.38 for Perl mark responses as publicly cacheable. The _serve_static method always sets the Cache-Control header to "public", with no means of overriding it. This advises proxies that the content may be stored in a shared cache, and may be reused in responses to requests from other users. (This includes requests with an Authorization header.) Configuring the expires time to "0" to disable caching, as documented, is ignored. | |
| Title | Catalyst::Plugin::Static::Simple versions through 0.38 for Perl mark responses as publicly cacheable | |
| Weaknesses | CWE-524 | |
| References |
|