|
| 1 | +--- |
| 2 | +layout: advisory |
| 3 | +title: 'GHSA-p8jg-8p9f-pgmr (faraday-http-cache): Cache entries deserialized with |
| 4 | + JSON.load can instantiate arbitrary classes named by an origin server' |
| 5 | +comments: false |
| 6 | +categories: |
| 7 | +- faraday-http-cache |
| 8 | +advisory: |
| 9 | + gem: faraday-http-cache |
| 10 | + ghsa: p8jg-8p9f-pgmr |
| 11 | + url: https://github.com/sourcelevel/faraday-http-cache/security/advisories/GHSA-p8jg-8p9f-pgmr |
| 12 | + title: Cache entries deserialized with JSON.load can instantiate arbitrary classes |
| 13 | + named by an origin server |
| 14 | + date: 2026-09-15 |
| 15 | + description: |- |
| 16 | + faraday-http-cache stores cached responses with the JSON module by |
| 17 | + default and reads them back with JSON.load, which honours the |
| 18 | + json_class key and calls json_create on the named class. Response |
| 19 | + headers are stored verbatim inside the cache entry, so an origin |
| 20 | + server that returns a json_class response header causes that class |
| 21 | + to be instantiated in the client process on the next cache hit. Any |
| 22 | + application that uses the middleware to fetch URLs it does not |
| 23 | + fully control is affected with the default configuration, through |
| 24 | + both the ByUrl and ByVary strategies. |
| 25 | +
|
| 26 | + NOTE: Versions 2.0.0 through 2.7.0 were confirmed by the reporter; |
| 27 | + the 1.x line was not tested but uses the same deserialization path. |
| 28 | +
|
| 29 | + ## CREDIT |
| 30 | +
|
| 31 | + Reported by Matthew Mongeau (Ruby Central / Project Glasswing). |
| 32 | + cvss_v3: 8.1 |
| 33 | + patched_versions: |
| 34 | + - ">= 2.8.0" |
| 35 | + related: |
| 36 | + url: |
| 37 | + - https://rubygems.org/gems/faraday-http-cache/versions/2.8.0 |
| 38 | + - https://github.com/sourcelevel/faraday-http-cache/blob/master/CHANGELOG.md#280-2026-09-15 |
| 39 | + - https://github.com/sourcelevel/faraday-http-cache/compare/v2.7.0...v2.8.0 |
| 40 | + - https://github.com/sourcelevel/faraday-http-cache/security/advisories/GHSA-p8jg-8p9f-pgmr |
| 41 | + notes: | |
| 42 | + - cvss_v3 from GHSA URL. |
| 43 | + - No CVE in GHSA URL. |
| 44 | +--- |
0 commit comments